View Source OpenaiEx.Audio.Transcription (openai_ex v0.5.4)

This module provides an implementation of the OpenAI audio transcription API. The API reference can be found at https://platform.openai.com/docs/api-reference/audio/createTranscription.

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

Calls the audio transcription endpoint.

Creates a new audio request with the given arguments.

Functions

Calls the audio transcription endpoint.

Arguments

  • openai: A map containing the OpenAI configuration.
  • audio: A map containing the audio transcription request.

Returns

A map containing the audio transcription response.

See https://platform.openai.com/docs/api-reference/audio/createTranscription for more information.

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 transcription request.

Returns

A map containing the fields of the audio transcription request.

The :file and :model fields are required.