phonic 0.18.1 → 0.18.3
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/README.md +2 -4
- package/dist/index.d.mts +2 -3
- package/dist/index.d.ts +2 -3
- package/dist/index.js +1 -1
- package/dist/index.mjs +1 -1
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -98,9 +98,8 @@ if (error === null) {
|
|
|
98
98
|
|
|
99
99
|
```ts
|
|
100
100
|
const { data, error } = await phonic.sts.outboundCall("+19189396241", {
|
|
101
|
-
welcome_message: "Hello, how can I help you?",
|
|
102
|
-
|
|
103
101
|
// Optional fields
|
|
102
|
+
welcome_message: "Hello, how can I help you?",
|
|
104
103
|
project: "main",
|
|
105
104
|
system_prompt: "You are a helpful assistant.",
|
|
106
105
|
voice_id: "greta",
|
|
@@ -126,9 +125,8 @@ const { data, error } = await phonic.sts.twilio.outboundCall(
|
|
|
126
125
|
to_phone_number: "+19189396241",
|
|
127
126
|
},
|
|
128
127
|
{
|
|
129
|
-
welcome_message: "Hello, how can I help you?",
|
|
130
|
-
|
|
131
128
|
// Optional fields
|
|
129
|
+
welcome_message: "Hello, how can I help you?",
|
|
132
130
|
project: "main",
|
|
133
131
|
system_prompt: "You are a helpful assistant.",
|
|
134
132
|
voice_id: "greta",
|
package/dist/index.d.mts
CHANGED
|
@@ -88,6 +88,7 @@ type PhonicSTSConfig = {
|
|
|
88
88
|
voice_id?: string;
|
|
89
89
|
output_format?: "pcm_44100" | "mulaw_8000";
|
|
90
90
|
enable_silent_audio_fallback?: boolean;
|
|
91
|
+
experimental_params?: Record<string, unknown>;
|
|
91
92
|
vad_prebuffer_duration_ms?: number;
|
|
92
93
|
vad_min_speech_duration_ms?: number;
|
|
93
94
|
vad_min_silence_duration_ms?: number;
|
|
@@ -125,9 +126,7 @@ type PhonicSTSWebSocketResponseMessage = {
|
|
|
125
126
|
type OnMessageCallback = (message: PhonicSTSWebSocketResponseMessage) => void;
|
|
126
127
|
type OnCloseCallback = (event: WebSocket.CloseEvent) => void;
|
|
127
128
|
type OnErrorCallback = (event: WebSocket.ErrorEvent) => void;
|
|
128
|
-
type PhonicSTSOutboundCallConfig = Omit<PhonicSTSConfig, "input_format" | "output_format"
|
|
129
|
-
welcome_message: string;
|
|
130
|
-
};
|
|
129
|
+
type PhonicSTSOutboundCallConfig = Omit<PhonicSTSConfig, "input_format" | "output_format">;
|
|
131
130
|
type OutboundCallSuccessResponse = {
|
|
132
131
|
success: true;
|
|
133
132
|
};
|
package/dist/index.d.ts
CHANGED
|
@@ -88,6 +88,7 @@ type PhonicSTSConfig = {
|
|
|
88
88
|
voice_id?: string;
|
|
89
89
|
output_format?: "pcm_44100" | "mulaw_8000";
|
|
90
90
|
enable_silent_audio_fallback?: boolean;
|
|
91
|
+
experimental_params?: Record<string, unknown>;
|
|
91
92
|
vad_prebuffer_duration_ms?: number;
|
|
92
93
|
vad_min_speech_duration_ms?: number;
|
|
93
94
|
vad_min_silence_duration_ms?: number;
|
|
@@ -125,9 +126,7 @@ type PhonicSTSWebSocketResponseMessage = {
|
|
|
125
126
|
type OnMessageCallback = (message: PhonicSTSWebSocketResponseMessage) => void;
|
|
126
127
|
type OnCloseCallback = (event: WebSocket.CloseEvent) => void;
|
|
127
128
|
type OnErrorCallback = (event: WebSocket.ErrorEvent) => void;
|
|
128
|
-
type PhonicSTSOutboundCallConfig = Omit<PhonicSTSConfig, "input_format" | "output_format"
|
|
129
|
-
welcome_message: string;
|
|
130
|
-
};
|
|
129
|
+
type PhonicSTSOutboundCallConfig = Omit<PhonicSTSConfig, "input_format" | "output_format">;
|
|
131
130
|
type OutboundCallSuccessResponse = {
|
|
132
131
|
success: true;
|
|
133
132
|
};
|
package/dist/index.js
CHANGED
package/dist/index.mjs
CHANGED