1.5 KiB
1.5 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 |
|
|
|
|
Transcribe Audio File
Transcribe an audio file to text using whisper.cpp.
Steps
- Determine the user's root directory by navigating one level up from the current working directory. Read
settings.jsonfrom the root directory and extract thelanguagessection. - Detect the language of the audio file using the whisper.cpp skill with
detect_language=trueandresponse_format=verbose_json. - Compare the detected language against the user's
languages.spokenlist. If the detected language is in the list, skip translation. Otherwise, settranslate=true. - Use the whisper.cpp skill to transcribe the audio file at
file_path, passing the detected language as thelanguageparameter and thetranslateflag from the previous step. - Read the transcription and generate a short, descriptive title based on its contents.
- Create a directory alongside the original audio file named
<date>_<slug>, where<date>is the current date inYYYYMMDDformat and<slug>is a slug derived from the generated title. - 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.mdfile.