Voice Notes

Generate a new voice note

Generates a voice note based on the provided text and voice ID, returning an OGG file URL.

post/generate_voice_note

Request

  • Base URL: https://api.callbook.ai
  • URL: https://api.callbook.ai/generate_voice_note
  • Auth: HTTP bearer

Request body

vidstring

UUID of the voice.

textstring

The text to be converted into a voice note.

client_idstring

UUID of the client requesting the voice note.

Example request

{
  "vid": "vid_6c859031-ed4c-4ed3-9134-6bdc6b69b90c",
  "text": "Hello, welcome to Callbook AI.",
  "client_id": "ac8238ec-1689-40d0-8bd8-18af6141f5f5"
}

Response

Successfully generated the voice note.

idstring

The unique identifier of the generated voice note.

pathstring

URL to the generated voice note.

durationinteger

Duration of the generated voice note in seconds.

client_idstring

The client ID associated with the request.

Example response

{
  "id": "vn_123456789",
  "path": "https://s3.amazonaws.com/voice_notes/vn_123456789.ogg",
  "duration": 10,
  "client_id": "ac8238ec-1689-40d0-8bd8-18af6141f5f5"
}

Changes

No recorded changes to this operation across all 1 revision of this API.