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:
Dave Horton
2026-06-13 22:31:57 -04:00
parent d176a644fe
commit 142323a151
2 changed files with 2 additions and 1 deletions
+1
View File
@@ -316,6 +316,7 @@ const synthPolly = async(createHash, retrieveHash, logger,
params += `,playback_id=${key}`;
params += `,write_cache_file=${disableTtsCache ? 0 : 1}`;
params += ',vendor=aws';
params += `,voice=${voice}`;
if (accessKeyId && secretAccessKey) {
if (accessKeyId) params += `,accessKeyId=${accessKeyId}`;
if (secretAccessKey) params += `,secretAccessKey=${secretAccessKey}`;
+1 -1
View File
@@ -1,6 +1,6 @@
{
"name": "@jambonz/speech-utils",
"version": "1.0.4",
"version": "1.0.5",
"description": "TTS-related speech utilities for jambonz",
"main": "index.js",
"author": "Dave Horton",