@absolutejs/voice 0.0.22-beta.560 → 0.0.22-beta.561
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 +7 -0
- package/dist/testing/index.js +1 -0
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -24721,6 +24721,7 @@ var createTwilioMediaStreamBridge = (socket, options) => {
|
|
|
24721
24721
|
...options.fillerPhrases ? { fillerPhrases: options.fillerPhrases } : {},
|
|
24722
24722
|
...options.fillerDelayMs !== undefined ? { fillerDelayMs: options.fillerDelayMs } : {},
|
|
24723
24723
|
...options.defaultSilentTurnAck !== undefined ? { defaultSilentTurnAck: options.defaultSilentTurnAck } : {},
|
|
24724
|
+
...options.routeOnTurnTimeoutMs !== undefined ? { routeOnTurnTimeoutMs: options.routeOnTurnTimeoutMs } : {},
|
|
24724
24725
|
trace: options.trace,
|
|
24725
24726
|
tts: options.tts,
|
|
24726
24727
|
turnDetection
|
|
@@ -139,6 +139,13 @@ export type TwilioMediaStreamBridgeOptions<TContext = unknown, TSession extends
|
|
|
139
139
|
* to opt out. See CreateVoiceSessionOptions for full semantics.
|
|
140
140
|
*/
|
|
141
141
|
defaultSilentTurnAck?: string;
|
|
142
|
+
/**
|
|
143
|
+
* Hard timeout (ms) around `route.onTurn`. If onTurn doesn't resolve in
|
|
144
|
+
* this window, the runtime throws → defaultSilentTurnAck fires → caller
|
|
145
|
+
* hears the fallback instead of dead air. See CreateVoiceSessionOptions
|
|
146
|
+
* for full semantics. Default 45s.
|
|
147
|
+
*/
|
|
148
|
+
routeOnTurnTimeoutMs?: number;
|
|
142
149
|
};
|
|
143
150
|
export type TwilioMediaStreamBridge = {
|
|
144
151
|
close: (reason?: string) => Promise<void>;
|
package/dist/testing/index.js
CHANGED
|
@@ -13311,6 +13311,7 @@ var createTwilioMediaStreamBridge = (socket, options) => {
|
|
|
13311
13311
|
...options.fillerPhrases ? { fillerPhrases: options.fillerPhrases } : {},
|
|
13312
13312
|
...options.fillerDelayMs !== undefined ? { fillerDelayMs: options.fillerDelayMs } : {},
|
|
13313
13313
|
...options.defaultSilentTurnAck !== undefined ? { defaultSilentTurnAck: options.defaultSilentTurnAck } : {},
|
|
13314
|
+
...options.routeOnTurnTimeoutMs !== undefined ? { routeOnTurnTimeoutMs: options.routeOnTurnTimeoutMs } : {},
|
|
13314
13315
|
trace: options.trace,
|
|
13315
13316
|
tts: options.tts,
|
|
13316
13317
|
turnDetection
|