---
title: "Convert PDF text to speech with JavaScript library | Nutrient"
canonical_url: "https://www.nutrient.io/guides/web/viewer/accessibility/text-to-speech/"
md_url: "https://www.nutrient.io/guides/web/viewer/accessibility/text-to-speech.md"
last_updated: "2026-06-09T10:23:04.097Z"
description: "Learn how to convert PDF text to speech using a JavaScript library. Extract text from PDFs and enable speech synthesis for enhanced accessibility."
---

# Text-to-speech conversion from PDF using JavaScript

The JavaScript PDF text-to-speech feature uses the [text extraction API](https://www.nutrient.io/guides/web/features/text-extraction.md) 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.
---

## Related pages

- [Accessibility support for our JavaScript PDF viewer](/guides/web/viewer/accessibility.md)
- [Keyboard-accessible review workflow](/guides/web/viewer/accessibility/keyboard-review-workflow.md)

