Node.js SDK
client.audio
Learn how to process audio files with the VLM Run Node.js SDK
Audio Predictions
The audio
component provides methods for processing and analyzing audio files using VLM Run’s models.
Process Audio
TypeScript Interfaces
Error Handling
Best Practices
-
Audio Formats
- Supported formats: MP3, WAV
- Ensure proper audio quality
- Consider file size limits
-
Performance
- Use URLs for remote audio files when possible
- Handle timeouts appropriately
- Consider audio length and complexity
-
Error Handling
- Validate audio files before processing
- Handle both API and file system errors
- Implement proper error recovery