phonic 0.25.0 → 0.25.2
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 +6 -2
- package/dist/index.d.mts +5 -4
- package/dist/index.d.ts +5 -4
- package/dist/index.js +1 -1
- package/dist/index.mjs +1 -1
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -285,10 +285,14 @@ const conversationResult = await phonic.conversations.getByExternalId({
|
|
|
285
285
|
```ts
|
|
286
286
|
const outboundCallResult = await phonic.conversations.outboundCall("+19189396241", {
|
|
287
287
|
// Optional fields
|
|
288
|
-
welcome_message: "Hello, how can I help you?",
|
|
289
288
|
project: "main",
|
|
290
|
-
system_prompt: "You are a helpful assistant.",
|
|
291
289
|
voice_id: "grant",
|
|
290
|
+
welcome_message: "Hi {{customer_name}}. How can I help you today?",
|
|
291
|
+
system_prompt: "You are an expert in {{subject}}. Be friendly, helpful and concise.",
|
|
292
|
+
template_variables: {
|
|
293
|
+
customer_name: "David",
|
|
294
|
+
subject: "Chess"
|
|
295
|
+
},
|
|
292
296
|
enable_silent_audio_fallback: true,
|
|
293
297
|
vad_prebuffer_duration_ms: 1800,
|
|
294
298
|
vad_min_speech_duration_ms: 40,
|
package/dist/index.d.mts
CHANGED
|
@@ -37,10 +37,11 @@ type ISODateTime$1 = `${string}Z`;
|
|
|
37
37
|
type PhonicSTSTool = "keypad_input" | "natural_conversation_ending" | (string & {});
|
|
38
38
|
interface PhonicSTSConfigBase {
|
|
39
39
|
input_format: "pcm_44100" | "mulaw_8000";
|
|
40
|
-
system_prompt?: string;
|
|
41
|
-
welcome_message?: string;
|
|
42
|
-
voice_id?: string;
|
|
43
40
|
output_format?: "pcm_44100" | "mulaw_8000";
|
|
41
|
+
voice_id?: string;
|
|
42
|
+
welcome_message?: string;
|
|
43
|
+
system_prompt?: string;
|
|
44
|
+
template_variables?: Record<string, string>;
|
|
44
45
|
enable_silent_audio_fallback?: boolean;
|
|
45
46
|
experimental_params?: Record<string, unknown>;
|
|
46
47
|
tools?: Array<PhonicSTSTool>;
|
|
@@ -271,7 +272,7 @@ type ConversationItem = {
|
|
|
271
272
|
text: string;
|
|
272
273
|
voice_id: string;
|
|
273
274
|
system_prompt: string;
|
|
274
|
-
|
|
275
|
+
audio_speed: number;
|
|
275
276
|
duration_ms: number;
|
|
276
277
|
started_at: string;
|
|
277
278
|
};
|
package/dist/index.d.ts
CHANGED
|
@@ -37,10 +37,11 @@ type ISODateTime$1 = `${string}Z`;
|
|
|
37
37
|
type PhonicSTSTool = "keypad_input" | "natural_conversation_ending" | (string & {});
|
|
38
38
|
interface PhonicSTSConfigBase {
|
|
39
39
|
input_format: "pcm_44100" | "mulaw_8000";
|
|
40
|
-
system_prompt?: string;
|
|
41
|
-
welcome_message?: string;
|
|
42
|
-
voice_id?: string;
|
|
43
40
|
output_format?: "pcm_44100" | "mulaw_8000";
|
|
41
|
+
voice_id?: string;
|
|
42
|
+
welcome_message?: string;
|
|
43
|
+
system_prompt?: string;
|
|
44
|
+
template_variables?: Record<string, string>;
|
|
44
45
|
enable_silent_audio_fallback?: boolean;
|
|
45
46
|
experimental_params?: Record<string, unknown>;
|
|
46
47
|
tools?: Array<PhonicSTSTool>;
|
|
@@ -271,7 +272,7 @@ type ConversationItem = {
|
|
|
271
272
|
text: string;
|
|
272
273
|
voice_id: string;
|
|
273
274
|
system_prompt: string;
|
|
274
|
-
|
|
275
|
+
audio_speed: number;
|
|
275
276
|
duration_ms: number;
|
|
276
277
|
started_at: string;
|
|
277
278
|
};
|
package/dist/index.js
CHANGED
package/dist/index.mjs
CHANGED