Available constants
Maximum chunk duration in seconds (300 seconds / 5 minutes). This is the maximum duration supported by Wit.ai’s API.
Minimum chunk duration in seconds (4 seconds). Chunks shorter than this are filtered out during splitting.
Minimum concurrency level (1). This is the minimum number of concurrent transcription operations.
Usage
Import these constants when you need to reference the limits:When to use these constants
Maximum processing time
Use
MAX_CHUNK_DURATION when you want to process the largest chunks possible to minimize API calls and maximize parallel processing efficiency.Validation
Use
MIN_CHUNK_DURATION to validate user-provided chunk durations and ensure they meet the minimum requirement.Concurrency limits
Use
MIN_CONCURRENCY as a reference when implementing custom concurrency logic.Related
Split options
Configure audio splitting behavior
Concurrency guide
Learn about parallel processing
Advanced configuration
Optimize chunk duration for your use case
transcribe function
Main transcription function