Add dotenv

This commit is contained in:
Hongbo Wu
2022-08-26 16:30:09 +08:00
parent 5a1dbb594e
commit b2d49d1fbf
5 changed files with 52 additions and 21 deletions

View File

@ -330,12 +330,19 @@ export const enqueueSyncWithIntegration = async (
export const enqueueTextToSpeech = async (
userId: string,
speechId: string
speechId: string,
text: string,
textType: 'text' | 'ssml',
voice: string,
bucket: string
): Promise<string> => {
const { GOOGLE_CLOUD_PROJECT } = process.env
const payload = {
userId,
speechId,
id: speechId,
text,
voice,
bucket,
textType,
}
// eslint-disable-next-line @typescript-eslint/ban-ts-comment
// @ts-ignore