mirror of
https://github.com/omnivore-app/omnivore.git
synced 2026-03-11 08:54:26 +00:00
Set voice and language when generating SSML
This commit is contained in:
parent
5c4de078b5
commit
48e6d63158
1 changed files with 2 additions and 2 deletions
|
|
@ -217,9 +217,9 @@ const synthesizeTextToSpeech = async (
|
|||
}
|
||||
} else {
|
||||
const ssmlItems = htmlToSsml(input.text, {
|
||||
primaryVoice: speechConfig.speechSynthesisVoiceName,
|
||||
primaryVoice: input.voice || 'en-US-JennyNeural',
|
||||
secondaryVoice: 'en-US-GuyNeural',
|
||||
language: speechConfig.speechSynthesisLanguage,
|
||||
language: input.languageCode || 'en-US',
|
||||
rate: '1',
|
||||
})
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue