mirror of
https://github.com/jambonz/speech-utils.git
synced 2025-12-19 03:37:49 +00:00
add playback_id setting to additional tts vendors
This commit is contained in:
@@ -315,6 +315,7 @@ const synthPolly = async(createHash, retrieveHash, logger,
|
||||
|
||||
let params = '{';
|
||||
params += `language=${language}`;
|
||||
params += `,playback_id=${playbackIdCounter++}`;
|
||||
params += ',write_cache_file=1';
|
||||
params += ',vendor=aws';
|
||||
if (accessKeyId && secretAccessKey) {
|
||||
@@ -593,6 +594,7 @@ const synthMicrosoft = async(logger, {
|
||||
!renderForCaching && !disableTtsStreaming) {
|
||||
let params = '{';
|
||||
params += `api_key=${apiKey}`;
|
||||
params += `,playback_id=${playbackIdCounter++}`;
|
||||
params += `,language=${language}`;
|
||||
params += ',vendor=microsoft';
|
||||
params += `,voice=${voice}`;
|
||||
@@ -775,6 +777,7 @@ const synthNvidia = async(client, logger, {
|
||||
if (!JAMBONES_DISABLE_TTS_STREAMING && !renderForCaching && !disableTtsStreaming) {
|
||||
let params = '';
|
||||
params += `{riva_server_uri=${riva_server_uri}`;
|
||||
params += `,playback_id=${playbackIdCounter++}`;
|
||||
params += `,voice=${voice}`;
|
||||
params += `,language=${language}`;
|
||||
params += ',write_cache_file=1';
|
||||
|
||||
Reference in New Issue
Block a user