Greetings!
The issue of receiving a "Session Stopped" message before the end of your audio file is due to the use of the recognizeOnceAsync
method, which is not suitable for long audio files. This method works well with short audio inputs but not with longer recordings. To address this, you should use the startContinuousRecognitionAsync
method. This method is specifically designed for continuous recognition and can handle longer audio files without stopping the session prematurely.
For implementation details, please refer to the following documentation:
Azure Speech continuous recognition.
Hope this helps. If you have any follow-up questions, please let me know. I would be happy to help.
Please do not forget to "up-vote" wherever the information provided helps you, as this can be beneficial to other community members.