Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Select an option

  • Save candideu/146b60a37e32fd5325d2234352a6daba to your computer and use it in GitHub Desktop.

Select an option

Save candideu/146b60a37e32fd5325d2234352a6daba to your computer and use it in GitHub Desktop.
Replacing Google's text-to-speech engine with Sherpa TTS on Android

For any Android users out who want to use a text-to-speech engine other than Google's, I recommend Sherpa TTS

It's open source, offline, multilingual, and available on F-Droid.

I use text-to-speech a lot with my RSS readers (Feeder and ReadYou), and it's been a game-changer.

1. Download the app

To get it working, download the app from F-Droid (here's more info on how to install F-Droid), or download the .apk to install it directly.

Screenshot of the SherpaTTS app listing on the F-Droid app

2. Add the voices

Once it's installed, open the app and add the voices of your choice.

SherpaTTS supports voice models from:

➡️ Piper — demos, dataset links, training info, and licenses: https://rhasspy.github.io/piper-samples/

➡️ Coqui — info: https://github.com/coqui-ai/TTS

I use Piper's "Alba" voice for English, and "UPMC" for French.

Screenshot of the SherpaTTS app landing page

Screenshot of SherpaTTS app, on the language model download page

3. Set Sherpa as the preferred engine

Once you've installed the language model(s) of your choice, click on the gear icon at the bottom-right to be taken to your phone's "Text-to-speech output" settings. Click on "Preferred engine", and select SherpaTTS.

Video demo'ing how to set up SherpaTTS on your Android system-wide

There you have it! You can now use SherpaTTS with any app that uses Android's speech synthesis.

4. Examples of apps that use Android's speech synthesis

My favourite ones are:

Video demo of the read aloud function on the ReadYou RSS reader app. A page from my website is being read.

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