Ocarina is a Flutter package that enables playback of local audio files—stored as assets or in external/internal storage—on Android and iOS devices. It provides a simple, lightweight interface for loading and playing audio without requiring complex setup. Designed specifically for music and audio applications, it supports common audio formats and integrates seamlessly into Flutter apps. The package is ideal for developers building audio players, soundboard apps, or any application needing reliable local audio playback.
Use cases
- Local audio playback in mobile apps
- Soundboard applications
- Audio asset management
- Interactive media experiences
- Offline audio support
Key features
- Supports assets and file system audio
- Lightweight and easy to integrate
- Cross-platform (Android & iOS)
- Simple API for play/pause/stop
- Built-in error handling
Suitable for
- Flutter developers building audio apps
- Apps requiring offline audio playback
- Educational or interactive media tools
- Simple audio player implementations
Considerations
- Limited to local audio files only
- No streaming support
- Requires proper file permissions on Android
- May need additional configuration for large audio files