From 052541aec4148a1515b0c478a413cb371ab703ee Mon Sep 17 00:00:00 2001 From: songh3 Date: Fri, 9 Feb 2024 00:20:05 +0800 Subject: [PATCH] 1 --- app/components/ltt.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/components/ltt.ts b/app/components/ltt.ts index ef00051d69e..89f1fc3e01b 100644 --- a/app/components/ltt.ts +++ b/app/components/ltt.ts @@ -11,7 +11,7 @@ const serviceRegion = "eastus"; // 例如 "westus" // 创建语音识别器 export default function recognizeSpeech(): Promise { - let subscriptionKey = process.env.OPENAI_ORG_ID; + let subscriptionKey = process.env.OPENAI_ORG_ID || ""; const speechConfig = sdk.SpeechConfig.fromSubscription( subscriptionKey, serviceRegion,