POST
/
audio
/
speech

Authorizations

Authorization
string
headerrequired

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Body

application/json
model
enum<string>
required

Current available TTS models: fishaudio/fish-speech-1.4

Available options:
fishaudio/fish-speech-1.4
input
string
required

The text to generate audio for.

Required string length: 1 - 128000
voice
enum<string>
required

The voice to use when generating the audio. Supported voices are fishaudio/fish-speech-1.4:alex, fishaudio/fish-speech-1.4:anna, fishaudio/fish-speech-1.4:bella, fishaudio/fish-speech-1.4:benjamin, fishaudio/fish-speech-1.4:charles, fishaudio/fish-speech-1.4:claire, fishaudio/fish-speech-1.4:david, fishaudio/fish-speech-1.4:diana. Previews of the voices are available in the Text to speech guide.

Available options:
fishaudio/fish-speech-1.4:alex,
fishaudio/fish-speech-1.4:anna,
fishaudio/fish-speech-1.4:bella,
fishaudio/fish-speech-1.4:benjamin,
fishaudio/fish-speech-1.4:charles,
fishaudio/fish-speech-1.4:claire,
fishaudio/fish-speech-1.4:david,
fishaudio/fish-speech-1.4:diana
response_format
enum<string>
default: mp3

The format to audio in. Supported formats are mp3, opus, wav, pcm

Available options:
mp3,
opus,
wav,
pcm
stream
boolean
default: true

streaming or not

Response

200 - application/audio

The response is of type file.