Liking cljdoc? Tell your friends :D
Clojure only.

llm.sdk.speak

Driver for text-to-speech (TTS). The TTS counterpart to sdk/complete and sdk/transcribe.

Returns a SpeakResponse: {:audio/bytes byte-array :audio/content-type str :audio/model str? :response/usage Usage? :response/raw raw}.

Providers without a speak transport throw ex-info on call.

Driver for text-to-speech (TTS). The TTS counterpart to
sdk/complete and sdk/transcribe.

Returns a SpeakResponse: {:audio/bytes byte-array
                           :audio/content-type str
                           :audio/model str?
                           :response/usage Usage?
                           :response/raw raw}.

Providers without a speak transport throw ex-info on call.
raw docstring

speakclj

(speak provider-id request & {:keys [config]})

Send a canonical SpeakRequest and return a SpeakResponse.

The response contains nonempty :audio/bytes and its content type.

Send a canonical SpeakRequest and return a SpeakResponse.

The response contains nonempty :audio/bytes and its content type.
sourceraw docstring

cljdoc builds & hosts documentation for Clojure/Script libraries

Keyboard shortcuts
Ctrl+kJump to recent docs
Move to previous article
Move to next article
Ctrl+/Jump to the search field
× close