Skip to content
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

[audio-slideshow] Use Web Speech API for TTS? #3

Open
fghaas opened this issue Jan 6, 2016 · 6 comments
Open

[audio-slideshow] Use Web Speech API for TTS? #3

fghaas opened this issue Jan 6, 2016 · 6 comments

Comments

@fghaas
Copy link

fghaas commented Jan 6, 2016

Would it make sense for the Audio slideshow plugin to use the Web Speech API, which by now is included in several popular browsers? https://developers.google.com/web/updates/2013/01/Voice-Driven-Web-Apps-Introduction-to-the-Web-Speech-API?hl=en

@rajgoel
Copy link
Owner

rajgoel commented Jan 6, 2016

It would be nice to be able to use the Web Speech API. I haven't followed on this so far, because I couldn't figure out how to link the result to the audio player controls, so that the user can pause, seek, play the audio. If this can be done, this would be a great improvement of the plugin.

See:
http://stackoverflow.com/questions/21514588/how-to-access-audio-result-from-speech-synthesis-api
http://caniuse.com/#feat=speech-synthesis

@rajgoel rajgoel changed the title Use Web Speech API for TTS? [audio-slideshow] Use Web Speech API for TTS? Mar 12, 2016
@jamjolu
Copy link

jamjolu commented Mar 24, 2017

I just posted a simple plugin for adding text to speech to reveal.js using the HTML5 speech API.
It works on Widows using Chrome, Firefox, Opera and on Linux using Google Chrome.

To the demo: https://jamjolu.github.io/tts_basics_for_revealjs

To the github repo: https://github.com/jamjolu/tts_basics_for_revealjs

@fghaas
Copy link
Author

fghaas commented Mar 26, 2017

@jamjolu This is really cool, and it works fine for me on Firefox (on Linux) and Chrome (Linux and Android). It just stays silent in Chromium (on Linux) though; have you managed to get that to work?

@jamjolu
Copy link

jamjolu commented Mar 27, 2017 via email

@jamjolu
Copy link

jamjolu commented Mar 27, 2017 via email

@fghaas
Copy link
Author

fghaas commented Mar 27, 2017

I believe (though I may be wrong) that all you need for Firefox to do speech synthesis on Debian-based distros is have media.webspeech.synth.enabled set to true (the default), and have the speech-dispatcher package installed.

Which, as I understand it, should also be true for enabling speech synthesis in Chromium, but that doesn't appear to work (for whatever reason).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants