Voice Coach
v0.1.1Gives Claude ears: local pitch, pronunciation and public-speaking analysis for voice coaching.
These tools were reported by the server itself during our smoke test (tools/list), not copied from the README.
record_audio
Records from the computer's microphone and saves a 16 kHz mono .wav. Args: seconds: recording length (max 120 by default). Tell the user before calling. name: optional file name (without extension); defaults to date and time. Returns `audio` (path of the .wav), levels (peak/RMS in dBFS, estimated SNR, % clipping), `confidence` and `warnings`. The `no_microphone_permission` warning means macOS delivered no audio: the user must enable the microphone for the app in System Settings.
| Parameter | Type | Description |
|---|---|---|
seconds * | number | |
name |
analyze_pitch
Measures the pitch accuracy of sung audio (solo voice, one melodic line). Args: audio: audio path (wav/flac/mp3/m4a) or a name returned by record_audio. reference_midi: optional path to a .mid with the expected melody. Tolerates singing an octave up/down, starting at another moment and a somewhat different tempo. key: optional when there is no MIDI, e.g. "A minor", "G major", "F#" (Spanish names such as "La menor" also work): each note is compared with the nearest note of that scale. Without it, with the nearest equal-tempered note. midi_track: index of…
| Parameter | Type | Description |
|---|---|---|
audio * | string | |
key | ||
midi_track | ||
reference_midi |
transcribe
Transcribes audio with timestamps (faster-whisper, local). Args: audio: audio path or a name returned by record_audio. language: "en", "es", "en-US", "Spanish"…; auto-detected when omitted. Returns `language`, `language_prob`, `text`, `segments` [{t, end, text}] and `words` [{w, t, end}]. If it does not fit, words are dropped first and then segments (everything stays in `full_details`). The first call downloads the model (VOICE_COACH_WHISPER_MODEL).
| Parameter | Type | Description |
|---|---|---|
audio * | string | |
language |
speech_metrics
Measures pace, pauses, filler words and pitch/volume variation of a speech. Args: audio: audio path or a name returned by record_audio. language: language of the speech ("en" or "es"; filler lists exist for both). pause_threshold_s: minimum silence between words to count as a long pause. Returns: - `pace`: words, speaking_time_s, words_per_minute, wpm_excluding_long_pauses. - `pauses`: count, total_s, max_s, per_minute and items [{t, dur, after: previous word}]. - `fillers`: total, per_minute, by_type and occurrences [{t, text}]. Ambiguous words ("like", "so") only count when i…
| Parameter | Type | Description |
|---|---|---|
audio * | string | |
language * | string | |
pause_threshold_s | number |
assess_pronunciation
Compares the pronounced phonemes with the expected ones for a text read aloud (English). Args: audio: audio path or a name returned by record_audio (up to 60 s; short sentences work best). expected_text: the exact text that was read. language: "en-US" (default) or "en-GB". Returns `summary` (overall_score 0–100, words_with_errors, error counts by type, frequent_confusions expected→detected) and `words`: word, score, t (s) and, when there are errors, expected/detected in IPA and errors [{type: substitution|deletion|insertion, expected, detected}]; `missing` when the word was n…
| Parameter | Type | Description |
|---|---|---|
audio * | string | |
expected_text * | string | |
language | string |
read_progress
Reads the latest sessions from the progress log (~/VoiceCoach/progress.md). Use it at the start of a session to pick up the previous focus. Returns `file`, `total_entries` and `entries` (markdown of each session, oldest to newest).
| Parameter | Type | Description |
|---|---|---|
entries | integer |
log_progress
Appends a session to the progress log (~/VoiceCoach/progress.md). Args: entry: markdown of the session. It should start with "## YYYY-MM-DD · mode · exercise"; if it does not start with "## ", the date and time are added as the title.
| Parameter | Type | Description |
|---|---|---|
entry * | string |