Sibling protocol to llm.sdk.transport/Transport, scoped to audio transcription (speech-to-text). Sixth modality sibling alongside chat / embed / moderate / rerank / image.
Transcription has a different wire shape from the rest: requests are multipart/form-data (binary audio + form fields), responses carry text + optional segments / words / language detection.
Sibling protocol to llm.sdk.transport/Transport, scoped to audio transcription (speech-to-text). Sixth modality sibling alongside chat / embed / moderate / rerank / image. Transcription has a different wire shape from the rest: requests are multipart/form-data (binary audio + form fields), responses carry text + optional segments / words / language detection.
Provider-specific transcription format conversion.
Provider-specific transcription format conversion.
(build-transcribe-request this profile request)Given a provider profile and canonical TranscribeRequest, return the native HTTP request map. Multipart bodies live under :multipart as a vector of clj-http/hato multipart entries.
Given a provider profile and canonical TranscribeRequest, return the native HTTP request map. Multipart bodies live under :multipart as a vector of clj-http/hato multipart entries.
(normalize-transcribe-usage this profile raw-usage)Optional: normalize provider usage data (most STT providers don't return token counts, but some return duration_seconds).
Optional: normalize provider usage data (most STT providers don't return token counts, but some return duration_seconds).
(parse-transcribe-error this profile status body)Given a non-2xx HTTP status and body, return a classified error.
Given a non-2xx HTTP status and body, return a classified error.
(parse-transcribe-response this profile raw-body)Given a provider profile and the parsed response (JSON or text), return a canonical TranscribeResponse.
Given a provider profile and the parsed response (JSON or text), return a canonical TranscribeResponse.
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 |