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.
This commit is contained in:
bal-spec 2024-10-27 19:56:07 -07:00 committed by GitHub
parent 5848806e6a
commit 135639642b
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 1 additions and 1 deletions

View File

@ -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,
});