Render a Hypnothera session as audio
render_audioRenders one of the connected account's finished session scripts as guided audio in the chosen voice. Spends about 1 credit per minute of audio (estimated_credits in the result), charged by Hypnothera. ONLY call after the user has approved the voice and the credit cost, and call it once per session: it is not idempotent. Pick voice_id from list_voices where available is true. Returns estimated_minutes and estimated_credits, also when the account has too few credits. Rendering takes a few minutes; then get_session returns has_audio and a playable audio_url.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"script_id": "<script_id>",
"voice_id": "<voice_id>"
},
"name": "render_audio"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| voice_id | Yes | A voice_id from list_voices. | |
| script_id | Yes | A script_id from create_session, continue_journey or list_journeys whose script has finished. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| ok | Yes | False when the call failed; message says why. | |
| message | No | What happened and, when relevant, what to do next. Relay it to the user. | |
| task_id | No | Background job id for the audio render. | |
| script_id | No | The session being rendered. | |
| next_step_url | No | The session's listen page on hypnothera.ai, where the audio appears once rendered. | |
| estimated_credits | No | Estimated credits the render costs. | |
| estimated_minutes | No | Estimated audio length in minutes. |