mirror of
https://github.com/jambonz/speech-utils.git
synced 2026-07-04 19:31:49 +00:00
fix(synth-audio): include the Polly VoiceId in the aws say: url
synthPolly received voice but never emitted it into the say:{...} url
(unlike synthMicrosoft, which includes voice=). Polly's SynthesizeSpeech
requires a VoiceId, so the media-server-native (say:-url) Polly path had no
way to pick a voice. Add voice= to the params.
Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
This commit is contained in:
@@ -316,6 +316,7 @@ const synthPolly = async(createHash, retrieveHash, logger,
|
|||||||
params += `,playback_id=${key}`;
|
params += `,playback_id=${key}`;
|
||||||
params += `,write_cache_file=${disableTtsCache ? 0 : 1}`;
|
params += `,write_cache_file=${disableTtsCache ? 0 : 1}`;
|
||||||
params += ',vendor=aws';
|
params += ',vendor=aws';
|
||||||
|
params += `,voice=${voice}`;
|
||||||
if (accessKeyId && secretAccessKey) {
|
if (accessKeyId && secretAccessKey) {
|
||||||
if (accessKeyId) params += `,accessKeyId=${accessKeyId}`;
|
if (accessKeyId) params += `,accessKeyId=${accessKeyId}`;
|
||||||
if (secretAccessKey) params += `,secretAccessKey=${secretAccessKey}`;
|
if (secretAccessKey) params += `,secretAccessKey=${secretAccessKey}`;
|
||||||
|
|||||||
+1
-1
@@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"name": "@jambonz/speech-utils",
|
"name": "@jambonz/speech-utils",
|
||||||
"version": "1.0.4",
|
"version": "1.0.5",
|
||||||
"description": "TTS-related speech utilities for jambonz",
|
"description": "TTS-related speech utilities for jambonz",
|
||||||
"main": "index.js",
|
"main": "index.js",
|
||||||
"author": "Dave Horton",
|
"author": "Dave Horton",
|
||||||
|
|||||||
Reference in New Issue
Block a user