question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Speech Synthesizer behavior change in V4

See original GitHub issue

Version

4.6 vis CDN

Describe the bug

In V3, we had an option to stop the speech from code and after that, the speech synthesizes won’t work until the user again uses speech recognizer.

In V4, this behavior has changed. The bot speaks out every message even after stoping it from code.

To Reproduce

Steps to reproduce the behavior:

  1. Go to any voice-enabled samples.
  2. Click on mic
  3. Speak something to the bot and wait for the bot to speak back.
  4. Execute the code segment speechServicesPonyfill.speechSynthesis.queue.stop(); speechServicesPonyfill.speechSynthesis.cancel(); The speech will stop now.
  5. Now type something to the bot. The reply will be again spoken by the bot.

Expected behavior

The bot should not speak once this code segment is executed. This was the behavior in V3.

Additional context

This is an upgrade issue and the context is that if we minimize the bot and we trigger any message from the user to the bot via piggybacking, the reply will be spoken by the bot even when it is minimized.

[Bug]

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Comments:7 (4 by maintainers)

github_iconTop GitHub Comments

1reaction
compulimcommented, Nov 11, 2019

@alokraj68, for stop speaking, can you implement point 3 as in this comment?

0reactions
compulimcommented, Jan 23, 2020

@alokraj68 are you trying to stop all speech synthesis?

If yes, this sample will help, https://github.com/microsoft/BotFramework-WebChat/tree/master/samples/03.speech/d.cognitive-speech-services-speech-recognition-only.

This sample build a partial adapter that enable speech recognition but disable speech synthesis, which will aid in your case if you are stopping all speech synthesis.

Read more comments on GitHub >

github_iconTop Results From Across the Web

NSSpeechSynthesizer | Apple Developer Documentation
Indicates whether the receiver is currently generating synthesized speech. ... Begins speaking synthesized text through the system's default sound output device.
Read more >
TI-99/4A Speech Synthesizer First Look, Background, and ...
Ep 36 : The Texas Instruments Speech Synthesizer - an overview of the technology, demonstration of game and educational software, ...
Read more >
Speech Synthesis Markup Language Specification - W3C
The "emphasis" element requests that the contained text be spoken with emphasis (also referred to as prominence or stress). The synthesizer ...
Read more >
Artificial speech synthesizer control by brain-computer interface
include devices to replace glottal pulse activity for laryngectomy patients and text-to-speech synthesizers incorporated into augmentative and alternative ...
Read more >
Speech Synthesis in the Translation Revision Process - MDPI
For viewing behaviour, a subset of eye-tracking data shows that participants focused more on the target text (TT) than the source regardless of...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found