Upload a recording
upload_audioGet a link to upload a recording that's over 2 MB and isn't already online, up to 100 MB. PUT the file's bytes to upload_url (e.g. curl -T memo.m4a '<upload_url>'), then pass upload_id to transcribe_audio or add_voice_note. For a smaller file, pass audio_base64 to those tools instead; for one already online, audio_url. The link works for 15 minutes; the upload_id for a day. The recording is deleted once it's transcribed.
Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "upload_audio"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| method | Yes | ||
| example | Yes | A curl command that uploads memo.m4a. | |
| max_bytes | Yes | ||
| upload_id | Yes | Pass to transcribe_audio or add_voice_note. | |
| expires_at | Yes | When upload_url stops taking uploads. | |
| upload_url | Yes | PUT the file here. |