@node-webrtc-rust/bindings 0.9.16 → 0.9.17
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/index.d.ts +13 -1
- package/package.json +7 -7
package/index.d.ts
CHANGED
|
@@ -328,6 +328,16 @@ export interface JsSpeechEvent {
|
|
|
328
328
|
text?: string
|
|
329
329
|
language?: string
|
|
330
330
|
error?: string
|
|
331
|
+
utteranceId?: string
|
|
332
|
+
replay?: boolean
|
|
333
|
+
replacesUtteranceId?: string
|
|
334
|
+
languageMismatch?: boolean
|
|
335
|
+
voice?: string
|
|
336
|
+
modelPath?: string
|
|
337
|
+
endpoint?: string
|
|
338
|
+
}
|
|
339
|
+
export interface JsUpdateTtsOptions {
|
|
340
|
+
cancelInflight?: boolean
|
|
331
341
|
}
|
|
332
342
|
export declare function version(): string
|
|
333
343
|
/** One conference room with participant and mixing controls. */
|
|
@@ -563,5 +573,7 @@ export declare class JsVoiceAgent {
|
|
|
563
573
|
/** Apply a new STT config after the current utterance finalizes (or immediately when idle). */
|
|
564
574
|
updateStt(config: JsSttConfig): Promise<void>
|
|
565
575
|
/** Apply a new TTS config before the next synthesis job. */
|
|
566
|
-
updateTts(config: JsTtsConfig): Promise<void>
|
|
576
|
+
updateTts(config: JsTtsConfig, options?: JsUpdateTtsOptions | undefined | null): Promise<void>
|
|
577
|
+
/** Re-transcribe the last utterance PCM on the current STT provider (after `update_stt`). */
|
|
578
|
+
replayLastUtterance(): Promise<void>
|
|
567
579
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@node-webrtc-rust/bindings",
|
|
3
|
-
"version": "0.9.
|
|
3
|
+
"version": "0.9.17",
|
|
4
4
|
"description": "NAPI-RS native bindings for node-webrtc-rust — WebRTC peer connections, data channels, and conference audio mixing",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"webrtc",
|
|
@@ -58,12 +58,12 @@
|
|
|
58
58
|
"@napi-rs/cli": "^2.18.0"
|
|
59
59
|
},
|
|
60
60
|
"optionalDependencies": {
|
|
61
|
-
"@node-webrtc-rust/bindings-win32-x64-msvc": "0.9.
|
|
62
|
-
"@node-webrtc-rust/bindings-darwin-x64": "0.9.
|
|
63
|
-
"@node-webrtc-rust/bindings-linux-x64-gnu": "0.9.
|
|
64
|
-
"@node-webrtc-rust/bindings-darwin-arm64": "0.9.
|
|
65
|
-
"@node-webrtc-rust/bindings-linux-arm64-gnu": "0.9.
|
|
66
|
-
"@node-webrtc-rust/bindings-linux-x64-musl": "0.9.
|
|
61
|
+
"@node-webrtc-rust/bindings-win32-x64-msvc": "0.9.17",
|
|
62
|
+
"@node-webrtc-rust/bindings-darwin-x64": "0.9.17",
|
|
63
|
+
"@node-webrtc-rust/bindings-linux-x64-gnu": "0.9.17",
|
|
64
|
+
"@node-webrtc-rust/bindings-darwin-arm64": "0.9.17",
|
|
65
|
+
"@node-webrtc-rust/bindings-linux-arm64-gnu": "0.9.17",
|
|
66
|
+
"@node-webrtc-rust/bindings-linux-x64-musl": "0.9.17"
|
|
67
67
|
},
|
|
68
68
|
"engines": {
|
|
69
69
|
"node": ">=18"
|