@absolutejs/voice 0.0.22-beta.550 → 0.0.22-beta.551
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/index.js +1 -0
- package/dist/telephony/twilio.d.ts +8 -0
- package/dist/testing/index.js +1 -0
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -24545,6 +24545,7 @@ var createTwilioMediaStreamBridge = (socket, options) => {
|
|
|
24545
24545
|
stt: options.stt,
|
|
24546
24546
|
sttFallback: resolveSTTFallbackConfig(options.sttFallback),
|
|
24547
24547
|
sttLifecycle: options.sttLifecycle ?? runtimePreset.sttLifecycle,
|
|
24548
|
+
...options.semanticTurnDetector ? { semanticTurnDetector: options.semanticTurnDetector } : {},
|
|
24548
24549
|
trace: options.trace,
|
|
24549
24550
|
tts: options.tts,
|
|
24550
24551
|
turnDetection
|
|
@@ -115,6 +115,14 @@ export type TwilioMediaStreamBridgeOptions<TContext = unknown, TSession extends
|
|
|
115
115
|
costTelephony?: {
|
|
116
116
|
provider?: string;
|
|
117
117
|
};
|
|
118
|
+
/**
|
|
119
|
+
* Per-transcript semantic end-of-turn detector. Called on every transcript
|
|
120
|
+
* event; an `endOfTurn=true` verdict EARLY-commits the turn (the runtime
|
|
121
|
+
* still falls back to `turnDetection.silenceMs` if the detector says
|
|
122
|
+
* `false`). Useful for raising silenceMs for thinking time while keeping
|
|
123
|
+
* snappy responses on clear-cut answers. See VoiceSemanticTurnDetector.
|
|
124
|
+
*/
|
|
125
|
+
semanticTurnDetector?: import("../core/semanticTurn").VoiceSemanticTurnDetector;
|
|
118
126
|
};
|
|
119
127
|
export type TwilioMediaStreamBridge = {
|
|
120
128
|
close: (reason?: string) => Promise<void>;
|
package/dist/testing/index.js
CHANGED
|
@@ -13081,6 +13081,7 @@ var createTwilioMediaStreamBridge = (socket, options) => {
|
|
|
13081
13081
|
stt: options.stt,
|
|
13082
13082
|
sttFallback: resolveSTTFallbackConfig(options.sttFallback),
|
|
13083
13083
|
sttLifecycle: options.sttLifecycle ?? runtimePreset.sttLifecycle,
|
|
13084
|
+
...options.semanticTurnDetector ? { semanticTurnDetector: options.semanticTurnDetector } : {},
|
|
13084
13085
|
trace: options.trace,
|
|
13085
13086
|
tts: options.tts,
|
|
13086
13087
|
turnDetection
|