Convert HTML to utterances

This commit is contained in:
Hongbo Wu
2022-11-07 19:30:20 +08:00
parent abc9dd49be
commit 2e47b0879c
3 changed files with 37 additions and 11 deletions

View File

@ -344,6 +344,7 @@ export const enqueueTextToSpeech = async ({
bucket = env.fileUpload.gcsUploadBucket,
queue = 'omnivore-demo-text-to-speech-queue',
location = env.gcp.location,
isUltraRealisticVoice = false,
}: {
userId: string
speechId: string
@ -354,6 +355,7 @@ export const enqueueTextToSpeech = async ({
textType?: 'text' | 'ssml'
queue?: string
location?: string
isUltraRealisticVoice?: boolean
}): Promise<string> => {
const { GOOGLE_CLOUD_PROJECT } = process.env
const payload = {
@ -362,6 +364,7 @@ export const enqueueTextToSpeech = async ({
voice,
bucket,
textType,
isUltraRealisticVoice,
}
// eslint-disable-next-line @typescript-eslint/ban-ts-comment
// @ts-ignore