Add default language and rate
This commit is contained in:
@ -67,8 +67,10 @@ export function textToSpeechRouter() {
|
||||
title: page.title,
|
||||
content: page.content,
|
||||
options: {
|
||||
primaryVoice: userPersonalization?.speechVoice || 'Larry',
|
||||
secondaryVoice: 'Evelyn',
|
||||
primaryVoice: userPersonalization?.speechVoice || 'Axel',
|
||||
secondaryVoice: userPersonalization?.speechVoice || 'Evelyn',
|
||||
language: page.language || 'English',
|
||||
rate: '1.1',
|
||||
},
|
||||
})
|
||||
|
||||
@ -78,7 +80,7 @@ export function textToSpeechRouter() {
|
||||
userId,
|
||||
speechId: utterance.idx,
|
||||
text: utterance.text,
|
||||
voice: utterance.voice || 'Larry',
|
||||
voice: utterance.voice || 'Axel',
|
||||
priority: 'high',
|
||||
isUltraRealisticVoice: true,
|
||||
})
|
||||
|
||||
@ -24,12 +24,12 @@ import { RealisticTextToSpeech } from './realisticTextToSpeech'
|
||||
type RedisClient = ReturnType<typeof createClient>
|
||||
|
||||
interface UtteranceInput {
|
||||
voice?: string
|
||||
rate?: string
|
||||
language?: string
|
||||
text: string
|
||||
idx: string
|
||||
isUltraRealisticVoice?: boolean
|
||||
voice?: string
|
||||
rate?: string
|
||||
language?: string
|
||||
}
|
||||
|
||||
interface HTMLInput {
|
||||
|
||||
Reference in New Issue
Block a user