SDKsNode.js
Handling files with Node SDK
Upload audio files and manage them with the Soniox Node SDK
Node SDK provides helpers to work with the Files API to upload audio for async transcription or to reuse files across multiple jobs.
Upload
upload() accepts Buffer, Uint8Array, Blob, ReadableStream
Read more about Supported audio formats.
List files
list() returns a paginated list of all uploaded files. Use for await...of to iterate through all pages.
Get file
Get a file by ID using get() method:
Delete file
Delete file via instance using file.delete() method:
Or delete by ID using delete() method:
Delete all files from your account
You can delete all files using files.delete_all method.
delete_all operation is irreversible and cannot be undone.