The Speech to text not return all text

Cristian Camilo Bonilla Tellez 25 Reputation points
2023-05-26T15:08:47.1866667+00:00

I am using a Speech to text transcription service with python, but the service not returns all transcription of the audio, just a few seconds... and when exists silence on the audio not return anything more..

Azure AI Speech
Azure AI Speech
An Azure service that integrates speech processing into apps and services.
1,778 questions
Azure AI services
Azure AI services
A group of Azure services, SDKs, and APIs designed to make apps more intelligent, engaging, and discoverable.
2,908 questions
0 comments No comments
{count} votes

1 answer

Sort by: Most helpful
  1. VasaviLankipalle-MSFT 17,646 Reputation points
    2023-05-26T22:16:10.1433333+00:00

    Hi @Cristian Camilo Bonilla Tellez , Thanks for using Microsoft Q&A Platform.

    I'm not sure about the method you have used. If you have followed QuickStart, then I believe this might be reason due to recognize_once_async method. As recognize_once_async operation transcribe utterances of up to 30 seconds, or until silence is detected.

    Try to you use continuous recognition when you want to control when to stop recognizing. It requires you to connect to EventSignal to get the recognition results.

    To stop recognition, you must call stop_continuous_recognition(). As mentioned here: https://learn.microsoft.com/en-us/azure/cognitive-services/speech-service/how-to-recognize-speech?pivots=programming-language-python#use-continuous-recognition

    Here's an Github sample example for your references: https://github.com/Azure-Samples/cognitive-services-speech-sdk/blob/master/samples/python/console/speech_sample.py

    I hope this helps. Please try these or share more information.

    Regards,
    Vasavi

    0 comments No comments

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.