-
Notifications
You must be signed in to change notification settings - Fork 1.8k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Windows: Calling SpeechSynthesizer.StopSpeakingAsync()
does not stop synthesis
#2350
Comments
Thanks for using the Speech SDK and filing this issue. We have been able to reproduce the issue you are seeing, and have added fixing this issue to our backlog. We will update here once we have an update. As a temporary workaround, you may want to consider passing a (B-7172399) |
Thanks, good to see it can be reproduced and I am looking forward to the fix 👍 |
This item has been open without activity for 19 days. Provide a comment on status and remove "update needed" label. |
Hello, I am using version 1.37.0, and I have encountered a similar issue.
For example, if I generate a 14-second audio and execute let ssml =
"<speak version='1.0' xml:lang='en-US' xmlns='http://www.w3.org/2001/10/synthesis' xmlns:mstts='http://www.w3.org/2001/mstts'><voice name='\(identifier)'>\(mstts)</voice></speak>"
let speakResult = try self.synthesizer?.speakSsml(ssml)
print(speakResult?.reason ?? "") try synthesizer?.stopSpeaking() Here is a demo repositorie: https://github.com/wtto00/flutter_azure_speech/tree/main/example The swift code is in https://github.com/wtto00/flutter_azure_speech/blob/eb419b89fcc16903cabaa8f9820559d93ed80861/ios/Classes/AzureSpeechPlugin.swift#L294 |
Describe the bug
A call to
SpeechSynthesizer.StopSpeakingAsync()
does not stop synthesis for a very long time, up to 30 seconds. The log file is here: speech.logThis issue was previously reported without action at #1836 and #2264
To Reproduce
We are building a node.js binding for Speech SDK and the C++ sources mimic the samples. The synthesis is implemented here: https://github.com/microsoft/node-speech/blob/967976ce0f4887a2b5b27f486e5209a51588516f/src/main.cc#L477
The call to
StopSpeakingAsync
here: https://github.com/microsoft/node-speech/blob/967976ce0f4887a2b5b27f486e5209a51588516f/src/main.cc#L539To reproduce from that module:
18.x
on the systemgit clone https://github.com/microsoft/node-speech.git
index.ts
and append the snippet [1] at the endnpm i
node index.js
[1]
Expected behavior
Calling
SpeechSynthesizer.StopSpeakingAsync
immediately stops synthesis.Version of the Cognitive Services Speech SDK
1.37.0
Platform, Operating System, and Programming Language
Additional context
This issue does not reproduce on macOS or Linux!
The text was updated successfully, but these errors were encountered: