added multilingual support for whisper

This commit is contained in:
Concedo 2025-01-09 23:28:52 +08:00
parent 0cb599546e
commit 91b6e29af3
6 changed files with 49 additions and 8 deletions

View file

@ -1344,6 +1344,8 @@
"application/json": {
"example": {
"prompt": "",
"suppress_non_speech" : false,
"langcode": "en",
"audio_data": "base64_wav_data",
},
"schema": {
@ -1351,6 +1353,18 @@
"audio_data": {
"type": "string",
"description": "Base64 respresentation of a 16-bit 16kHz wave file to be transcribed to text."
},
"prompt": {
"type": "string",
"description": "Prompt to steer the transcription."
},
"langcode": {
"type": "string",
"description": "Two letter language code, or use auto to autodetect."
},
"suppress_non_speech": {
"type": "boolean",
"description": "Prevent noise tokens, always generate words for speech."
}
},
"type": "object"