@node-webrtc-rust/bindings 0.9.9 → 0.9.11
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
|
@@ -231,6 +231,8 @@ export const enum JsSttVendor {
|
|
|
231
231
|
Google = 'google',
|
|
232
232
|
Assemblyai = 'assemblyai',
|
|
233
233
|
LocalSherpa = 'local-sherpa',
|
|
234
|
+
/** @internal cloud runner transport. Not a public vendor. */
|
|
235
|
+
ClusterSherpa = 'cluster-sherpa',
|
|
234
236
|
Mock = 'mock'
|
|
235
237
|
}
|
|
236
238
|
export const enum JsTtsVendor {
|
|
@@ -239,6 +241,8 @@ export const enum JsTtsVendor {
|
|
|
239
241
|
Google = 'google',
|
|
240
242
|
Cartesia = 'cartesia',
|
|
241
243
|
LocalSherpa = 'local-sherpa',
|
|
244
|
+
/** @internal cloud runner transport. Not a public vendor. */
|
|
245
|
+
ClusterSherpa = 'cluster-sherpa',
|
|
242
246
|
Mock = 'mock'
|
|
243
247
|
}
|
|
244
248
|
export interface JsSttConfig {
|
|
@@ -247,6 +251,7 @@ export interface JsSttConfig {
|
|
|
247
251
|
modelPath?: string
|
|
248
252
|
language?: string
|
|
249
253
|
apiKey?: string
|
|
254
|
+
endpoint?: string
|
|
250
255
|
}
|
|
251
256
|
export interface JsTtsConfig {
|
|
252
257
|
provider: JsTtsVendor
|
|
@@ -254,6 +259,7 @@ export interface JsTtsConfig {
|
|
|
254
259
|
modelPath?: string
|
|
255
260
|
voice?: string
|
|
256
261
|
apiKey?: string
|
|
262
|
+
endpoint?: string
|
|
257
263
|
postUtteranceSilenceMs?: number
|
|
258
264
|
}
|
|
259
265
|
export const enum JsNoiseSuppressionProvider {
|
|
@@ -305,7 +311,9 @@ export const enum JsSpeechEventType {
|
|
|
305
311
|
UserSttEnd = 'user_stt_end',
|
|
306
312
|
UserSttNotFound = 'user_stt_not_found',
|
|
307
313
|
BargeIn = 'barge_in',
|
|
308
|
-
Error = 'error'
|
|
314
|
+
Error = 'error',
|
|
315
|
+
SttConfigUpdated = 'stt_config_updated',
|
|
316
|
+
TtsConfigUpdated = 'tts_config_updated'
|
|
309
317
|
}
|
|
310
318
|
export interface JsSpeechEvent {
|
|
311
319
|
eventType: JsSpeechEventType
|
|
@@ -544,4 +552,8 @@ export declare class JsVoiceAgent {
|
|
|
544
552
|
/** When `false`, inbound PCM still runs VAD but skips STT and user speech events. */
|
|
545
553
|
setSttEnabled(enabled: boolean): Promise<void>
|
|
546
554
|
sttEnabled(): Promise<boolean>
|
|
555
|
+
/** Apply a new STT config after the current utterance finalizes (or immediately when idle). */
|
|
556
|
+
updateStt(config: JsSttConfig): Promise<void>
|
|
557
|
+
/** Apply a new TTS config before the next synthesis job. */
|
|
558
|
+
updateTts(config: JsTtsConfig): Promise<void>
|
|
547
559
|
}
|
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.11",
|
|
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.11",
|
|
62
|
+
"@node-webrtc-rust/bindings-darwin-x64": "0.9.11",
|
|
63
|
+
"@node-webrtc-rust/bindings-linux-x64-gnu": "0.9.11",
|
|
64
|
+
"@node-webrtc-rust/bindings-darwin-arm64": "0.9.11",
|
|
65
|
+
"@node-webrtc-rust/bindings-linux-arm64-gnu": "0.9.11",
|
|
66
|
+
"@node-webrtc-rust/bindings-linux-x64-musl": "0.9.11"
|
|
67
67
|
},
|
|
68
68
|
"engines": {
|
|
69
69
|
"node": ">=18"
|