Azure speech to text with empty result

Anonymous
2023-02-15T07:34:40.33+00:00

I am now using azure speech to text docker container and my own container to run project

my own container is built with fastapi to upload file and and change file format to wav, than throw to speech to text container to get text result.

But now face a problem, I run container use docker compose up use yml file. When api container throw to azure container start recognition and stop immediately and throw empty content.

Azure AI Speech
Azure AI Speech
An Azure service that integrates speech processing into apps and services.
1,903 questions
Azure AI services
Azure AI services
A group of Azure services, SDKs, and APIs designed to make apps more intelligent, engaging, and discoverable.
3,116 questions
{count} votes

Accepted answer
  1. romungi-MSFT 48,531 Reputation points Microsoft Employee
    2023-02-16T07:49:54.8833333+00:00

    蔣鎧駿 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!!


0 additional answers

Sort by: Most helpful

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.