@node-webrtc-rust/bindings 0.6.9 → 0.6.12
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 +9 -1
- package/package.json +7 -7
package/index.d.ts
CHANGED
|
@@ -173,6 +173,14 @@ export interface JsTtsConfig {
|
|
|
173
173
|
apiKey?: string
|
|
174
174
|
postUtteranceSilenceMs?: number
|
|
175
175
|
}
|
|
176
|
+
export interface JsVoiceSessionContext {
|
|
177
|
+
sessionId?: string
|
|
178
|
+
traceId?: string
|
|
179
|
+
projectId?: string
|
|
180
|
+
orgId?: string
|
|
181
|
+
buildId?: string
|
|
182
|
+
traceparent?: string
|
|
183
|
+
}
|
|
176
184
|
export interface JsVoiceAgentConfig {
|
|
177
185
|
vad?: JsVadConfig
|
|
178
186
|
events?: JsEventsConfig
|
|
@@ -352,7 +360,7 @@ export declare class JsVoiceAgent {
|
|
|
352
360
|
constructor(config?: JsVoiceAgentConfig | undefined | null)
|
|
353
361
|
/** Attaches outbound local audio track for TTS injection. */
|
|
354
362
|
attach(outboundTrack: JsLocalAudioTrack): Promise<void>
|
|
355
|
-
start(): Promise<void>
|
|
363
|
+
start(sessionContext?: JsVoiceSessionContext | undefined | null): Promise<void>
|
|
356
364
|
stop(): Promise<void>
|
|
357
365
|
sendTextToTts(text: string, nonBlocking?: boolean | undefined | null): Promise<void>
|
|
358
366
|
flushTts(): Promise<void>
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@node-webrtc-rust/bindings",
|
|
3
|
-
"version": "0.6.
|
|
3
|
+
"version": "0.6.12",
|
|
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.6.
|
|
62
|
-
"@node-webrtc-rust/bindings-darwin-x64": "0.6.
|
|
63
|
-
"@node-webrtc-rust/bindings-linux-x64-gnu": "0.6.
|
|
64
|
-
"@node-webrtc-rust/bindings-darwin-arm64": "0.6.
|
|
65
|
-
"@node-webrtc-rust/bindings-linux-arm64-gnu": "0.6.
|
|
66
|
-
"@node-webrtc-rust/bindings-linux-x64-musl": "0.6.
|
|
61
|
+
"@node-webrtc-rust/bindings-win32-x64-msvc": "0.6.12",
|
|
62
|
+
"@node-webrtc-rust/bindings-darwin-x64": "0.6.12",
|
|
63
|
+
"@node-webrtc-rust/bindings-linux-x64-gnu": "0.6.12",
|
|
64
|
+
"@node-webrtc-rust/bindings-darwin-arm64": "0.6.12",
|
|
65
|
+
"@node-webrtc-rust/bindings-linux-arm64-gnu": "0.6.12",
|
|
66
|
+
"@node-webrtc-rust/bindings-linux-x64-musl": "0.6.12"
|
|
67
67
|
},
|
|
68
68
|
"engines": {
|
|
69
69
|
"node": ">=18"
|