@jambonz/speech-utils 0.2.20 → 0.2.21
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/lib/synth-audio.js +3 -0
- package/package.json +1 -1
package/lib/synth-audio.js
CHANGED
|
@@ -315,6 +315,7 @@ const synthPolly = async(createHash, retrieveHash, logger,
|
|
|
315
315
|
|
|
316
316
|
let params = '{';
|
|
317
317
|
params += `language=${language}`;
|
|
318
|
+
params += `,playback_id=${playbackIdCounter++}`;
|
|
318
319
|
params += ',write_cache_file=1';
|
|
319
320
|
params += ',vendor=aws';
|
|
320
321
|
if (accessKeyId && secretAccessKey) {
|
|
@@ -593,6 +594,7 @@ const synthMicrosoft = async(logger, {
|
|
|
593
594
|
!renderForCaching && !disableTtsStreaming) {
|
|
594
595
|
let params = '{';
|
|
595
596
|
params += `api_key=${apiKey}`;
|
|
597
|
+
params += `,playback_id=${playbackIdCounter++}`;
|
|
596
598
|
params += `,language=${language}`;
|
|
597
599
|
params += ',vendor=microsoft';
|
|
598
600
|
params += `,voice=${voice}`;
|
|
@@ -775,6 +777,7 @@ const synthNvidia = async(client, logger, {
|
|
|
775
777
|
if (!JAMBONES_DISABLE_TTS_STREAMING && !renderForCaching && !disableTtsStreaming) {
|
|
776
778
|
let params = '';
|
|
777
779
|
params += `{riva_server_uri=${riva_server_uri}`;
|
|
780
|
+
params += `,playback_id=${playbackIdCounter++}`;
|
|
778
781
|
params += `,voice=${voice}`;
|
|
779
782
|
params += `,language=${language}`;
|
|
780
783
|
params += ',write_cache_file=1';
|