Microphone button disabled when speech synthesis is disabled and received an "expecting" input hint #2435
Labels
Bot Services
Required for internal Azure reporting. Do not delete. Do not change color.
bug
Indicates an unexpected problem or an unintended behavior.
customer-reported
Required for internal Azure reporting. Do not delete.
Screenshots
Version
master
Describe the bug
When speech synthesis is disabled, but speech recognition is enabled (i.e. sample 06.h), the microphone button is disabled after receiving an "expecting" input hint.
To Reproduce
06.h
Expected behavior
After receiving the message "This activity is expecting input", the microphone should be re-opened to receive further speech commands from the user.
Additional context
Looks like the expecting input is trying to open the microphone, but somehow it stuck at "opening (1)" phase.
When we are investigating, the "expecting input" saga is trying to turn on the microphone by calling
startDictate
. This will open microphone after all synthesis is completed, which never happen. But if we callstopSpeakingActivity
, it will never speak any activities if speech synthesis is not disabled.Looks like the best fix would be, instead of ignoring the speech synthesis engine, we should provide a "no-op" speech synthesis engine.
If the dev did not provide a speech synthesis engine, the "no-op" engine will pretend to synthesize the activity and signal the completion synchronously. In this way, the expecting input should continue to work.
[Bug]
The text was updated successfully, but these errors were encountered: