@absolutejs/voice 0.0.22-beta.564 → 0.0.22-beta.565
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/core/types.d.ts +12 -0
- package/dist/index.js +8 -0
- package/package.json +1 -1
package/dist/core/types.d.ts
CHANGED
|
@@ -773,6 +773,18 @@ export type VoicePluginConfig<TContext = unknown, TSession extends VoiceSessionR
|
|
|
773
773
|
session: VoiceSessionStore<NoInfer<TSession>>;
|
|
774
774
|
reconnect?: VoiceReconnectConfig;
|
|
775
775
|
turnDetection?: VoiceTurnDetectionConfig;
|
|
776
|
+
semanticTurnDetector?: import("./semanticTurn").VoiceSemanticTurnDetector;
|
|
777
|
+
bargeInMinPartialWords?: number;
|
|
778
|
+
fillerPhrases?: ReadonlyArray<string>;
|
|
779
|
+
fillerDelayMs?: number;
|
|
780
|
+
fillerFor?: (input: {
|
|
781
|
+
sessionId: string;
|
|
782
|
+
turnId: string;
|
|
783
|
+
userText: string;
|
|
784
|
+
}) => Promise<string | null>;
|
|
785
|
+
fillerForTimeoutMs?: number;
|
|
786
|
+
defaultSilentTurnAck?: string;
|
|
787
|
+
routeOnTurnTimeoutMs?: number;
|
|
776
788
|
audioConditioning?: VoiceAudioConditioningConfig;
|
|
777
789
|
noiseSuppressor?: VoiceNoiseSuppressor;
|
|
778
790
|
noiseSuppressorFormat?: AudioFormat;
|
package/dist/index.js
CHANGED
|
@@ -39142,6 +39142,14 @@ var voice = (config) => {
|
|
|
39142
39142
|
stt: config.stt,
|
|
39143
39143
|
sttFallback: sessionOptions.sttFallback,
|
|
39144
39144
|
sttLifecycle: sessionOptions.sttLifecycle,
|
|
39145
|
+
...config.semanticTurnDetector ? { semanticTurnDetector: config.semanticTurnDetector } : {},
|
|
39146
|
+
...config.bargeInMinPartialWords !== undefined ? { bargeInMinPartialWords: config.bargeInMinPartialWords } : {},
|
|
39147
|
+
...config.fillerPhrases ? { fillerPhrases: config.fillerPhrases } : {},
|
|
39148
|
+
...config.fillerDelayMs !== undefined ? { fillerDelayMs: config.fillerDelayMs } : {},
|
|
39149
|
+
...config.fillerFor ? { fillerFor: config.fillerFor } : {},
|
|
39150
|
+
...config.fillerForTimeoutMs !== undefined ? { fillerForTimeoutMs: config.fillerForTimeoutMs } : {},
|
|
39151
|
+
...config.defaultSilentTurnAck !== undefined ? { defaultSilentTurnAck: config.defaultSilentTurnAck } : {},
|
|
39152
|
+
...config.routeOnTurnTimeoutMs !== undefined ? { routeOnTurnTimeoutMs: config.routeOnTurnTimeoutMs } : {},
|
|
39145
39153
|
tts: config.tts,
|
|
39146
39154
|
turnDetection: sessionOptions.turnDetection
|
|
39147
39155
|
});
|