fk-import-voice

A command that turns an existing WAV voice recording into a reusable narration voice template. It automatically transcribes the recording and registers it in the template system.

In plain words
What is it for?
Use it to import a clear three-to-ten-second WAV sample for voice cloning and narration workflows.
Why use it?
It avoids having to design a synthetic voice when you already have a suitable recording, provided the required local voice tools are available.

Command for Claude Code

Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

agentmods
npx agentmods add commands/crisng95/flowkit/fk-import-voice
Clone the repo
git clone --depth 1 https://github.com/crisng95/flowkit

Made for: Claude Code.

Per session 0 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 1,007 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 1 finding. Scan, not verified.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5 $0.00000 $0.01007
Opus 5 $0.00000 $0.00504
Sonnet 5 $0.00000 $0.00201
Haiku 4.5 $0.00000 $0.00101

Measured 3d ago against content hash 4b97824242a6, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, from the pricing page.

Security

Grade A, and why

fk-import-voice scanned grade A with 1 finding against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 3d ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Makes network callslowCapability

Not a fault in itself. Listed so you know the mod talks to something, and to what.

- GLA server running: `curl http://127.0.0.1:8100/health`
.claude/commands/fk-import-voice.md · 116 lines

How it starts

The opening of the file, as written. The whole thing — 116 lines — stays where its author put it; the contents beside it link to each section on GitHub.

fk-import-voice — Import Existing Voice as Template

Register an existing WAV file as a reusable voice template for narration. Auto-transcribes the audio and registers it in the template system.

When to Use

  • You have a real voice recording (WAV) you want to use for narration
  • You want to clone a specific voice rather than designing one with instruct
  • Complementary to /fk-gen-tts-template which creates synthetic voices

Prerequisites

  • GLA server running: curl http://127.0.0.1:8100/health
  • faster-whisper installed in /opt/homebrew/bin/python3.10
  • WAV file placed in output/_shared/tts_templates/

Workflow

Step 1: Locate the WAV file

ls -la output/_shared/tts_templates/*.wav

The user should have already placed their WAV file here. File should be:

  • Format: WAV (any encoding — pcm_s16le, pcm_f32le, etc.)
  • Duration: 3-10s ideal for voice cloning
  • Content: Clear speech, minimal background noise

Step 2: Transcribe with faster-whisper

Use large-v3 model for accurate transcription. Always use /opt/homebrew/bin/python3.10 — it has torch + faster-whisper installed.

/opt/homebrew/bin/python3.10 -c "
from faster_whisper import WhisperModel
model = WhisperModel('large-v3', device='cpu')
segments, info = model.transcribe('<WAV_PATH>', beam_size=5)
print(f'Language: {info.language} ({info.language_probability:.0%})')
for seg in segments:
    print(seg.text.strip())
" 2>&1 | grep -v '\[ctranslate2\]'

IMPORTANT: This runs on CPU and takes ~60s for large-v3 model loading + transcription. Be patient.

Show the transcript to the user and ask them to confirm or correct it. Accurate ref_text is critical for voice cloning quality.

Step 3: Register template in templates.json

After user confirms transcript:

python3 -c "
import json
from pathlib import Path

templates_dir = Path('output/_shared/tts_templates')
meta_file = templates_dir / 'templates.json'
wav_path = str(templates_dir / '<FILENAME>.wav')

meta = json.loads(meta_file.read_text()) if meta_file.exists() else {}
meta['<TEMPLATE_NAME>'] = {
    'name': '<TEMPLATE_NAME>',
    'audio_path': wav_path,
    'text': '<CONFIRMED_TRANSCRIPT>',
    'instruct': '<VOICE_DESCRIPTION>',
    'duration': <DURATION>,
}
meta_file.write_text(json.dumps(meta, indent=2, ensure_ascii=False))
print('Template registered')
"

Read the full file on GitHub · 116 lines

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 3d ago First seen · 116 lines · 0 tokens per session scan A 4b97824242a6

Subscribe to this mod's changes

fk-import-voice is a command published in the GitHub repository crisng95/flowkit (620 stars, last pushed 15d ago), licensed MIT. It costs nothing until one of its globs matches a file; then it loads 1,007 tokens. A static security scan graded it A with 1 finding (makes network calls). No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.