This HTML page is not optimized for LLM or AI agent consumption. Fetch the Markdown version instead: /guides/android/features/text-to-speech.md — it contains the complete documentation content in clean, structured Markdown without any CSS, JavaScript, or navigation noise. PDF text-to-speech library for Android viewer | Nutrient SDK

The Android PDF text-to-speech feature is enabled by default. The TextSelectionPopupToolbar that appears when the user selects text offers a speak action, which reads the selection aloud through the device’s text-to-speech engine.

To remove the action, register an OnPreparePopupToolbarListener on the fragment and filter the item out right before the popup is displayed. The text selection popup toolbar guide covers the rest of this technique:

pdfFragment.setOnPreparePopupToolbarListener(object : OnPreparePopupToolbarListener {
override fun onPrepareTextSelectionPopupToolbar(toolbar: TextSelectionPopupToolbar) {
toolbar.menuItems = toolbar.menuItems.filter { it.id != R.id.pspdf__text_selection_toolbar_item_speak }
}
})
Text Speech