internetarchive / internetarchive/bookreader

Add support for TTS to work in Firefox and Brave browser.

Open
#273 1 comment 0 reactions 0 assignees View on GitHub
read-aloud (tts)
Dominant language
JavaScript
Stars
1.2k
Forks
491
Avg merge
2d 15h
Merged PRs (30d)
3

Description

**Description**
Many users use the book-reader TTS feature for listening to audiobooks. But readers who use browsers like firefox and brave are not able to take benifit from this feature.
**Evidence / Screenshot (if possible)**
When we click on read out loud button on firefox web browser it just highlights the text without speaking out any audio.
typing ``speechSynthesis.getVoices()`` returns an empty array in the console.
**Note: I have just tested this on Ubuntu operating system the results can vary with different OS**
**Expectation**
TTS should read out the text.
**Tested On**
Ubuntu 19.10
Mozilla Firefox for Ubuntu canonical 1.0
Browser version 74.0 (64-bit)
**Proposal & Constraints**
speechSynthesis varies with respect to browser thus there is a need for writing separate code to handle other browser support.

**Stakeholders**

> @-tag any stakeholders of this bug

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.