Create a speech
Changed onGenerate speech audio from text. Returns an audio file, or a stream of raw PCM chunks when stream is true. The body may be JSON or multipart/form-data — the latter lets you upload ref_audio as a raw file instead of base64-encoding it.
Request
- Base URLhttps://api.boson.ai
- URLhttps://api.boson.ai/v1/audio/speech
- AuthHTTP bearer
Request body
Example request
{
"input": "Hello, this is a test."
}Response
Generated audio. The content type depends on response_format. When timestamps is true the response is application/json instead, carrying the audio base64-encoded alongside the word list.
Changes
- info
added the new optional request property
- info
added the new optional request property
- info
added the new optional request property
- info
the
request property's maxLength was increased from5000to50000 - info
added the media type
application/jsonfor the response with the status - info
added the optional property
/to the response with the status - info
added the optional property
/to the response with the status - info
added the optional property
/to the response with the status - info
added the optional property
/to the response with the status
- info