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.(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.
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 |