phonic 0.18.2 → 0.18.4
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 +5 -5
- package/dist/index.d.mts +2 -0
- package/dist/index.d.ts +2 -0
- package/dist/index.js +1 -1
- package/dist/index.mjs +1 -1
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -37,7 +37,7 @@ const phonic = new Phonic("ph_...");
|
|
|
37
37
|
### Get voices
|
|
38
38
|
|
|
39
39
|
```ts
|
|
40
|
-
const { data, error } = await phonic.voices.list({ model: "
|
|
40
|
+
const { data, error } = await phonic.voices.list({ model: "merritt" });
|
|
41
41
|
|
|
42
42
|
if (error === null) {
|
|
43
43
|
console.log(data.voices);
|
|
@@ -48,7 +48,7 @@ if (error === null) {
|
|
|
48
48
|
### Get voice by id
|
|
49
49
|
|
|
50
50
|
```ts
|
|
51
|
-
const { data, error } = await phonic.voices.get("
|
|
51
|
+
const { data, error } = await phonic.voices.get("grant");
|
|
52
52
|
|
|
53
53
|
if (error === null) {
|
|
54
54
|
console.log(data.voice);
|
|
@@ -102,7 +102,7 @@ const { data, error } = await phonic.sts.outboundCall("+19189396241", {
|
|
|
102
102
|
welcome_message: "Hello, how can I help you?",
|
|
103
103
|
project: "main",
|
|
104
104
|
system_prompt: "You are a helpful assistant.",
|
|
105
|
-
voice_id: "
|
|
105
|
+
voice_id: "grant",
|
|
106
106
|
enable_silent_audio_fallback: true,
|
|
107
107
|
vad_prebuffer_duration_ms: 1800,
|
|
108
108
|
vad_min_speech_duration_ms: 40,
|
|
@@ -129,7 +129,7 @@ const { data, error } = await phonic.sts.twilio.outboundCall(
|
|
|
129
129
|
welcome_message: "Hello, how can I help you?",
|
|
130
130
|
project: "main",
|
|
131
131
|
system_prompt: "You are a helpful assistant.",
|
|
132
|
-
voice_id: "
|
|
132
|
+
voice_id: "grant",
|
|
133
133
|
enable_silent_audio_fallback: true,
|
|
134
134
|
vad_prebuffer_duration_ms: 1800,
|
|
135
135
|
vad_min_speech_duration_ms: 40,
|
|
@@ -151,7 +151,7 @@ const phonicWebSocket = phonic.sts.websocket({
|
|
|
151
151
|
project: "main",
|
|
152
152
|
system_prompt: "You are a helpful assistant.",
|
|
153
153
|
welcome_message: "Hello, how can I help you?",
|
|
154
|
-
voice_id: "
|
|
154
|
+
voice_id: "grant",
|
|
155
155
|
output_format: "mulaw_8000",
|
|
156
156
|
enable_silent_audio_fallback: true,
|
|
157
157
|
vad_prebuffer_duration_ms: 1800,
|
package/dist/index.d.mts
CHANGED
|
@@ -88,6 +88,8 @@ 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>;
|
|
92
|
+
tools?: string[];
|
|
91
93
|
vad_prebuffer_duration_ms?: number;
|
|
92
94
|
vad_min_speech_duration_ms?: number;
|
|
93
95
|
vad_min_silence_duration_ms?: number;
|
package/dist/index.d.ts
CHANGED
|
@@ -88,6 +88,8 @@ 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>;
|
|
92
|
+
tools?: string[];
|
|
91
93
|
vad_prebuffer_duration_ms?: number;
|
|
92
94
|
vad_min_speech_duration_ms?: number;
|
|
93
95
|
vad_min_silence_duration_ms?: number;
|
package/dist/index.js
CHANGED
package/dist/index.mjs
CHANGED