phonic 0.24.2 → 0.25.1
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 +1 -1
- package/dist/index.d.mts +3 -3
- package/dist/index.d.ts +3 -3
- package/dist/index.js +1 -1
- package/dist/index.mjs +1 -1
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -502,7 +502,7 @@ Sent when the user stops speaking.
|
|
|
502
502
|
```ts
|
|
503
503
|
{
|
|
504
504
|
type: "interrupted_response",
|
|
505
|
-
|
|
505
|
+
text: string, // partial assistant response that cuts off approximately where the user interrupted
|
|
506
506
|
}
|
|
507
507
|
```
|
|
508
508
|
|
package/dist/index.d.mts
CHANGED
|
@@ -72,14 +72,14 @@ type PhonicSTSWebSocketResponseMessage = {
|
|
|
72
72
|
type: "audio_finished";
|
|
73
73
|
} | {
|
|
74
74
|
type: "is_user_speaking";
|
|
75
|
-
|
|
75
|
+
is_user_speaking: boolean;
|
|
76
76
|
} | {
|
|
77
77
|
type: "user_started_speaking";
|
|
78
78
|
} | {
|
|
79
79
|
type: "user_finished_speaking";
|
|
80
80
|
} | {
|
|
81
81
|
type: "interrupted_response";
|
|
82
|
-
|
|
82
|
+
text: string;
|
|
83
83
|
} | {
|
|
84
84
|
type: "assistant_chose_not_to_respond";
|
|
85
85
|
} | {
|
|
@@ -271,7 +271,7 @@ type ConversationItem = {
|
|
|
271
271
|
text: string;
|
|
272
272
|
voice_id: string;
|
|
273
273
|
system_prompt: string;
|
|
274
|
-
|
|
274
|
+
audio_speed: number;
|
|
275
275
|
duration_ms: number;
|
|
276
276
|
started_at: string;
|
|
277
277
|
};
|
package/dist/index.d.ts
CHANGED
|
@@ -72,14 +72,14 @@ type PhonicSTSWebSocketResponseMessage = {
|
|
|
72
72
|
type: "audio_finished";
|
|
73
73
|
} | {
|
|
74
74
|
type: "is_user_speaking";
|
|
75
|
-
|
|
75
|
+
is_user_speaking: boolean;
|
|
76
76
|
} | {
|
|
77
77
|
type: "user_started_speaking";
|
|
78
78
|
} | {
|
|
79
79
|
type: "user_finished_speaking";
|
|
80
80
|
} | {
|
|
81
81
|
type: "interrupted_response";
|
|
82
|
-
|
|
82
|
+
text: string;
|
|
83
83
|
} | {
|
|
84
84
|
type: "assistant_chose_not_to_respond";
|
|
85
85
|
} | {
|
|
@@ -271,7 +271,7 @@ type ConversationItem = {
|
|
|
271
271
|
text: string;
|
|
272
272
|
voice_id: string;
|
|
273
273
|
system_prompt: string;
|
|
274
|
-
|
|
274
|
+
audio_speed: number;
|
|
275
275
|
duration_ms: number;
|
|
276
276
|
started_at: string;
|
|
277
277
|
};
|
package/dist/index.js
CHANGED
package/dist/index.mjs
CHANGED