-
Notifications
You must be signed in to change notification settings - Fork 2.1k
Description
Describe the bug
Using the sample code for extracting timing information from speech synthesis, I notice that occasionally WordBoundary events appear not to fire. For short text sometimes there are none at all. For longer text sometimes it cuts off in the middle.
Exception or Stack Trace
n/a
To Reproduce
Not reliably reproducible, so I assume it's some race condition somewhere. I couldn't reproduce it in a local env with debug logging (yet), but I've confirmed malformed output resulting from this in production environments.
Code Snippet
https://github.com/Azure-Samples/cognitive-services-speech-sdk/blob/daeea5e24a5171a18cd40b94ca24a9ee5d597690/samples/java/jre/console/src/com/microsoft/cognitiveservices/speech/samples/console/SpeechSynthesisSamples.java#L704 the sample code
Expected behavior
Once the SpeechSynthesisResult.getReason says it's SynthesizingAudioCompleted I expect all WordBoundary events to have been fired as well.
Screenshots
n/a
Setup (please complete the following information):
- OS: [e.g. iOS] Debian Bullseye
- IDE: [e.g. IntelliJ] VSCode
- Library/Libraries: com.microsoft.cognitiveservices.speech client-sdk 1.36.0
- Java version: [e.g. 8] 21
- App Server/Environment: Netty 4.1.100.Final
- Frameworks: only Netty
If you suspect a dependency version mismatch (e.g. you see NoClassDefFoundError, NoSuchMethodError or similar), please check out Troubleshoot dependency version conflict article first. If it doesn't provide solution for the problem, please provide:
- verbose dependency tree (
mvn dependency:tree -Dverbose) - exception message, full stack trace, and any available logs
Additional context
Add any other context about the problem here.
Information Checklist
Kindly make sure that you have added all the following information above and checkoff the required fields otherwise we will treat the issuer as an incomplete report
- Bug Description Added
- Repro Steps Added
- Setup information Added