Skip to content

Voice, Text-to-Speech & Shareable Narration Studio

Annolid includes a unified voice platform shared across PDF Speech, AI Chat, Web Reader, Caption Reader, the Voice & Narration Studio desktop dialog, Python scripts, and the annolid-run voice CLI.

Configure your preferred engine once—Pocket (Kyutai) (including custom voice prompt WAV cloning), Kokoro, Chatterbox Turbo, or gTTS—and reuse or share it anywhere in your lab.


Opening Voice & Narration Studio (GUI)

You can open Voice & Narration Studio from any of four entry points:

  • AI & Models → Voice & Narration Studio…
  • Settings → Voice & Narration Studio…
  • Inside the PDF Speech dock, click Voice Studio…
  • Inside Settings → LLM / Bot Settings → Text-to-Speech, click Voice Studio & Profiles…

What You Can Do Inside the Studio

  1. Tab 1 — Voice & Profiles:
  2. Choose an engine (Auto, Kokoro, Pocket (Kyutai), Chatterbox, gTTS) and attach or microphone-record a reference voice prompt WAV.
  3. Click Test Voice to hear a live sample immediately without leaving the dialog.
  4. Click Save… to store reusable named profiles (stored atomically in ~/.annolid/voice_profiles.json).
  5. Click Share… to export a portable .zip bundle (which packages voice_profile.json + your custom reference prompt .wav with zero machine-local paths) or a clean .json file.
  6. Click Import… on another computer to unpack a shared .zip bundle safely into ~/.annolid/voice_prompts/ and activate it in one click.
  7. Copy the auto-generated annolid-run voice speak ... CLI snippet directly from the bottom card.
  8. Tab 2 — Speak & Export Audio:
  9. Paste text or load a .txt / .md file, preview it aloud, or export normalized .wav (native) or .mp3 / .m4a / .flac (via ffmpeg).
  10. Tab 3 — Batch Narration & Captions:
  11. Write or load a multi-scene .json, .md (## Scene Title sections), or .txt (blank-line paragraphs) script.
  12. Generate individual scene .wav files, a combined stereo 44.1 kHz master_audio.wav (with optional subtle scene transition chimes), synchronized captions.srt, and voiceover_manifest.json.

Using the annolid-run voice CLI

Every voice feature works headlessly from the terminal using your active Annolid PDF Speech settings by default:

# 1. Inspect active voice settings, prompt health, installed backends, and profiles
annolid-run voice status

# 2. Save your current Pocket (Kyutai) PDF Speech setup as a named profile
annolid-run voice profile save lab-narrator --description "Pocket custom lab voice" --activate

# 3. Export a portable .zip bundle (includes the reference WAV prompt) to share with teammates
annolid-run voice profile export lab-narrator ./lab_narrator_voice.zip

# 4. Import and activate on another machine
annolid-run voice profile import ./lab_narrator_voice.zip --activate

# 5. Synthesize text to audio (or play aloud with --play)
annolid-run voice speak "Welcome to Annolid." --out ./welcome.wav
annolid-run voice speak --file ./notes.md --profile lab-narrator --out ./notes.mp3

# 6. Batch-narrate a Markdown or JSON script into per-scene WAVs + master_audio.wav + captions.srt
annolid-run voice narrate \
  --script ./tutorial_script.md \
  --out-dir ./output/videos/my_tutorial/voiceover \
  --profile lab-narrator \
  --chimes

Shared Python API (annolid.services.voice_service)

Scripts and video pipelines can call the exact same shared voice service directly without duplicating settings loading, chunking, or WAV normalization:

from annolid.services.voice_service import (
    NarrationScene,
    export_speech_audio,
    narrate_scenes,
    speak_text,
)

# Uses active Annolid PDF Speech settings automatically (or pass profile="lab-narrator")
export_speech_audio("Tracking completed with zero ID switches.", "output/summary.wav")

# Batch-generate synchronized clips + master WAV + SRT captions
scenes = [
    NarrationScene(id="intro", filename="vo_01.wav", text="Welcome to Annolid."),
    NarrationScene(id="results", filename="vo_02.wav", text="Here are the tracked trajectories."),
]
batch = narrate_scenes(scenes, "output/videos/demo/voiceover", write_master_wav=True, write_srt=True)
print(batch.manifest_path, batch.srt_path, batch.total_duration_s)

Creating Narrated Step-by-Step Tutorial Videos

To pair your saved Annolid voice profile with studio 1080p visuals, animated spotlight callouts, QA stills, and YouTube/X chapter drafts, see Tutorial Video Studio (annolid-run tutorial-video).