Change default rate to 1.1

This commit is contained in:
Hongbo Wu 2022-11-08 16:53:35 +08:00
parent ddd1e84686
commit f2a69d06c4
2 changed files with 4 additions and 3 deletions

View file

@ -69,6 +69,7 @@ export function textToSpeechRouter() {
options: {
primaryVoice: userPersonalization?.speechVoice || 'Axel',
secondaryVoice: 'Evelyn',
language: page.language,
},
})
@ -81,8 +82,8 @@ export function textToSpeechRouter() {
voice: utterance.voice || 'Axel',
priority: 'high',
isUltraRealisticVoice: true,
language: page.language || 'English',
rate: '1.1',
language: speechFile.language,
rate: userPersonalization?.speechRate?.toString() || '1.1',
})
logger.info('Start Text to speech task', { taskName })
}

View file

@ -44,7 +44,7 @@ export type SSMLOptions = {
const DEFAULT_LANGUAGE = 'en-US'
const DEFAULT_VOICE = 'en-US-JennyNeural'
const DEFAULT_SECONDARY_VOICE = 'en-US-GuyNeural'
const DEFAULT_RATE = '1.0'
const DEFAULT_RATE = '1.1'
const ANCHOR_ELEMENTS_BLOCKED_ATTRIBUTES = [
'omnivore-highlight-id',