Public API v1
Add a chapter (or more script to a chapter not yet started)
Changed onSegments are read in order: narration by the narrator, lines by the character named in speaker (add new characters in cast). The title is read first, then a short beat; a sceneBreak segment gets a longer silence. Up to 60,000 characters per chapter, or chapterCharsMax when the plan behind this key has a tighter daily or weekly cap. A long chapter is sent in several requests with appendTo and afterSegment.
post/api/v1/audiobooks/{bookId}/chapters
Request
- Base URLhttps://api.vieneu.io
- Auth
- API key in header X-API-Key
- or HTTP bearer
Path parameters
bookIdstring required
Request body
Example request
{
"title": "Chương 1: Tôi sống độc lập từ thuở bé",
"segments": [
{
"speaker": "Lan",
"text": "— Mẹ ơi, con đi học đây!"
}
],
"cast": [
{
"speaker": "Lan",
"voiceId": "Ban Mai"
}
]
}Response
The book with the chapter added.
Example response
{
"cast": [
{
"speaker": "Lan",
"voiceId": "Ban Mai"
}
]
}Changes
- info
added the new optional request property
- info
added the non-success response with the status
- info
added the required property
to the response with the status
- info
- info
endpoint added
- info