From 135639642bfe86df6dc2e27fe0fa0517f0c59ab6 Mon Sep 17 00:00:00 2001 From: bal-spec Date: Sun, 27 Oct 2024 19:56:07 -0700 Subject: [PATCH] Update azure.js Change Azure TTS audio format from ogg-48khz-16bit-mono-opus to webm-24khz-16bit-mono-opus because this works with WebKit-based browsers so brings Azure TTS to iOS, iPadOS and Safari on macOS. --- src/endpoints/azure.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/endpoints/azure.js b/src/endpoints/azure.js index c097eb3ca..5ab1c1103 100644 --- a/src/endpoints/azure.js +++ b/src/endpoints/azure.js @@ -69,7 +69,7 @@ router.post('/generate', jsonParser, async (req, res) => { headers: { 'Ocp-Apim-Subscription-Key': key, 'Content-Type': 'application/ssml+xml', - 'X-Microsoft-OutputFormat': 'ogg-48khz-16bit-mono-opus', + 'X-Microsoft-OutputFormat': 'webm-24khz-16bit-mono-opus', }, body: ssml, });