Transcribe audio
transcribe_audioCosts a flat price per recording, charged only after confirm_cents matches the quote: turns a voice or music item from your Library into text. Limits: 2 MiB of audio and 3 minutes.
Args: library_id: a voice or music id from library_list. language: a language code (optional). timestamps: true to include timestamps (optional). confirm_cents: the price the user agreed to (from tool_cost_estimate); 0 with quote_only. idempotency_key: unique per purchase; a retry with the same key never buys twice. Idempotency is keyed on (this token, this tool, idempotency_key), not on the arguments: reusing an idempotency_key with different arguments returns the first result. quote_only: true returns the price and buys nothing.
Returns: {ok, kind:'transcript', text, cents}
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": {
"library_id": "<library_id>",
"confirm_cents": "<confirm_cents>"
},
"name": "transcribe_audio"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| language | No | ||
| library_id | Yes | The generationId from library_list. | |
| quote_only | No | true: return the price and buy nothing. | |
| timestamps | No | ||
| confirm_cents | Yes | The price in cents the user agreed to, from tool_cost_estimate or a quote_only call. Pass 0 with quote_only. | |
| idempotency_key | No | Any unique string per purchase; a retry with the same key never buys twice. |