Learn R Programming

openaiRtools (version 0.2.2)

SpeechClient: Speech Client (Text-to-Speech)

Description

Converts text to spoken audio using OpenAI's TTS models. Access via client$audio$speech.

Arguments

Methods


Method new()

Usage

SpeechClient$new(parent)


Method create()

Usage

SpeechClient$create(
  input,
  model = "tts-1",
  voice = "alloy",
  response_format = NULL,
  speed = NULL
)


Method clone()

The objects of this class are cloneable with this method.

Usage

SpeechClient$clone(deep = FALSE)

Arguments

deep

Whether to make a deep clone.