Okay, let's break down how to get Text-to-Speech (TTS) working with SherpaTTS on GrapheneOS. There are a couple of distinct things going on here:
- Setting SherpaTTS as the System TTS Engine: This makes SherpaTTS the default voice generator that any app requesting TTS will use.
- Using an Accessibility Service like "Select to Speak": This is a specific feature that lets you select text on the screen and have it read aloud using the system's default TTS engine. GrapheneOS, aiming to be minimal and free of Google services, might not include Google's "Select to Speak" feature by default.
Here's how to troubleshoot and configure SherpaTTS:
Step 1: Verify SherpaTTS Installation and Setup
- Make sure you have installed the SherpaTTS app correctly (presumably from F-Droid or another source).
- Open the SherpaTTS app itself. Check if it requires you to download specific voices or models. Ensure at least one voice is downloaded and selected within the SherpaTTS app settings if applicable.
Step 2: Set SherpaTTS as the Default TTS Engine
This is the crucial step to make the system use SherpaTTS.
- Go to your phone's Settings.
- Navigate to System.
- Tap on Languages & input.
- Find and tap on Text-to-speech output (sometimes called "Text-to-speech settings").
- Look for Preferred engine. Tap on it.
- You should see a list of installed TTS engines (likely including Google's default if it wasn't removed, and SherpaTTS).
- Select SherpaTTS.
- Crucially: Back on the main "Text-to-speech output" screen, tap the "Listen to an example" button (or similar wording like "Play"). Does it speak using the SherpaTTS voice?
- If YES: SherpaTTS is correctly set up as the system engine. The problem lies in how you're trying to trigger speech (i.e., the missing "Select to Speak").
- If NO: There might be an issue with SherpaTTS itself (missing voices, permissions?) or its integration. Double-check Step 1. Try rebooting the phone.
Step 3: Understanding and Finding "Select to Speak" (or Alternatives)
- Why it might be missing: GrapheneOS intentionally removes many Google components for privacy and security. Google's "Select to Speak" is part of the Google Accessibility Suite, which GrapheneOS likely doesn't include by default.
- Check Accessibility Settings: Even if Google's isn't there, let's double-check GrapheneOS's accessibility options:
- Go to Settings.
- Tap on Accessibility.
- Look carefully through the Screen readers or Downloaded apps/services sections. Is there any option that sounds like "Select to Speak", "Read selection", or similar? Sometimes accessibility services installed via apps appear here. SherpaTTS itself might offer an accessibility service, though it's primarily an engine.
- Alternatives if "Select to Speak" is truly absent:
- App-Specific Features: Many apps (like e-readers, some browsers, feed readers) have their own built-in "Read Aloud" or TTS functionality. Check the settings within the specific app where you want text read. These apps will use the system default TTS engine (which you set to SherpaTTS in Step 2).
- Third-Party Accessibility Apps: Search F-Droid (GrapheneOS's recommended app source) for "Accessibility" or "Text to Speech". You might find alternative apps that provide a "Select to Speak"-like overlay or function. Examples might include "@Voice Aloud Reader" (though check its privacy implications) or simpler tools.
- TalkBack: GrapheneOS usually includes TalkBack, the primary screen reader. While designed for visually impaired users (reading everything interactively), you can sometimes configure it to read specific content, but it's generally overkill and changes how you interact with the phone significantly compared to "Select to Speak". Probably not what you want unless you need a full screen reader.
Summary & Key Actions:
- Confirm SherpaTTS is the
Preferred engine in Settings > System > Languages & input > Text-to-speech output.
- Test using the
Listen to an example button on that same settings screen.
- Accept that Google's "Select to Speak" feature is likely not present on GrapheneOS by default.
- Look for alternative ways to trigger TTS:
- Use built-in read-aloud features within specific apps (e-readers, etc.).
- Search F-Droid for alternative accessibility tools that might offer selection-based reading.
If you can get the "Listen to an example" working, SherpaTTS is functional as your system TTS. You just need a compatible app or accessibility service to trigger it for specific text selections.