[Bug] Live Translator: "No speech engine on this device" with a third-party TTS engine on GrapheneOS
Note: I narrowed this down with the help of an AI assistant (details at the end). All tests were done by me on my own device.
Describe the bug
The Live Translator never speaks the translation. It shows No speech engine on this device — showing text only., even though a working system TTS engine is installed and set as the preferred engine.
To Reproduce
- Install a non-Google TTS engine (here: Marmalade TTS,
app.marmalade.tts) and set it under Settings → System → Languages → Text-to-speech output. - Tap Play there: the voice works.
- Open Sound → Live Translator, German ↔ English, and translate a phrase.
- The translation appears as text, together with
No speech engine on this device — showing text only.
Expected behavior
Box uses the system's preferred TTS engine and speaks the translation.
Actual behavior
TTS initialisation fails in Box and nothing is spoken. Other apps can use the same engine.
Device & App Information
- Device: Google Pixel 9a
- OS: GrapheneOS, build
2026111801(no Google TTS installed) - App: Box
Version 3.5.7, APK variantcustom-rom-support - TTS engine: Marmalade TTS (supports German and English)
APK analysis / suspected root cause
This comes from static analysis of the official release APK. That APK was Box_v3.5.7_custom-rom-support_PQC.apk (SHA-256 76dbea78ae863769f4a302172c2b93e5f487be0ac1a462bf6cf1513be62f8b49). No decompiled files are attached.
- The message appears to be set in
TextToSpeech.OnInitListener.onInit()when the status is notSUCCESS. - The app targets SDK 37, so the package visibility rules apply. The manifest's
<queries>only lists specific packages:<queries> ... <package android:name="com.google.android.aicore"/> <package android:name="com.google.android.tts"/> </queries> - The generic
TTS_SERVICEintent query is missing, so Box can only see Google's TTS. Any other engine (Marmalade, RHVoice, eSpeak NG, Sherpa-ONNX TTS …) is invisible to Box, and initialisation fails. On stock Pixels Google TTS is preinstalled, so this would go unnoticed there.
I haven't confirmed this with logcat yet.
Suggested fix
Add the TTS service query, as described in Android's package visibility documentation:
<queries>
<intent>
<action android:name="android.intent.action.TTS_SERVICE" />
</intent>
</queries>
Likely also affects Box Assist and other spoken output (not tested): the manifest entry applies to the whole app. Box Assist speaks its callouts and answers through the system TTS engine too (log tag BoxAssistSpeaker, same TextToSpeech(context, listener) setup with the default engine, and its own log message TextToSpeech init FAILED: status=… — no speech will be produced.), so it would likely fail the same way.
Additional context
How this was analysed: I worked with an AI assistant to narrow down the cause. The assistant inspected the manifest and the disassembled release APK, and I ran the tests on my device. The analysis is reconstructed from the APK, not taken from your source, so please treat it as a pointer rather than a certainty.
Thanks again for Box, and especially for the custom-rom-support build. It's great to have such a capable offline AI suite on GrapheneOS.
Happy to test a build. kjoetom
@kjoetom
this one is also being worked on, thank you ! :)