Closed albin3 closed 1 year ago
any response?
Did you set the environment variables "SPEECH_KEY" and "SPEECH_REGION" with your keys and region values?
You commented that you are using an ubuntu docker image on OSx, but most docker containers are not configured to have Speaker and Microphone input. Can you try modifying the AudioOutputConfig to use a file on disk, rather than the "default speaker". Or just use this premade sample, speech_synthesis_to_wave_file()
Hi @BrianMouncer , I have set the env value like this:
When I run this file , an error occurs
@BrianMouncer got same error in java sdk
seems got same error in sample project, I checked SPEECH_KEY and SPEECH_REGION in env before run.
Hi @albin3 - from the screenshots, it looks like you are setting the region
incorrectly, can you try it with just the region info? E.g. "eastasia"
https://learn.microsoft.com/azure/ai-services/speech-service/regions
@brandom-msft got work, thx
issue closing
Describe the bug
just can't use sdk for version. azure-cognitiveservices-speech==1.32.1
following https://learn.microsoft.com/zh-cn/azure/ai-services/speech-service/how-to-speech-synthesis?tabs=browserjs%2Cterminal&pivots=programming-language-python
To Reproduce
Steps to reproduce the behavior:
Expected behavior
A clear and concise description of what you expected to happen.
Version of the Cognitive Services Speech SDK
Which version of the SDK are you using.
Platform, Operating System, and Programming Language
Additional context