System TTS Reader
A macOS VS Code extension that reads text aloud with the computer's built-in say command.
What It Reads
- A chat or assistant response copied to the clipboard.
- The active Markdown file.
- The selected editor text.
- Markdown files attached to the
@reader /read chat participant.
Other extension responses are not exposed through a stable general-purpose VS Code Chat response event. To read one, right-click a response, copy it, and then run System TTS: Read Chat Response from Clipboard.
Commands
Open the Command Palette and choose one of these commands:
System TTS: Read Chat Response from Clipboard
System TTS: Read Active Markdown File
System TTS: Read Editor Selection
System TTS: Stop Speaking
System TTS: Open Reader
The extension also contributes a TTS Reader Activity Bar view with the same controls.
Read Attached Markdown in Chat
- Open VS Code Chat.
- Type
@reader /read.
- Attach one or more Markdown files to the request.
- Send the request.
The participant reads the attached files aloud and reports the playback state in Chat. Markdown formatting is converted to speech-oriented plain text first.
Settings
systemTtsReader.voice: macOS voice name. Leave empty for the system default.
systemTtsReader.rate: speech rate from 90 to 500 words per minute; the default is 190.
List installed macOS voices with:
say -v '?'
Develop
npm install
npm test
Press F5 in VS Code to launch an Extension Development Host. The included launch configuration compiles the extension before opening the host.
Package
npm run package
This creates a .vsix file in the project directory. See the repository's PUBLISHING.md for private distribution and Marketplace publishing.
Mockup
Open the repository's mockup/index.html in a browser to view the standalone interactive interface mockup.
The current speech implementation uses /usr/bin/say on macOS. Text is passed to the local operating system process and is not sent by this extension to a cloud service. Windows and Linux support can be added with sapi/spvoice and espeak-ng or spd-say.