@node-webrtc-rust/bindings 0.9.15 → 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.
Files changed (2) hide show
  1. package/index.d.ts +21 -1
  2. package/package.json +7 -7
package/index.d.ts CHANGED
@@ -228,8 +228,12 @@ export interface JsVadConfig {
228
228
  export const enum JsSttVendor {
229
229
  Openai = 'openai',
230
230
  Deepgram = 'deepgram',
231
+ Elevenlabs = 'elevenlabs',
231
232
  Google = 'google',
232
233
  Assemblyai = 'assemblyai',
234
+ Groq = 'groq',
235
+ Azure = 'azure',
236
+ Aws = 'aws',
233
237
  LocalSherpa = 'local-sherpa',
234
238
  /** @internal cloud runner transport. Not a public vendor. */
235
239
  ClusterSherpa = 'cluster-sherpa',
@@ -237,9 +241,13 @@ export const enum JsSttVendor {
237
241
  }
238
242
  export const enum JsTtsVendor {
239
243
  Openai = 'openai',
244
+ Deepgram = 'deepgram',
240
245
  Elevenlabs = 'elevenlabs',
241
246
  Google = 'google',
242
247
  Cartesia = 'cartesia',
248
+ Groq = 'groq',
249
+ Azure = 'azure',
250
+ Aws = 'aws',
243
251
  LocalSherpa = 'local-sherpa',
244
252
  /** @internal cloud runner transport. Not a public vendor. */
245
253
  ClusterSherpa = 'cluster-sherpa',
@@ -320,6 +328,16 @@ export interface JsSpeechEvent {
320
328
  text?: string
321
329
  language?: string
322
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
323
341
  }
324
342
  export declare function version(): string
325
343
  /** One conference room with participant and mixing controls. */
@@ -555,5 +573,7 @@ export declare class JsVoiceAgent {
555
573
  /** Apply a new STT config after the current utterance finalizes (or immediately when idle). */
556
574
  updateStt(config: JsSttConfig): Promise<void>
557
575
  /** Apply a new TTS config before the next synthesis job. */
558
- 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>
559
579
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@node-webrtc-rust/bindings",
3
- "version": "0.9.15",
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.15",
62
- "@node-webrtc-rust/bindings-darwin-x64": "0.9.15",
63
- "@node-webrtc-rust/bindings-linux-x64-gnu": "0.9.15",
64
- "@node-webrtc-rust/bindings-darwin-arm64": "0.9.15",
65
- "@node-webrtc-rust/bindings-linux-arm64-gnu": "0.9.15",
66
- "@node-webrtc-rust/bindings-linux-x64-musl": "0.9.15"
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"