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,