soundify 0.1.0
soundify: ^0.1.0 copied to clipboard
A powerful Flutter library for contextual audio and sensory feedback.
soundify #
A powerful Flutter library for contextual audio and sensory feedback β enhance your app's accessibility and interactivity using intuitive sound cues and sensory responses.
Features #
- π― Contextual Audio Triggers β Automatically respond to gestures, device motion, and state changes.
- π Dynamic Tone Generation β Create custom beeps and tones with adjustable frequency and duration.
- π£οΈ Text-to-Speech β Announce events using synthesized speech.
- π€ Haptic Feedback Integration β Combine sound with tactile feedback (where available).
- π§ Customizable Rules β Define when and how sounds should trigger.
- π₯ Sound Layering & Prioritization β Manage overlapping audio cues with priorities.
Getting Started #
Add soundify
to your pubspec.yaml
:
dependencies:
soundify: ^0.1.0
Usage #
final soundify = Soundify(
rules: [
SoundRules.swipe(minVelocity: 600.0),
SoundRules.shake(),
SoundRules.tap(),
SoundRules.stateSuccess(),
SoundRules.announce(text: 'Action completed'),
SoundRules.beep(frequency: 440.0),
],
);
void main() {
SoundifyWrapper(
soundify: soundify,
child: Text('Swipe, Tap, or Shake Me!'),
);
}
Example #
void main() {
ElevatedButton(
onPressed: () => soundify.trigger(null, data: 'success'),
child: const Text('Success'),
);
}
Roadmap #
- β Rule chaining and condition building
- β Custom audio asset support
- β Advanced haptic configuration
- β Web and desktop support
License #
This project is licensed under the MIT License - see the LICENSE file for details β Contribute, fork, and enjoy!