SpeakMD - Markdown TTS Reader
Read Markdown files aloud inside Visual Studio Code with smart syntax cleanup, a built-in interactive Visual Reader, live paragraph highlighting, and support for both offline OS voices and Microsoft Edge Neural voices.
Features
- Interactive Visual Reader: Opens a clean, theme-aware Markdown preview with sticky playback controls, progress bar, engine/language/voice dropdowns, speed selector, and click-to-read from any paragraph, heading, list item, or table row.
- Works from Editor & Markdown Preview: Start reading from the Markdown text editor, from VS Code's built-in Markdown Preview, or from the Visual Reader itself.
- Smart Markdown Cleanup:
- Skips YAML frontmatter, HTML comments, horizontal rules, and link reference definitions.
- Strips formatting syntax (
#, **, *, ~~, backticks, blockquotes) while keeping text natural.
- Reads only the link label in
[text](https://github.com/nar-ran/speakmd/blob/HEAD/url) and simplifies bare URLs to their domain.
- Configurable code block handling: announce skipped blocks (localized to the active voice language), skip silently, or read raw code.
- Dual Speech Engines:
- Native OS (Offline, default): 100% free and offline using
System.Speech on Windows, say on macOS, or espeak-ng on Linux.
- Edge Neural (Online): High-quality Microsoft neural voices (Spanish, English, and more) with automatic prefetching of the next paragraph.
- Live Highlighting & Auto-Scroll: Highlights the active paragraph in both the Visual Reader and the source
.md editor, keeping it centered on screen.
- Bilingual UI (English / Spanish): Commands, settings, and Visual Reader interface adapt automatically to VS Code's display language.
Usage
1. Open the Visual Reader
Open any .md file (in the editor or in VS Code's built-in Markdown Preview) and click:
- The Open Visual Reader book icon in the top-right editor title bar, or
- Visual Reader in the bottom-right status bar, or
- Right-click inside the Markdown file and select SpeakMD: Open Visual Reader.
Inside the Visual Reader toolbar you can:
- Play, pause, stop, or jump between paragraphs.
- Switch between Native OS (Offline) and Edge Neural (Online).
- Filter voices by Language (
Spanish, English, or all installed voices) and pick your preferred Voice.
- Adjust reading Speed (
0.75x to 2.0x), Code blocks behavior, and Auto-scroll.
- Click any paragraph, heading, list item, or table row to start reading from that exact point.
2. Read Directly from the Editor
- Read Entire File: click the play button in the top-right editor title bar or status bar, or press
Ctrl+Alt+R (Cmd+Alt+R on macOS).
- Read From Cursor: right-click at your cursor position and choose Read From Cursor.
- Read Selection: select any Markdown text, right-click, and choose Read Selection.
Keyboard Shortcuts
| Action |
Windows / Linux |
macOS |
| Read Entire File |
Ctrl+Alt+R |
Cmd+Alt+R |
| Pause / Resume |
Ctrl+Alt+P |
Cmd+Alt+P |
| Stop Reading |
Ctrl+Alt+S |
Cmd+Alt+S |
Extension Settings
| Setting |
Default |
Description |
speakmd.engine |
"native" |
Speech engine: "native" (offline OS) or "edge" (Microsoft Edge Neural). |
speakmd.nativeVoice |
"" |
Installed OS voice name for Native TTS (empty uses system default). |
speakmd.edgeVoice |
"es-MX-DaliaNeural" |
Voice short name for Edge Neural TTS (e.g., es-MX-DaliaNeural, en-US-JennyNeural). |
speakmd.rate |
1.0 |
Playback speed multiplier (0.5 to 2.5). |
speakmd.codeBlockBehavior |
"announce" |
How fenced code blocks are handled: "announce", "skip", or "read". |
speakmd.readImageAlt |
true |
Read image alt text aloud when available. |
speakmd.highlightActiveLine |
true |
Highlight the currently spoken paragraph in the editor. |
speakmd.autoScroll |
true |
Automatically scroll the editor and reader to follow playback. |
Development & Packaging
npm install
npm run check-types
npm run build
npm test
Press F5 in VS Code to launch the Extension Development Host.
To package or publish:
npx @vscode/vsce package
npx @vscode/vsce publish
License
MIT - Copyright (c) 2026 nar-ran (Nikol)
| |