spladder87/kblab-whisper-diarization

Public
49 runs

Run spladder87/kblab-whisper-diarization with an API

Use one of our client libraries to get started quickly. Clicking on a library will take you to the Playground tab where you can tweak different inputs, see the results, and copy the corresponding code to use in your own project.

Input schema

The fields you can use to run this model with an API. If you don't give a value for a field its default value will be used.

Field Type Default value Description
enable_diarization
boolean
True
Perform speaker diarization? (Requires Hugging Face token)
hf_token
string
Your Hugging Face API token. Leave blank to use the default set in the environment.
file_string
string
Either provide: Base64 encoded audio file,
file_url
string
Or provide: A direct audio file URL
file
string
Or an audio file
num_speakers
integer

Min: 1

Max: 50

Number of speakers, leave empty to autodetect.
translate
boolean
False
Translate the speech into English.
language
string
Language of the spoken words as a language code like 'en'. Leave empty to auto-detect language.
prompt
string
Vocabulary: provide names, acronyms and loanwords in a list. Use punctuation for best accuracy.

Output schema

The shape of the response you’ll get when you run this model with an API.

Schema
{
  "type": "object",
  "title": "Output",
  "required": [
    "segments"
  ],
  "properties": {
    "language": {
      "type": "string",
      "title": "Language"
    },
    "segments": {
      "type": "array",
      "items": {},
      "title": "Segments"
    },
    "num_speakers": {
      "type": "integer",
      "title": "Num Speakers"
    }
  }
}