Files
platform/seed/tasks/transcribe-audio-file/TASK.md
T
2026-02-16 20:20:09 +00:00

1.6 KiB

name, description, version, author, tags, skills, trigger, inputs
name description version author tags skills trigger inputs
Transcribe Audio File Transcribe an audio file to text using whisper.cpp. 1 pastilhas
audio
transcription
whisper.cpp
type extensions
file
mp3
wav
m4a
name description required
file_path Path to the audio file to transcribe. true

Transcribe Audio File

Transcribe an audio file to text using whisper.cpp.

Steps

  1. Starting from the directory containing the audio file, walk up parent by parent until you find a directory whose name is an email address. This is the user's root directory. Read settings.json from it and extract the languages section.
  2. Detect the language of the audio file using the whisper.cpp skill with detect_language=true and response_format=verbose_json.
  3. Compare the detected language against the user's languages.spoken list. If the detected language is in the list, skip translation. Otherwise, set translate=true.
  4. Use the whisper.cpp skill to transcribe the audio file at file_path, passing the detected language as the language parameter and the translate flag from the previous step.
  5. Read the transcription and generate a short, descriptive title based on its contents.
  6. Create a directory alongside the original audio file named <date>_<slug>, where <date> is the current date in YYYYMMDD format and <slug> is a slug derived from the generated title.
  7. Move the original audio file and save the transcription as a Markdown file (.md) into the new directory, using the same base name for the .md file.