View Source OpenaiEx.Audio (openai_ex v0.3.0)
This module provides an implementation of the OpenAI audio API. The API reference can be found at https://platform.openai.com/docs/api-reference/audio.
API Fields
The following fields can be used as parameters when creating a new audio request:
:file:model:language:prompt:response_format:temperature
Summary
Functions
Creates a new audio request with the given arguments.
Calls the audio transcription endpoint.
Calls the audio translation endpoint.
Functions
Creates a new audio request with the given arguments.
Arguments
args: A list of key-value pairs, or a map, representing the fields of the audio request.
Returns
A map containing the fields of the audio request.
The :file and :model fields are required.
Calls the audio transcription endpoint.
Arguments
openai: A map containing the OpenAI configuration.audio: A map containing the audio request.
Returns
A map containing the audio response.
See https://platform.openai.com/docs/api-reference/audio/create for more information.
Calls the audio translation endpoint.
Arguments
openai: A map containing the OpenAI configuration.audio: A map containing the audio request.
Returns
A map containing the audio response.
See https://platform.openai.com/docs/api-reference/audio/create for more information.