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:
parent
5848806e6a
commit
135639642b
|
@ -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,
|
||||
});
|
||||
|
|
Loading…
Reference in New Issue