The Speech to text not return all text
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..
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_asyncoperation 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
EventSignalto 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.
Sign in to comment