macOS: calling SpeechSynthesizer.StopSpeakingAsync()
and then StartSpeakingTextAsync()
does not work immediately
#2367
Labels
duplicate
This issue or pull request already exists
Describe the bug
A call to
SpeechSynthesizer.StopSpeakingAsync()
with a newStartSpeakingTextAsync
does not synthesise for up to 30 seconds. The log file is here: log.txtThis issue maybe related to #2350 and #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 andStartSpeakingTextAsync
works right after.Version of the Cognitive Services Speech SDK
1.37.0
Platform, Operating System, and Programming Language
//cc @ralph-msft
The text was updated successfully, but these errors were encountered: