prepare_upload
Step 1 of transcribing a file. Verifies the account has credits, then creates the order and returns a one-time command to upload the audio. IMPORTANT: this server never receives the file. After calling this you (the assistant) must upload it directly from the user's machine: (1) get the file size in bytes — stat -f%z <file> (macOS), stat -c%s <file> (Linux), or wc -c < <file> — and pass it as filesize; (2) pass the absolute file_path; (3) run the returned curl command to PUT the file straight to S3; (4) call start_transcription with the same email and the returned order_id. The upload URL expires in 1 hour, so upload immediately.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| Yes | The customer's email address. The transcript is emailed here. | ||
| filesize | Yes | Exact size of the audio file in bytes (run `stat`/`wc -c` first). | |
| referrer | No | Optional referrer email (earns the referrer a credit). | |
| file_path | No | Absolute path to the local audio file, used to build a ready-to-run upload command. The file is never read by this server. | |
| ai_summary | No | Optional: also generate an AI summary (title, key points, chapters). |