drmfinlay / tts-util-app

TTS Util — Text-to-speech utility Android app for synthesising text into audible speech

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Exclude from voicing

MuratovAS opened this issue · comments

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.

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.

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.