Skip to content

About

Paste Japanese text and hear it read aloud with Irodori-TTS, sentence by sentence; with an MCP server so Claude can read aloud what it writes

Topics

Resources

Stars

0 stars

Watchers

0 watching

Forks

Latest commit

 

History

1 Commit

Folders and files

Repository files navigation

Irodori Reader

Paste Japanese text, such as a short story of a few paragraphs, and hear it read aloud with natural Irodori-TTS voices running on your own computer. You hear how every sentence is pronounced while the sentence being read is highlighted. You can slow it down, replay one sentence, and save the whole reading as a WAV file.

It also includes an MCP server, so Claude (Claude Code, Claude Desktop) can read aloud what it writes for you: "write me a short story with my words and read it to me".

It uses the local server, voices and settings of the Anki add-on Irodori Audio, so there is no second setup.

Tested on Windows 11 with an NVIDIA RTX 4080. Playback uses Windows' built-in audio, so the app is Windows only.

What it does

  • Read aloud from the cursor, sentence by sentence, with the current sentence highlighted. The next sentence is generated while the current one plays.
  • Double-click a sentence to hear just that one.
  • Six voices (3 female, 3 male) from the add-on, or Auto: a voice and an emotion for every sentence, chosen by the add-on's own rules (speech style such as 俺, ぼく, わよ; keywords; punctuation).
  • Speed 0.6–1.3. At 0.75 the pronunciation is easy to follow, and it still sounds natural.
  • Save WAV: the whole text as one file, with a short pause between sentences.
  • Quotes stay together: 「そんなこと、絶対させない!」って言った is one sentence.
  • Chat decoration is not read aloud: speaker tags such as 【friend】, markdown (**, #, >) and --- lines.
  • Every clip is cached, so playing a sentence again is instant. A clip that runs far too long for its text (a stray cry after the sentence) is regenerated with another seed, as in the add-on.

Quick start

You need:

  1. The Anki add-on Irodori Audio (code 2078760911) with its local server set up: in Anki, Tools > Irodori Audio > Set up local server.... The reader starts that server itself when it is not running, so Anki does not have to be open.
  2. uv, which runs the reader with the right Python.

Then download the latest release, unzip it and run:

uvw run --no-project --python 3.13 reader_app.pyw

To get a shortcut on the desktop and in the Start menu, run this once in the unzipped folder:

powershell -ExecutionPolicy Bypass -File create_shortcut.ps1

From the command line you can open a text file and start reading at once:

uvw run --no-project --python 3.13 reader_app.pyw examples/furui_shiro_no_yume.txt --voice female_bright --speed 0.75 --play

The MCP server (for Claude)

irodori_mcp.py gives Claude these tools:

Tool What it does
speak Reads Japanese text aloud on your computer, sentence by sentence, and saves the whole reading as a WAV file. Returns at once.
stop_speaking Stops the reading.
speaking_status What it is doing now, and the last saved file.
open_reader Opens the reader window with the text in it, so you can follow along, replay sentences and save audio.
list_voices The voices with their descriptions.

Add it to Claude Code (use the full path to the unzipped folder):

claude mcp add irodori -s user -- uv run --quiet --script "C:/path/to/irodori-reader/irodori_mcp.py"

For Claude Desktop, add this to claude_desktop_config.json:

{
  "mcpServers": {
    "irodori": {
      "command": "uv",
      "args": ["run", "--quiet", "--script", "C:/path/to/irodori-reader/irodori_mcp.py"]
    }
  }
}

Then ask, for example: "read the story aloud", "read it again slowly with a male voice" or "open it in the reader".

Where things are

  • Settings and voices: read from the add-on's config (%APPDATA%\Anki2\addons21\2078760911). Built-in defaults are used when the add-on is missing.
  • Server: %LOCALAPPDATA%\IrodoriAudio, installed by the add-on. It listens only on 127.0.0.1, so all text stays on your computer.
  • Audio cache: %LOCALAPPDATA%\IrodoriAudio\reader\cache. Safe to delete.
  • Readings saved by the MCP server: %LOCALAPPDATA%\IrodoriAudio\reader\out.

Files

  • reader_app.pyw: the window (tkinter, standard library only).
  • irodori_mcp.py: the MCP server (needs the mcp package, which uv installs on the first run).
  • irodori_core.py: shared code: text cleanup, sentence splitting, synthesis, caching, playback, starting the server.
  • create_shortcut.ps1: desktop and Start menu shortcuts.
  • examples/: a short story to try.

License

MIT

About

Paste Japanese text and hear it read aloud with Irodori-TTS, sentence by sentence; with an MCP server so Claude can read aloud what it writes

Topics

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages