SDKsPython
Handling files with Python SDK
Upload audio files and manage them with the Soniox Python SDK
Use the Files API to upload audio for async transcription or to reuse files across multiple jobs.
Upload
upload() accepts bytes, file paths (str or Path), or a file-like object (BinaryIO).
Read more about Supported audio formats.
Get file
Get a file by ID, throws SonioxNotFoundError if file does not exist:
Get file or none:
List files
List files returns a paginated response. Use next_page_cursor to fetch additional pages until it is None.
Delete file
Delete file by ID, throws SonioxNotFoundError if file does not exist:
Delete file only if exists:
Delete all files
Delete all files iterates through every page and removes each file.