Upload an audio file
upload_audio_fileGet an audio file (.wav, .mp3 or .flac) into Onepin for a source_audio node to use.
Call it with no method first: nothing is uploaded and it returns the two ways to do this for the USER to choose between. Then call again with the one they picked.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| method | No | Which way the clip gets in. Omit it to be given both options to put to the user. | |
| filename | No | The clip's own name with its extension, e.g. `clip.wav`. Not needed for browser. | |
| workflow_id | No | The workflow the clip is for, from list_workflows. Required for method=browser. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| method | No | ||
| options | No | ||
| filename | No | ||
| next_step | No | ||
| upload_id | No | ||
| size_bytes | No | ||
| upload_url | No | ||
| console_url | No | ||
| workflow_id | No | ||
| content_type | No | ||
| requires_choice | No | ||
| expires_in_seconds | No | ||
| upload_url_fallback | No |