From 4cbc647b5cf75bde765c97cde40c62c207d8b082 Mon Sep 17 00:00:00 2001 From: Borislav Stanimirov Date: Fri, 6 Dec 2024 15:33:59 +0200 Subject: [PATCH] chore: add loader schema --- ac-local-plugin/loader-schema.json | 44 ++++++++++++++++++++++++++++++ 1 file changed, 44 insertions(+) create mode 100644 ac-local-plugin/loader-schema.json diff --git a/ac-local-plugin/loader-schema.json b/ac-local-plugin/loader-schema.json new file mode 100644 index 0000000..c18fd52 --- /dev/null +++ b/ac-local-plugin/loader-schema.json @@ -0,0 +1,44 @@ +{ + "id": "whisper.cpp", + "description": "Inference based on our fork of https://github.com/ggerganov/whisper.cpp", + "params": { + "type": "null" + }, + "instances": { + "general": { + "description": "General instance", + "params": { + "type": "null" + }, + "ops": { + "transcribe": { + "description": "Run the whisper.cpp inference and produce some output", + "params": { + "type": "object", + "properties": { + "audio_binary_mono": { + "type": "binary", + "description": "Audio data to transcribe" + } + }, + "required": [ + "audio_binary_mono" + ] + }, + "return": { + "type": "object", + "properties": { + "result": { + "type": "string", + "description": "Transcription of audio" + } + }, + "required": [ + "result" + ] + } + } + } + } + } +}