创建文本转语音请求
从输入文本生成音频。根据输入的文本生成音频。接口生成的数据为音频的二进制数据,需要使用者自行处理。参考:https://docs.siliconflow.cn/capabilities/text-to-speech#5
Authorizations
Bearer authentication header of the form Bearer <token>
, where <token>
is your auth token.
Body
Current available TTS models: fishaudio/fish-speech-1.4
fishaudio/fish-speech-1.4
The text to generate audio for.
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.
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
The format to audio in. Supported formats are mp3
, opus
, wav
, pcm
mp3
, opus
, wav
, pcm
streaming or not
Response
The response is of type file
.