chessyu / TTS-Nextjs

1.文字转语音 2.识别音频或视频中的文字
https://tts-nextjs-lyart.vercel.app
2 stars 1 forks source link

报错:点击试听 或者生成配音按钮时 调用SDK失败:undefined,应该怎么处理? #1

Open BigBigDeBoy opened 5 months ago

BigBigDeBoy commented 5 months ago

调用SDK失败:undefined

chessyu commented 5 months ago

调用SDK失败:undefined

你是没有配置环境变量吧? https://learn.microsoft.com/zh-cn/azure/ai-services/speech-service/get-started-text-to-speech?tabs=macos%2Cterminal&pivots=programming-language-javascript

.env 文件 NEXT_PUBLIC_SPEECH_KEY= NEXT_PUBLIC_SPEECH_REGION=