Azure-Samples / cognitive-services-speech-sdk

Sample code for the Microsoft Cognitive Services Speech SDK
MIT License
2.68k stars 1.79k forks source link

one and a half minutes of silence followed by human voices always results in the error 'Due to service inactivity, the client buffer exceeded maximum size. Resetting the buffer.' #2386

Open donglu-laxis opened 1 month ago

donglu-laxis commented 1 month ago

IN ORDER TO ASSIST YOU, PLEASE PROVIDE THE FOLLOWING:

speech_log.log

`

Describe the bug

I found that when autoDetectConfig is set to more than two languages, the recognition of the audio I provided, which starts with one and a half minutes of silence followed by human voices, always results in the error 'Due to service inactivity, the client buffer exceeded maximum size. Resetting the buffer.', and then the recognition is cancelled before it even starts recognizing the voices. I also encountered the same error when using a microphone for recognition. If you maintain a silent environment for about 1 minute and 9 seconds before starting recognition, the recognition will also be cancelled and the same error will occur.

To Reproduce

Using the audio file I provided, modify the code in cognitive-services-speech-sdk/tree/master/samples/swift/ios/conversation-transcription to replace it with the one I provided. The main configuration is to set autoDetectConfig for two languages using SPXConversationTranscriber.

Expected behavior

Can recognize the entire audio file properly without throwing the error 'Due to service inactivity, the client buffer exceeded maximum size. Resetting the buffer.

Version of the Cognitive Services Speech SDK

I use Cocoapods install library, version is MicrosoftCognitiveServicesSpeech-iOS 1.37.0 in Podfile.lock file

Platform, Operating System, and Programming Language

Additional context

donglu-laxis commented 1 month ago

I'm not sure if my problem is related to these issues.

1989 #2059 #2234

github-actions[bot] commented 2 weeks ago

This item has been open without activity for 19 days. Provide a comment on status and remove "update needed" label.