Parameters

  • file_path (string): Path to the audio file
  • partSize (number, optional): Size of each part in bytes (default: 5MB, range: 1MB-100MB)
  • maxRetries (number, optional): Maximum retry attempts (default: 3)

Response

Returns: RequestID [string] - Request ID for tracking the upload Throws: Error if file doesn’t exist, API key missing, or upload fails
API Keys are included in the client constructor. Find more information on the client constructor here.

Usage

from valenceai import ValenceClient

client = ValenceClient(show_progress=True)

# Upload the audio file
request_id = client.asynch.upload("YOUR_FILE.wav")