Skip to content
This repository has been archived by the owner on Nov 9, 2023. It is now read-only.

Latest commit

 

History

History
26 lines (20 loc) · 1.07 KB

CreateSpeechRequest.md

File metadata and controls

26 lines (20 loc) · 1.07 KB

OpenapiClient::CreateSpeechRequest

Properties

Name Type Description Notes
model CreateSpeechRequestModel
input String The text to generate audio for. The maximum length is 4096 characters.
voice String The voice to use when generating the audio. Supported voices are `alloy`, `echo`, `fable`, `onyx`, `nova`, and `shimmer`.
response_format String The format to audio in. Supported formats are `mp3`, `opus`, `aac`, and `flac`. [optional][default to 'mp3']
speed Float The speed of the generated audio. Select a value from `0.25` to `4.0`. `1.0` is the default. [optional][default to 1.0]

Example

require 'openapi_client'

instance = OpenapiClient::CreateSpeechRequest.new(
  model: null,
  input: null,
  voice: null,
  response_format: null,
  speed: null
)