@absolutejs/voice 0.0.22-beta.619 → 0.0.22-beta.620
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 +4 -0
- package/dist/index.js +2 -0
- package/package.json +1 -1
package/dist/core/types.d.ts
CHANGED
|
@@ -788,6 +788,10 @@ export type VoiceExpectedSpeakerTurn = {
|
|
|
788
788
|
*/
|
|
789
789
|
export type VoiceSurfaceConfig<O> = false | O | (Record<string, never> extends O ? true : never);
|
|
790
790
|
export type VoicePluginConfig<TContext = unknown, TSession extends VoiceSessionRecord = VoiceSessionRecord, TResult = unknown> = {
|
|
791
|
+
costAccountant?: import("./costAccounting").VoiceCostAccountant;
|
|
792
|
+
costTelephony?: {
|
|
793
|
+
provider?: string;
|
|
794
|
+
};
|
|
791
795
|
costTelemetry?: VoiceCostTelemetryConfig<TContext, TSession, TResult>;
|
|
792
796
|
path: string;
|
|
793
797
|
greeting?: string | ((input: {
|
package/dist/index.js
CHANGED
|
@@ -39739,6 +39739,8 @@ var voice = (config) => {
|
|
|
39739
39739
|
socket: createSocketAdapter(ws),
|
|
39740
39740
|
store: config.session,
|
|
39741
39741
|
trace: config.trace,
|
|
39742
|
+
costAccountant: config.costAccountant,
|
|
39743
|
+
costTelephony: config.costTelephony,
|
|
39742
39744
|
realtime: config.realtime,
|
|
39743
39745
|
realtimeInputFormat: config.realtimeInputFormat,
|
|
39744
39746
|
stt: config.stt,
|