Driver for audio transcription (speech-to-text). The STT counterpart to sdk/complete and sdk/embed.
Providers without a transcribe transport throw ex-info on call so the missing capability surfaces at the call site.
Driver for audio transcription (speech-to-text). The STT counterpart to sdk/complete and sdk/embed. Providers without a transcribe transport throw ex-info on call so the missing capability surfaces at the call site.
(transcribe provider-id request & {:keys [config]})Send a canonical TranscribeRequest and return a TranscribeResponse.
Request keys: :transcribe/model model id (e.g. "whisper-1") :transcribe/file java.io.File, path string, byte array, or InputStream :transcribe/filename filename hint (informs server file-type detection) :transcribe/language optional ISO-639-1 hint (e.g. "en") :transcribe/prompt optional spelling/style prompt :transcribe/temperature optional [0,1] :transcribe/response-format :json|:text|:srt|:verbose_json|:vtt :transcribe/timestamp-granularities #{:segment :word} :transcribe/provider-options extra provider-specific fields
Response: {:transcription/text str :transcription/language str? :transcription/segments [...] :transcription/words [...] :transcription/duration-seconds num? :response/usage Usage? :response/raw raw}
Send a canonical TranscribeRequest and return a TranscribeResponse.
Request keys:
:transcribe/model model id (e.g. "whisper-1")
:transcribe/file java.io.File, path string, byte array, or InputStream
:transcribe/filename filename hint (informs server file-type detection)
:transcribe/language optional ISO-639-1 hint (e.g. "en")
:transcribe/prompt optional spelling/style prompt
:transcribe/temperature optional [0,1]
:transcribe/response-format :json|:text|:srt|:verbose_json|:vtt
:transcribe/timestamp-granularities #{:segment :word}
:transcribe/provider-options extra provider-specific fields
Response:
{:transcription/text str
:transcription/language str?
:transcription/segments [...]
:transcription/words [...]
:transcription/duration-seconds num?
:response/usage Usage?
:response/raw raw}cljdoc builds & hosts documentation for Clojure/Script libraries
| Ctrl+k | Jump to recent docs |
| ← | Move to previous article |
| → | Move to next article |
| Ctrl+/ | Jump to the search field |