From 142323a15109f7685d89a0b41b712824a6333900 Mon Sep 17 00:00:00 2001 From: Dave Horton Date: Sat, 13 Jun 2026 22:31:57 -0400 Subject: [PATCH] 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 --- lib/synth-audio.js | 1 + package.json | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/lib/synth-audio.js b/lib/synth-audio.js index 6197e2b..b4782c9 100644 --- a/lib/synth-audio.js +++ b/lib/synth-audio.js @@ -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}`; diff --git a/package.json b/package.json index 65c2f34..94e8360 100644 --- a/package.json +++ b/package.json @@ -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",