Complete parameter and response reference for the ASR WebSocket API
wss://waves-api.smallest.ai/api/v1/asr
en
- Englishhi
- Hindilinear16
- 16-bit linear PCMflac
- FLAC compressedmulaw
- μ-law encodedopus
- Opus compressedtrue
, false
true
, false
"pci"
- Payment card information"ssn"
- Social security numbers"numbers"
- Generic number redaction"true"
- Enable automatic endpointing"false"
- Disable endpointing10-60000
- Custom threshold in millisecondsaudioSampleRate
parameteraudioChannels
parameterSample Rate | Bit Depth | Channels | Duration | Chunk Size |
---|---|---|---|---|
16kHz | 16-bit | 1 (mono) | 1 second | 32,000 bytes |
16kHz | 16-bit | 1 (mono) | 2 seconds | 64,000 bytes |
8kHz | 16-bit | 1 (mono) | 1 second | 16,000 bytes |
44.1kHz | 16-bit | 1 (mono) | 1 second | 88,200 bytes |
true
: End of speech segment detectedfalse
: More speech expectedemitVoiceActivity=true
, additional events may be sent:
Invalid Parameter Range
Invalid Enum Value
Missing Required Parameter
Unauthorized
Insufficient Subscription
Insufficient Credits
Socket Timeout
Rate Limit Exceeded
Limit Type | Enterprise Plan | Notes |
---|---|---|
Connection Timeout | 30 seconds | If no audio received |
Concurrent Connections | Plan-dependent | Contact support for limits |
Audio Duration | Plan-dependent | Based on subscription tier |
API Rate | Plan-dependent | Requests per minute limit |