internetarchive / internetarchive/bookreader

TTS reads out symbols

Open
#264 0 comments 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**

The TTS in book reader often speaks out certain symbols, which are not even there in the book, also most of the TTS aren't supposed to speak out symbols because they act as a break in the flow for listeners.
**Evidence / Screenshot (if possible)**
![Screenshot_20200328_180807](https://user-images.githubusercontent.com/45262592/77823207-42fca580-711f-11ea-9d75-84e299ffb2b6.png)
![Screenshot_20200328_180410](https://user-images.githubusercontent.com/45262592/77823229-6a537280-711f-11ea-9a37-060bf25ca54b.png)
![Screenshot_20200328_181259](https://user-images.githubusercontent.com/45262592/77823290-fa91b780-711f-11ea-8ec1-01a845140c21.png)
![Screenshot_20200328_153012](https://user-images.githubusercontent.com/45262592/77823243-9111a900-711f-11ea-8965-64b660907773.png)

**Context**
For eg. " * * Go away yourself " is pronounced as "asterisks asterisks Go away yourself ". This happens due to wrong OCR interpretations.
Cleaning up these symbols would help make the TTS a little more precise and fluent while speaking out the text.

**Proposal & Constraints**
The plan is to trim these false generated symbols using regular expressions.
``string = string.replace(/[@\/\\#+-$~%:*?<>{}]/g, ' ');``

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.