SkillsGrove
SkillsGrove/Видеопроизводство/valtterimelkko/agent-workflow-skills/transcribe-audio

transcribe-audio

Установка

$npx skills add https://github.com/valtterimelkko/agent-workflow-skills --skill transcribe-audio
$git clone --depth 1 https://github.com/valtterimelkko/agent-workflow-skills.git /tmp/agent-workflow-skills && mkdir -p ~/.claude/skills && cp -r /tmp/agent-workflow-skills/skills/transcribe-audio ~/.claude/skills/transcribe-audio
Пожалуйста, установи для меня этот Agent Skill: https://github.com/valtterimelkko/agent-workflow-skills/tree/9a694c0ef1e57c18fbecf43d69d3a2386018994d/skills/transcribe-audio — сначала прочитай его SKILL.md и скрипты и устанавливай в мою папку навыков только после того, как убедишься, что он безопасен.

Кратко

Исходное описание · MITTranscribe audio files to text using a local Whisper ASR service. Use when: the user wants to transcribe an audio file to text, convert speech to text from an audio recording, extract text from voice recordings, or needs transcription of podcasts/interviews/voice notes. Only works for English language audio. The skill saves the transcription to a text file in the agent's local folder.
Приведённый ниже SKILL.md воспроизведён из valtterimelkko/agent-workflow-skills (коммит 9a694c0) под лицензией MIT. Текст не изменён; опущены только метаданные заголовка файла, изображения показаны как ссылки, а очень длинные файлы сокращены. Авторские права: 2026 Valtteri Melkko. Лицензия: LICENSE. Показан только файл с инструкциями; скрипты смотрите в исходном репозитории.

Transcribe Audio

Transcribe audio files to text using the local Whisper ASR service running at http://localhost:9000.

Prerequisites

  • The Whisper service must be running (check with curl http://localhost:9000/health)
  • Audio file must be in a supported format: OGG, MP3, M4A, WAV, or WebM
  • Audio must be in English (the local model is English-only)

Usage

Basic Transcription

To transcribe an audio file:

curl -X POST http://localhost:9000/asr \
  -F "audio_file=@/path/to/audio.wav" \
  -F "language=en"

Save to File

Save the transcription to the agent's local folder:

curl -X POST http://localhost:9000/asr \
  -F "audio_file=@/path/to/audio.wav" \
  -F "language=en" \
  -o transcription.txt

Or with a specific output path:

OUTPUT_FILE="${PWD}/$(basename /path/to/audio.wav .wav).txt"
curl -X POST http://localhost:9000/asr \
  -F "audio_file=@/path/to/audio.wav" \
  -F "language=en" \
  -o "$OUTPUT_FILE"

Quick Workflow

  1. Verify the service is running:

    curl -s http://localhost:9000/health
    

    Expected response: {"status": "ok"}

  2. Transcribe and save:

    curl -X POST http://localhost:9000/asr \
      -F "audio_file=@<audio-file-path>" \
      -F "language=en" \
      -o <output-file-path>
    
  3. Verify the output:

    cat <output-file-path>
    

Supported Audio Formats

Format Extension MIME Type
OGG Vorbis .oga, .ogg audio/ogg
MP3 .mp3 audio/mpeg
M4A .m4a audio/mp4
WAV .wav audio/wav
WebM .webm audio/webm

Performance Notes

  • The local Whisper service uses the tiny.en model
  • Processing time is roughly 10-20% of audio duration (e.g., 1 minute of audio takes ~6-12 seconds)
  • The service only supports English transcription
  • For best results, ensure audio has clear speech with minimal background noise

Error Handling

Common issues and solutions:

Error Cause Solution
Connection refused Whisper service not running Start the local Whisper service using your own deployment method (for example Docker Compose in your chosen whisper-service directory)
Empty response Audio file is silent or corrupted Check the audio file can be played
Garbage text Audio is not in English Only English is supported
Slow transcription High CPU load or concurrent requests Wait for other transcriptions to complete

Example: Transcribe a Single File

# Set variables
AUDIO_FILE="/path/to/recording.wav"
OUTPUT_FILE="${PWD}/transcription.txt"

# Verify service
if ! curl -s http://localhost:9000/health | grep -q '"status": "ok"'; then
    echo "Error: Whisper service is not running"
    exit 1
fi

# Transcribe
curl -X POST http://localhost:9000/asr \
  -F "audio_file=@${AUDIO_FILE}" \
  -F "language=en" \
  -o "$OUTPUT_FILE"

echo "Transcription saved to: $OUTPUT_FILE"
cat "$OUTPUT_FILE"

Example: Batch Transcribe Multiple Files

for audio_file in *.wav; do
    output_file="${PWD}/$(basename "$audio_file" .wav).txt"
    echo "Transcribing: $audio_file -> $output_file"
    curl -X POST http://localhost:9000/asr \
      -F "audio_file=@${audio_file}" \
      -F "language=en" \
      -o "$output_file"
done
Полный текст лицензии (MIT)
MIT License

Copyright (c) 2026 Valtteri Melkko

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.