phonic 0.18.3 → 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 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: "tahoe" });
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("greta");
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: "greta",
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: "greta",
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: "greta",
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
@@ -89,6 +89,7 @@ type PhonicSTSConfig = {
89
89
  output_format?: "pcm_44100" | "mulaw_8000";
90
90
  enable_silent_audio_fallback?: boolean;
91
91
  experimental_params?: Record<string, unknown>;
92
+ tools?: string[];
92
93
  vad_prebuffer_duration_ms?: number;
93
94
  vad_min_speech_duration_ms?: number;
94
95
  vad_min_silence_duration_ms?: number;
package/dist/index.d.ts CHANGED
@@ -89,6 +89,7 @@ type PhonicSTSConfig = {
89
89
  output_format?: "pcm_44100" | "mulaw_8000";
90
90
  enable_silent_audio_fallback?: boolean;
91
91
  experimental_params?: Record<string, unknown>;
92
+ tools?: string[];
92
93
  vad_prebuffer_duration_ms?: number;
93
94
  vad_min_speech_duration_ms?: number;
94
95
  vad_min_silence_duration_ms?: number;
package/dist/index.js CHANGED
@@ -35,7 +35,7 @@ __export(index_exports, {
35
35
  module.exports = __toCommonJS(index_exports);
36
36
 
37
37
  // package.json
38
- var version = "0.18.3";
38
+ var version = "0.18.4";
39
39
 
40
40
  // src/conversations/index.ts
41
41
  var Conversations = class {
package/dist/index.mjs CHANGED
@@ -1,5 +1,5 @@
1
1
  // package.json
2
- var version = "0.18.3";
2
+ var version = "0.18.4";
3
3
 
4
4
  // src/conversations/index.ts
5
5
  var Conversations = class {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "phonic",
3
- "version": "0.18.3",
3
+ "version": "0.18.4",
4
4
  "description": "Phonic Node.js SDK",
5
5
  "scripts": {
6
6
  "build": "tsup",