From 7177279951ce7c5393630db1cbe91b9fd3b4f481 Mon Sep 17 00:00:00 2001 From: Jackson Harper Date: Thu, 16 Feb 2023 11:23:28 +0800 Subject: [PATCH] Fix envar name --- packages/text-to-speech/src/realisticTextToSpeech.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/text-to-speech/src/realisticTextToSpeech.ts b/packages/text-to-speech/src/realisticTextToSpeech.ts index a93f40e3a..9b76942f2 100644 --- a/packages/text-to-speech/src/realisticTextToSpeech.ts +++ b/packages/text-to-speech/src/realisticTextToSpeech.ts @@ -11,7 +11,7 @@ export class RealisticTextToSpeech implements TextToSpeech { ): Promise => { const voiceId = process.env.REALISTIC_VOICE_ID const apiKey = process.env.REALISTIC_VOICE_API_KEY - const apiEndpoint = process.env.REALISTIC_API_ENDPOINT + const apiEndpoint = process.env.REALISTIC_VOICE_API_ENDPOINT if (!apiEndpoint || !apiKey || !voiceId) { throw new Error('API credentials not set')