flutter_whisper_api 1.0.0
flutter_whisper_api: ^1.0.0 copied to clipboard
A Flutter package for seamless integration with OpenAI's Whisper API for speech-to-text conversion with audio recording capabilities.
Changelog #
1.0.0 #
✨ Initial Release #
-
WhisperClient: Complete integration with OpenAI Whisper API
- Support for all response formats (JSON, text, SRT, VTT, verbose JSON)
- Configurable models, temperature, and language settings
- Comprehensive error handling with specific exception types
-
WhisperRecorder: Built-in audio recording capabilities
- Cross-platform microphone recording
- Real-time amplitude monitoring
- Configurable audio quality presets (low, medium, high)
- Automatic permission handling
- Pause/resume functionality (platform dependent)
-
Models & Exceptions: Well-structured data models
WhisperRequestandWhisperResponsemodels- Specialized exception types for different error scenarios
- JSON serialization support
-
Example App: Complete demonstration app
- Visual recording interface with amplitude feedback
- API key configuration
- Real-time transcription display
- Error handling examples
-
Documentation: Comprehensive documentation
- Detailed API reference
- Usage examples and best practices
- Setup instructions for all platforms
- Security considerations
🔧 Technical Features #
- Support for audio files up to 25MB
- Multiple audio formats: mp3, mp4, mpeg, mpga, m4a, wav, webm
- Cross-platform: iOS, Android, web, and desktop
- HTTP client with configurable base URL
- Automatic file validation and size checking
- Clean resource management and disposal