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

Exclude from voicing #17

Closed
MuratovAS opened this issue Dec 16, 2021 · 4 comments
Closed

Exclude from voicing #17

MuratovAS opened this issue Dec 16, 2021 · 4 comments

Comments

@MuratovAS
Copy link

It would be nice if it were possible to exclude a voice from reading:

  • URL
  • Tags (#)
  • Emoji

I think that such options can be made in the settings.

@drmfinlay
Copy link
Owner

drmfinlay commented Dec 16, 2021 via email

@drmfinlay
Copy link
Owner

drmfinlay commented Dec 19, 2021 via email

@drmfinlay
Copy link
Owner

I have taken some time to look into this today.

Tags (#) are easy enough to filter out, of course. Doing the same for URLs doesn't look too difficult. The only question is which types of URL to filter. Filtering URLs with the HTTP (and HTTPS) scheme and the mailto scheme seems good enough to my mind. That covers most hyperlinks.

For emoji, it is too difficult, since the application would need to parse through the relevant Unicode "data file" and compare input bytes. I'm not really willing to put the time into that. I will say that, although some text-to-speech engines (e.g. eSpeak and Google TTS) read out descriptions of each emoji encountered, others just pass over them silently. The older Android app for the CMU Flite TTS engine does this, for instance. It is available from the F-Droid store here.

I'll add options for the first two in the next version.

drmfinlay added a commit that referenced this issue Jun 26, 2022
Re: #17.

There are two filters.  One removes hashes (#) from the input text
and the other removes HTTP, HTTPS and MAILTO hyperlinks (URLs).

Text filters are applied to input text for reading and file synthes-
is tasks.
drmfinlay added a commit that referenced this issue Jun 26, 2022
Re: #17.

The options are for filtering hash characters, web links and mailto
links.

This finishes the work planned for this feature.  It is extensible
enough that further non-contextual filters could be added later with
minimal effort.
@drmfinlay
Copy link
Owner

This feature is now available in TTS Util version 4.0.0. See the releases page. The new version will be available on the Google Play and F-Droid stores soon.

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

No branches or pull requests

2 participants