Audio (TTS & STT)
Audio (TTS & STT)
Audio
Text-to-Speech
client.Audio.Synthesize sends POST /v1/audio/speech and returns []byte of raw audio.
SpeechParams fields
Speech-to-Text (Transcription)
client.Audio.Transcribe sends POST /v1/audio/transcriptions as a multipart upload and returns *TranscriptionResponse.
With keyterms (sent as repeated form fields):
TranscriptionParams key fields
Translation
client.Audio.Translate sends POST /v1/audio/transcriptions/translate and returns the audio transcribed and translated to English.
List Voices
client.Audio.ListVoices sends GET /v1/audio/voices.
ListVoicesParams fields
Get Voice
client.Audio.GetVoice sends GET /v1/audio/voices/{voice_id}.