API calls for all endpoints tagged Audio.
Summary
Functions
Create speech Generates audio from the input text. Returns audio data or streams via SSE.
Create transcription Transcribes audio into text in the input language.
Functions
@spec create_speech(Tesla.Env.client(), ExBifrost.Model.SpeechRequest.t(), keyword()) :: {:ok, ExBifrost.Model.BifrostError.t()} | {:ok, String.t()} | {:error, Tesla.Env.t()}
Create speech Generates audio from the input text. Returns audio data or streams via SSE.
Parameters
connection(ExBifrost.Connection): Connection to serverspeech_request(SpeechRequest):opts(keyword): Optional parameters
Returns
{:ok, String.t}on success{:error, Tesla.Env.t}on failure
@spec create_transcription(Tesla.Env.client(), String.t(), String.t(), keyword()) :: {:ok, ExBifrost.Model.BifrostError.t()} | {:ok, ExBifrost.Model.TranscriptionResponse.t()} | {:error, Tesla.Env.t()}
Create transcription Transcribes audio into text in the input language.
Parameters
connection(ExBifrost.Connection): Connection to servermodel(String.t): Model in provider/model formatfile(String.t): Audio file to transcribeopts(keyword): Optional parameters:fallbacks([String.t])::stream(boolean())::language(String.t)::prompt(String.t)::response_format(String.t)::file_format(String.t):
Returns
{:ok, ExBifrost.Model.TranscriptionResponse.t}on success{:error, Tesla.Env.t}on failure