@soniox/node 2.0.1 → 2.0.2
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/dist/index.cjs +4 -4
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +8 -8
- package/dist/index.d.mts +8 -8
- package/dist/index.mjs +4 -4
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
package/dist/index.cjs
CHANGED
|
@@ -1731,7 +1731,7 @@ function getCommonValue(values) {
|
|
|
1731
1731
|
* Uses only `globalThis.fetch` — no Node-specific dependencies.
|
|
1732
1732
|
* Shared by both `@soniox/node` and `@soniox/client`.
|
|
1733
1733
|
*/
|
|
1734
|
-
const DEFAULT_MODEL = "tts-rt-v1
|
|
1734
|
+
const DEFAULT_MODEL = "tts-rt-v1";
|
|
1735
1735
|
const DEFAULT_LANGUAGE = "en";
|
|
1736
1736
|
const DEFAULT_AUDIO_FORMAT = "wav";
|
|
1737
1737
|
function buildPayload(options) {
|
|
@@ -4274,7 +4274,7 @@ function combineAbortSignals(...signals) {
|
|
|
4274
4274
|
* @example TTS (single stream)
|
|
4275
4275
|
* ```typescript
|
|
4276
4276
|
* const stream = await client.realtime.tts({
|
|
4277
|
-
* model: 'tts-rt-v1
|
|
4277
|
+
* model: 'tts-rt-v1',
|
|
4278
4278
|
* voice: 'Adrian',
|
|
4279
4279
|
* language: 'en',
|
|
4280
4280
|
* audio_format: 'wav',
|
|
@@ -4288,7 +4288,7 @@ function combineAbortSignals(...signals) {
|
|
|
4288
4288
|
* ```typescript
|
|
4289
4289
|
* const conn = await client.realtime.tts.multiStream();
|
|
4290
4290
|
* const stream = await conn.stream({
|
|
4291
|
-
* model: 'tts-rt-v1
|
|
4291
|
+
* model: 'tts-rt-v1',
|
|
4292
4292
|
* voice: 'Adrian',
|
|
4293
4293
|
* language: 'en',
|
|
4294
4294
|
* audio_format: 'wav',
|
|
@@ -4359,7 +4359,7 @@ var SonioxRealtimeApi = class {
|
|
|
4359
4359
|
*
|
|
4360
4360
|
* // WebSocket TTS
|
|
4361
4361
|
* const stream = await client.realtime.tts({
|
|
4362
|
-
* model: 'tts-rt-v1
|
|
4362
|
+
* model: 'tts-rt-v1',
|
|
4363
4363
|
* voice: 'Adrian',
|
|
4364
4364
|
* language: 'en',
|
|
4365
4365
|
* audio_format: 'wav',
|