Convert HTML to utterances
This commit is contained in:
@ -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
|
||||
|
||||
Reference in New Issue
Block a user