flutter_realtime_voice_ai 0.2.0
flutter_realtime_voice_ai: ^0.2.0 copied to clipboard
A Flutter package for streaming voice recording, and audio playback with focus on real-time voice interactions.
Changelog #
0.2.0 #
Added #
- AudioPlaybackService: Comprehensive playback service combining all audio features
- AudioTone: Model for generating and managing audio tones
- File Playback: Support for playing audio from file paths
- Tone Generation: Built-in dialing and call end tone generation
- Repeating Tones: Support for repeating audio tones (like dialing)
- Enhanced VoicePlayerService: File playback, tone playback, repeating tones
- AudioTone.dialingTone(): Factory method for creating dialing tones
- AudioTone.callEndTone(): Factory method for creating call end tones
Enhanced #
- VoicePlayerService: Added file playback, tone playback, and repeating tone features
- State Management: Improved state handling across all services
- Error Handling: Better error recovery and timeout protection
- Resource Management: Enhanced cleanup and disposal methods
Features #
- Streaming Playback: Buffer-based audio streaming with chunk management
- File Playback: Direct file path audio playback
- Tone System: Built-in tone generation for calls and notifications
- State Isolation: Separate services prevent state conflicts
- Progress Monitoring: Real-time playback progress and position tracking
0.1.0 #
Added #
- Initial release of Flutter Realtime Voice AI Package
- Stream recording from device microphones with permission handling
- Streaming audio playback with buffering support
- State management for recorder and player
- Example Flutter app demonstrating package usage
- Unit tests for core functionality
0.1.1 #
- Add forceReset() method for aggressive state cleanup
- Enhance stopRecording() with timeout protection and guaranteed state transitions
- Improve error handling to prevent stuck recorder states
- Add state validation for detecting and fixing inconsistencies
- Fix state conflicts between voice calls and voice notes
Features #
- VoiceRecorderService: Handles microphone input → Audio Stream → Data Processing
- VoicePlayerService: Receives audio chunks → Buffer → Playback smoothly
- AudioChunk: Model for audio data with metadata
- StreamConfig: Configuration for audio streaming parameters
- State enums: VoiceRecorderState, VoicePlayerState, ConnectionState
Dependencies #
flutter_sound
: ^9.28.0record
: ^6.0.0logger
: ^2.6.1
Platform Support #
- Android
- iOS
Types of changes #
Added
for new featuresChanged
for changes in existing functionalityDeprecated
for soon-to-be removed featuresRemoved
for now removed featuresFixed
for any bug fixesSecurity
in case of vulnerabilities