opencode and native tasks

This commit is contained in:
2026-02-16 20:20:09 +00:00
parent 9ab0940ca4
commit dca4743e8b
3 changed files with 31 additions and 4 deletions
+1 -1
View File
@@ -26,7 +26,7 @@ Transcribe an audio file to text using whisper.cpp.
## Steps
1. Determine the user's root directory by navigating one level up from the current working directory. Read `settings.json` from the root directory and extract the `languages` section.
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.
File diff suppressed because one or more lines are too long