View Source OpenAi.Audio (OpenAI REST API Client v0.4.2)

Provides API endpoints related to audio

Summary

Functions

Generates audio from the input text.

Transcribes audio into the input language.

Translates audio into English.

Functions

Link to this function

create_speech(body, opts \\ [])

View Source
@spec create_speech(
  OpenAi.Audio.Speech.CreateRequest.t(),
  keyword()
) :: {:ok, String.t()} | {:error, OpenAi.Error.error()}

Generates audio from the input text.

Link to this function

create_transcription(body, opts \\ [])

View Source

Transcribes audio into the input language.

Link to this function

create_translation(body, opts \\ [])

View Source

Translates audio into English.