goldens/capabilities/stt.v1.json 1.6 KiB 71 lines Raw
1 {2   "capability": "stt",3   "channels": [4     {5       "channel": "text",6       "mime": "text/plain; charset=utf-8",7       "payload": "one UTF-8 fragment of the transcript"8     },9     {10       "channel": "tokens",11       "mime": "application/cbor",12       "payload": "the same fragment as token ids: {id, text, t_ms}"13     },14     {15       "channel": "progress",16       "mime": "application/json",17       "payload": "{stage, pct} during decode"18     }19   ],20   "meta": [21     {22       "key": "model",23       "meaning": "the served name that ran the job",24       "type": "string"25     },26     {27       "key": "language",28       "meaning": "the language that the plugin transcribed",29       "type": "string"30     },31     {32       "key": "duration_ms",33       "meaning": "the measured length of the audio, in milliseconds",34       "type": "uint"35     },36     {37       "key": "segments",38       "meaning": "{start_ms, end_ms, text} for each timed segment",39       "type": "array"40     }41   ],42   "parameters": [43     {44       "default": "none",45       "meaning": "the language to transcribe",46       "name": "language",47       "type": "string"48     },49     {50       "default": "false",51       "meaning": "emit timed segments in the terminal metadata",52       "name": "timestamps",53       "type": "bool"54     }55   ],56   "parts": [57     {58       "kind": "audio",59       "meaning": "the audio to transcribe. The mime names its format.",60       "required": "yes, one or more",61       "role": "any"62     },63     {64       "kind": "text",65       "meaning": "a hint for the transcription. At most one.",66       "required": "no",67       "role": "prompt"68     }69   ],70   "version": 171 }