SDK should include a custom timeout configuration #2338
Labels
accepted
Issue moved to product team backlog. Will be closed when addressed.
update needed
For items that are in progress but have not been updated
Is your feature request related to a problem? Please describe.
Customers have reported an issue related to the code in the following GitHub link:
https://github.com/Azure-Samples/cognitive-services-speech-sdk/blob/master/samples/java/jre/console/src/com/microsoft/cognitiveservices/speech/samples/console/SpeechSynthesisScenarioSamples.java
Specifically, when the Speech service is unavailable (503 status) or the execution time is too long, the method audioDataStream.readData(buffer) on line 111 often hangs. This prevents subsequent tasks from proceeding, causing the application to wait indefinitely for the SDK to cancel the task.
Describe the solution you'd like
To enhance the robustness of our application, we recommend that the SDK include settings to configure timeouts.
Describe alternatives you've considered
While timeouts can be managed at the application level using Java's "ExecutorService" and "Future", incorporating this feature directly into the SDK would simplify management and improve usability.
The text was updated successfully, but these errors were encountered: