mirror of
https://github.com/omnivore-app/omnivore.git
synced 2026-03-11 08:54:26 +00:00
Update API endpoint
This commit is contained in:
parent
d9dc701de8
commit
bbbd3d10af
1 changed files with 5 additions and 5 deletions
|
|
@ -15,7 +15,7 @@ export interface TextToSpeechInput {
|
|||
language?: string
|
||||
textType?: 'html' | 'utterance'
|
||||
rate?: number
|
||||
complimentaryVoice?: string
|
||||
secondaryVoice?: string
|
||||
audioStream?: NodeJS.ReadWriteStream
|
||||
}
|
||||
|
||||
|
|
@ -131,10 +131,10 @@ export const synthesizeTextToSpeech = async (
|
|||
|
||||
try {
|
||||
const ssmlOptions = {
|
||||
primaryVoice: input.voice || 'en-US-JennyNeural',
|
||||
secondaryVoice: input.complimentaryVoice || 'en-US-GuyNeural',
|
||||
language: input.language || 'en-US',
|
||||
rate: input.rate || 1.25,
|
||||
primaryVoice: input.voice,
|
||||
secondaryVoice: input.secondaryVoice,
|
||||
language: input.language,
|
||||
rate: input.rate,
|
||||
}
|
||||
if (textType === 'html') {
|
||||
const ssmlItems = htmlToSsmlItems(input.text, ssmlOptions)
|
||||
|
|
|
|||
Loading…
Reference in a new issue