Skip to content

Commit

Permalink
chore: add loader schema
Browse files Browse the repository at this point in the history
  • Loading branch information
iboB committed Dec 6, 2024
1 parent d9bba41 commit 4cbc647
Showing 1 changed file with 44 additions and 0 deletions.
44 changes: 44 additions & 0 deletions ac-local-plugin/loader-schema.json
Original file line number Diff line number Diff line change
@@ -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"
]
}
}
}
}
}
}

0 comments on commit 4cbc647

Please sign in to comment.