Skip to content

Commit

Permalink
1
Browse files Browse the repository at this point in the history
  • Loading branch information
songh3 committed Feb 8, 2024
1 parent f45f967 commit 052541a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/components/ltt.ts
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ const serviceRegion = "eastus"; // 例如 "westus"
// 创建语音识别器

export default function recognizeSpeech(): Promise<string> {
let subscriptionKey = process.env.OPENAI_ORG_ID;
let subscriptionKey = process.env.OPENAI_ORG_ID || "";
const speechConfig = sdk.SpeechConfig.fromSubscription(
subscriptionKey,
serviceRegion,
Expand Down

0 comments on commit 052541a

Please sign in to comment.