@absolutejs/voice 0.0.22-beta.547 → 0.0.22-beta.548
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 +4 -0
- package/dist/telephony/twilio.d.ts +8 -0
- package/dist/testing/index.js +4 -0
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -24521,7 +24521,9 @@ var createTwilioMediaStreamBridge = (socket, options) => {
|
|
|
24521
24521
|
sessionHandle = createVoiceSession({
|
|
24522
24522
|
audioConditioning,
|
|
24523
24523
|
context: options.context,
|
|
24524
|
+
costAccountant: options.costAccountant,
|
|
24524
24525
|
costTelemetry: options.costTelemetry,
|
|
24526
|
+
costTelephony: options.costTelephony,
|
|
24525
24527
|
greeting: options.greeting,
|
|
24526
24528
|
id: bridgeState.sessionId,
|
|
24527
24529
|
languageStrategy: options.languageStrategy,
|
|
@@ -24529,6 +24531,7 @@ var createTwilioMediaStreamBridge = (socket, options) => {
|
|
|
24529
24531
|
logger,
|
|
24530
24532
|
phraseHints,
|
|
24531
24533
|
reconnect,
|
|
24534
|
+
recording: options.recording,
|
|
24532
24535
|
route,
|
|
24533
24536
|
scenarioId: bridgeState.scenarioId ?? undefined,
|
|
24534
24537
|
socket: voiceSocket,
|
|
@@ -24536,6 +24539,7 @@ var createTwilioMediaStreamBridge = (socket, options) => {
|
|
|
24536
24539
|
stt: options.stt,
|
|
24537
24540
|
sttFallback: resolveSTTFallbackConfig(options.sttFallback),
|
|
24538
24541
|
sttLifecycle: options.sttLifecycle ?? runtimePreset.sttLifecycle,
|
|
24542
|
+
trace: options.trace,
|
|
24539
24543
|
tts: options.tts,
|
|
24540
24544
|
turnDetection
|
|
24541
24545
|
});
|
|
@@ -107,6 +107,14 @@ export type TwilioMediaStreamBridgeOptions<TContext = unknown, TSession extends
|
|
|
107
107
|
sessionId?: string;
|
|
108
108
|
stt: STTAdapter;
|
|
109
109
|
telephonyMediaCarrier?: "plivo" | "telnyx" | "twilio";
|
|
110
|
+
/** Capture call audio (per-channel) to a recording store. */
|
|
111
|
+
recording?: import("../core/types").VoiceSessionRecordingConfig;
|
|
112
|
+
/** Per-call cost accounting (STT/LLM/TTS) — emits turn.cost/cost.ready traces. */
|
|
113
|
+
costAccountant?: import("../core/costAccounting").VoiceCostAccountant;
|
|
114
|
+
/** Telephony cost provider for the accountant (e.g. "twilio"). */
|
|
115
|
+
costTelephony?: {
|
|
116
|
+
provider?: string;
|
|
117
|
+
};
|
|
110
118
|
};
|
|
111
119
|
export type TwilioMediaStreamBridge = {
|
|
112
120
|
close: (reason?: string) => Promise<void>;
|
package/dist/testing/index.js
CHANGED
|
@@ -13057,7 +13057,9 @@ var createTwilioMediaStreamBridge = (socket, options) => {
|
|
|
13057
13057
|
sessionHandle = createVoiceSession({
|
|
13058
13058
|
audioConditioning,
|
|
13059
13059
|
context: options.context,
|
|
13060
|
+
costAccountant: options.costAccountant,
|
|
13060
13061
|
costTelemetry: options.costTelemetry,
|
|
13062
|
+
costTelephony: options.costTelephony,
|
|
13061
13063
|
greeting: options.greeting,
|
|
13062
13064
|
id: bridgeState.sessionId,
|
|
13063
13065
|
languageStrategy: options.languageStrategy,
|
|
@@ -13065,6 +13067,7 @@ var createTwilioMediaStreamBridge = (socket, options) => {
|
|
|
13065
13067
|
logger,
|
|
13066
13068
|
phraseHints,
|
|
13067
13069
|
reconnect,
|
|
13070
|
+
recording: options.recording,
|
|
13068
13071
|
route,
|
|
13069
13072
|
scenarioId: bridgeState.scenarioId ?? undefined,
|
|
13070
13073
|
socket: voiceSocket,
|
|
@@ -13072,6 +13075,7 @@ var createTwilioMediaStreamBridge = (socket, options) => {
|
|
|
13072
13075
|
stt: options.stt,
|
|
13073
13076
|
sttFallback: resolveSTTFallbackConfig(options.sttFallback),
|
|
13074
13077
|
sttLifecycle: options.sttLifecycle ?? runtimePreset.sttLifecycle,
|
|
13078
|
+
trace: options.trace,
|
|
13075
13079
|
tts: options.tts,
|
|
13076
13080
|
turnDetection
|
|
13077
13081
|
});
|