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

The JavaScript PDF text-to-speech feature uses the text extraction API to extract text from a PDF document. Then, the text is passed to the screen reader for speech synthesis. The raw text content of PDFs is also accessible to screen readers out of the box.