Enqueue TTS task in the get speech of article API if speech not found

This commit is contained in:
Hongbo Wu
2022-08-22 16:13:34 +08:00
parent efce6dad94
commit 463f423cab
2 changed files with 28 additions and 60 deletions

View File

@ -330,12 +330,12 @@ export const enqueueSyncWithIntegration = async (
export const enqueueTextToSpeech = async (
userId: string,
pageId: string
speechId: string
): Promise<string> => {
const { GOOGLE_CLOUD_PROJECT } = process.env
const payload = {
userId,
pageId,
speechId,
}
// eslint-disable-next-line @typescript-eslint/ban-ts-comment
// @ts-ignore