蔣鎧駿 Have you verified if your speech to text container is running successfully on port 5000? I believe you have run the following to run the container.
docker run --rm -it -p 5000:5000 --memory 8g --cpus 4 \
mcr.microsoft.com/azure-cognitive-services/speechservices/speech-to-text \
Eula=accept \
Billing={ENDPOINT_URI} \
ApiKey={API_KEY}
I would first recommend testing the speech to text container by setting the endpoint on SpeechConfig() to localhost:5000 and then integrate with your other container.
var config = SpeechConfig.FromHost(
new Uri("ws://localhost:5000"));
Depending on the language you are using the setting of this config might change. Please see the quickstart or the container documentation on setting up for different languages.
If you have already run this setup and the result is empty you will have to verify if the AudioConfig() is correctly configured to read the speech file or input from microphone. Also, add some logs to print any errors that might be causing your container to give a blank result. It would also be helpful to understand how you are calling the container endpoint for STT processing to advise further. Thanks!!