mirror of
https://github.com/omnivore-app/omnivore.git
synced 2026-03-11 08:54:26 +00:00
Merge pull request #1409 from omnivore-app/change-default-voice
Replace default voice to Larry for pre-generating
This commit is contained in:
commit
19b8b1a965
1 changed files with 7 additions and 3 deletions
|
|
@ -18,6 +18,9 @@ import { UserPersonalization } from '../entity/user_personalization'
|
|||
import { ArticleSavingRequestStatus } from '../elastic/types'
|
||||
import { FeatureName, getFeature } from '../services/features'
|
||||
|
||||
const DEFAULT_VOICE = 'Larry'
|
||||
const DEFAULT_COMPLIMENTARY_VOICE = 'Evelyn'
|
||||
|
||||
const logger = buildLogger('app.dispatch')
|
||||
|
||||
export function textToSpeechRouter() {
|
||||
|
|
@ -74,9 +77,10 @@ export function textToSpeechRouter() {
|
|||
title: page.title,
|
||||
content: page.content,
|
||||
options: {
|
||||
primaryVoice: userPersonalization?.speechVoice || 'Axel',
|
||||
primaryVoice: userPersonalization?.speechVoice || DEFAULT_VOICE,
|
||||
secondaryVoice:
|
||||
userPersonalization?.speechSecondaryVoice || 'Evelyn',
|
||||
userPersonalization?.speechSecondaryVoice ||
|
||||
DEFAULT_COMPLIMENTARY_VOICE,
|
||||
language: page.language,
|
||||
},
|
||||
})
|
||||
|
|
@ -92,7 +96,7 @@ export function textToSpeechRouter() {
|
|||
userId,
|
||||
speechId: utterance.idx,
|
||||
text: utterance.text,
|
||||
voice: utterance.voice || 'Axel',
|
||||
voice: utterance.voice || DEFAULT_VOICE,
|
||||
priority: 'high',
|
||||
isUltraRealisticVoice: true,
|
||||
language: speechFile.language,
|
||||
|
|
|
|||
Loading…
Reference in a new issue