
Voice Coach
io.github.FabianIMV由 GitHub 帳號 FabianIMV 發布v0.1.1更新於 Oct 24, 2026
Gives Claude ears: local pitch, pronunciation and public-speaking analysis for voice coaching.
概覽
本機 MCP 伺服器,從麥克風錄音並量測音準、發音與演講指標,讓 Claude 擔任你的聲音教練。
- 可以做什麼
- 錄製麥克風音訊並回報音量、削波與雜訊狀況
- 依音符分析音準,可對照十二平均律、調性或 MIDI 旋律,找出錯音、漏音與延遲
- 在本機轉錄音訊,提供片段與詞級時間戳
- 量測語速、長停頓、語助詞、音調單調度與音量變化
- 對照預期文字給出英語音素級發音評分
- 讀取並追加練習進度紀錄
- 適用情境
- 適合想讓助理指導唱歌音準、英語發音或公開演講的情況,可進行暖身、練習、分析、回饋的完整流程,並跨工作階段保留進度紀錄。
- 執行需求
- 透過 uvx 在本機執行 Python 套件 voice-coach-mcp;需要 uv,發音分析需要 espeak-ng,讀取 m4a/aac 可選用 ffmpeg。啟動伺服器的應用程式需取得麥克風權限。首次啟動會安裝相依套件並下載模型(Whisper 約 480 MB,音素模型約 1.3 GB)。可選設定包括 VOICE_COACH_DIR 與 VOICE_COACH_WHISPER_MODEL。
安裝
在 SourceWeft 中
- 開啟 儀表板中的 Voice Coach,將其新增到工作區。
- 為需要使用其工具的對話啟用該服務。
Desktop only,透過 STDIO。 STDIO 服務會啟動本機處理程序,因此需要 SourceWeft 桌面主機。
其他 MCP 客戶端
參照 儲存庫 中的啟動說明。
README
voice-coach-mcp
Give Claude ears. A local MCP server that listens to you sing, speak and read aloud, measures what it hears, and lets Claude coach your voice.
[CI] [License: MIT] [Python 3.12] [MCP]
Claude cannot process audio. This server records from your microphone, analyzes the audio on your computer, and returns compact measurements that Claude turns into concrete coaching:
A bundled skill turns Claude into a coach: it runs warm-up → exercise → analysis → feedback sessions, gives one concrete focus per take, and keeps a progress log across sessions. Claude replies in your language.
- Local and private: audio never leaves your computer (unless you opt into the Azure backend).
- Free: open-source models (faster-whisper, wav2vec2) and no API keys.
- Tools measure, Claude interprets: every response is compact JSON (≤ 2 KB) with
confidenceandwarnings, so Claude never coaches on bad audio.
Install
You need uv and, for pronunciation, espeak-ng:
On Linux: install uv, then sudo apt install espeak-ng ffmpeg libportaudio2. Pronunciation
analysis on macOS needs Apple Silicon and macOS 14 or later (a PyTorch requirement).
Claude Code (plugin: server + skill)
Or, inside a session: /plugin install voice-coach --marketplace FabianIMV/voice-coach-mcp.
The first start installs the Python dependencies with uv, which can take a minute or two (the
models download later, on first use). If /mcp shows voice-coach as failed right after
installing, reconnect it from /mcp once the installation finishes.
Claude Desktop (extension)
Download voice-coach.mcpb from the latest release
and double-click it (or drag it into Claude Desktop). For the coaching skill, also download
voice-coach-skill.zip and upload it in Settings → Capabilities → Skills.
Any MCP client (manual)
For Claude Desktop's claude_desktop_config.json, use absolute paths (Desktop does not inherit
your shell PATH; which uvx prints it):
Optional: run uvx --from "voice-coach-mcp[speech,pronunciation]" voice-coach-mcp download-models
once, so the first call does not wait for the models (~480 MB Whisper, ~1.3 GB phoneme model).
Microphone permission (macOS)
macOS grants the microphone to the app that launches the server: Claude Desktop, or the
terminal running Claude Code (Terminal, iTerm, Ghostty, VS Code…). If permission is denied,
macOS returns silence instead of an error and record_audio reports
no_microphone_permission. Fix it in System Settings → Privacy & Security → Microphone and
restart that app.
Use it
Just talk to Claude:
- "I want to practice singing in tune. I'm a beginner."
- "Record 30 seconds of me presenting my project and tell me how many filler words I use."
- "Help me pronounce 'th'. Give me sentences to read and score them."
- "Analyze this voice memo against melody.mid" (any wav/mp3/m4a path works).
- "How am I doing?" (Claude reads your progress log).
Real sessions in Claude Code: a 60-second talk about work, and a singing baseline on one held note.
[Speaking session in Claude Code: pace, pauses, monotone pitch and one concrete focus]
[Singing session: warm-up, a baseline take measured in cents, and one focus for the retake]
Guided sessions are also available as MCP prompts: singing_session, pronunciation_session
and speaking_session (in Claude Code: /mcp__voice-coach__singing_session).
Tools
Audio can be a path or the name returned by record_audio. When a result is too long, the most
relevant items are returned and everything else is saved next to the audio (full_details).
Example: analyze_pitch on a synthetic C major scale with known deviations
With a MIDI reference, the server detects
that the melody was sung an octave lower (octave_shift: -1), started 1 s late
(start_offset_ms: 1003), and that one note came in 134 ms late.
Example: assess_pronunciation — "I sink the berry best sings…" read for "I think the very best things in life are free"
Example: speech_metrics on a short synthetic talk with inserted pauses and fillers
The synthetic voice is very flat, hence monotone: true. A Spanish example is also included.
All example outputs are real responses from the server over stdio, regenerated by
examples/generate_examples.py on synthetic audio; see
examples/outputs/.
How it works
- Pitch: pYIN (librosa) finds voiced frames; each frame is refined from its harmonic peaks
with parabolic interpolation (~1 cent accuracy from C2 to C6). Notes are split at silences,
energy dips and sustained pitch changes; vibrato does not split notes. With a MIDI reference,
the octave and offset are found by cross-correlation, notes are aligned with Needleman–Wunsch,
and a tempo line
t_sung = a·t_ref + bis fitted to judge each onset. - Speech: faster-whisper transcribes with word timestamps (an initial prompt keeps fillers). Pauses are measured from the audio energy, because Whisper stretches word endings into silence. Ambiguous fillers ("like", "so") only count when isolated by a comma or a pause.
- Pronunciation: phonemizer + espeak-ng give the expected IPA phonemes; the
facebook/wav2vec2-lv-60-espeak-cv-ftphoneme model gives what was said; both are aligned by edit distance. Normal American English variants (flap, schwa, linking r, glottal stop) are not counted as errors. - Quality first: clipping, background noise, silence and missing microphone permission are reported as warnings and lower the confidence.
Known limitations: one voice at a time (accompaniment degrades pitch detection); two identical notes sung in perfect legato count as one; the phoneme model uses sentence context and may occasionally "correct" a mispronounced word; pronunciation assessment is English-only.
Privacy and network access
Everything the plugin runs, writes and downloads:
- Runs:
uvstarts the server from the plugin folder (uv run --frozen, pinned byuv.lock); the server usesespeak-ngfor expected phonemes andffmpegonly to read m4a/aac files. - Microphone: only while
record_audioruns, for the number of seconds Claude asks for. - Writes: recordings and
progress.mdin~/VoiceCoach(orVOICE_COACH_DIR), and an analysis detail file<audio>.<tool>.jsonnext to each analyzed audio (or in~/VoiceCoach/analysisif that folder is read-only). Analyzing the same audio again replaces its detail file; nothing else is overwritten or deleted. - Downloads: the Python dependencies from PyPI on first start, then the models from Hugging
Face on first use: the faster-whisper model (
Systran/faster-whisper-smallby default) andfacebook/wav2vec2-lv-60-espeak-cv-ft. After that, models load from the local cache. - Sends: nothing by default. No telemetry, no accounts, no API keys. Only if you set
VOICE_COACH_PRONUNCIATION_BACKEND=azurewith your ownAZURE_SPEECH_KEYandAZURE_SPEECH_REGIONdoesassess_pronunciationsend that audio and the expected text to Azure Speech in your region.
Configuration
Development
See CONTRIBUTING.md for the design principles and the release process.
License and credits
MIT © FabianIMV. Built on faster-whisper, librosa, wav2vec2 phoneme recognition and the official MCP Python SDK. The optional pronunciation extra uses phonemizer and espeak-ng, both GPL-3.0. Example voices were synthesized with espeak-ng and Piper (public-domain LJSpeech voice).
來源:README.md,提交 96230b5
工具
0版本歷史
1- v0.1.1最新Oct 23, 2026
評分
已滿足適用檢查項的 50%
該評分衡量此收錄條目的完整程度,依據註冊中心條目、端點與公開來源計算得出。它不是對伺服器本身的評價,也不表示伺服器安全或目前可用:可連通性是帶日期的檢查結果,評分也不包含安裝量或使用者評價。
- 近 30 天內可連通25 分
請保持端點能夠回應 MCP 握手;SourceWeft 每 30 天探測一次。
- 已宣告認證方式10 分
請在註冊中心條目中宣告憑證請求標頭,或保持端點能夠回應探測,以便判定其認證方式。
- 已列出工具15 分
請讓伺服器在無憑證時回應 tools/list,或發布可在沙箱中無憑證啟動的軟體包。
- 描述必需15 分
- 圖示10 分
- 文件15 分
- 授權條款10 分