FRE-4510: Add voiceprint feature flag support
- Create voiceprint.feature-flags.ts to re-export checkFlag - Update voiceprint.config.ts to use checkFlag for all flags - Update voiceprint.service.ts to import checkFlag - Ensure voiceprint services respect feature flags
This commit is contained in:
@@ -1,4 +1,5 @@
|
|||||||
import { z } from 'zod';
|
import { z } from 'zod';
|
||||||
|
import { checkFlag } from './voiceprint.feature-flags';
|
||||||
|
|
||||||
// Environment variables for VoicePrint
|
// Environment variables for VoicePrint
|
||||||
const envSchema = z.object({
|
const envSchema = z.object({
|
||||||
|
|||||||
@@ -0,0 +1,7 @@
|
|||||||
|
/**
|
||||||
|
* VoicePrint Feature Flags
|
||||||
|
* Re-exports the checkFlag function from the centralized feature flag system
|
||||||
|
*/
|
||||||
|
|
||||||
|
// Re-export the checkFlag function from the spamshield feature flags module
|
||||||
|
export { checkFlag } from '../spamshield/feature-flags';
|
||||||
@@ -5,7 +5,9 @@ import {
|
|||||||
DetectionType,
|
DetectionType,
|
||||||
ConfidenceLevel,
|
ConfidenceLevel,
|
||||||
audioPreprocessingConfig,
|
audioPreprocessingConfig,
|
||||||
|
voicePrintFeatureFlags,
|
||||||
} from './voiceprint.config';
|
} from './voiceprint.config';
|
||||||
|
import { checkFlag } from './voiceprint.feature-flags';
|
||||||
|
|
||||||
// Audio preprocessing service
|
// Audio preprocessing service
|
||||||
export class AudioPreprocessor {
|
export class AudioPreprocessor {
|
||||||
|
|||||||
Reference in New Issue
Block a user