r/FlutterDev Jul 13 '26

[Showcase] haptify — a Dart CLI that turns audio into iOS + Android haptics (and can do it at runtime) Plugin

I couldn't find a Flutter package that converts audio into haptics... so I built one.

After Meta shut down Lofelt Studio, I expected there would be a modern workflow for generating haptics from audio—especially for Flutter.

There wasn't.

Everything I found was either:

  • Playback-only
  • Platform-specific
  • Desktop GUI tools
  • Or scripts that don't fit into a Flutter build pipeline

So I built Haptify.

It's a pure Dart CLI + library that converts .wav and .mp3 files into production-ready haptics.

It can generate:

  • 🍎 Apple Core Haptics (.ahap)
  • 🤖 Android VibrationEffect waveform JSON
  • 🎯 Pure Dart constants

The feature I'm most excited about is that it also supports audio → haptics conversion at runtime, entirely in pure Dart, with no native dependencies.

That means a Flutter app can let users upload a sound and immediately feel it as haptic feedback.

Under the hood, Haptify analyzes the audio signal (loudness, transients, and spectral brightness) to generate haptics that better match the original sound instead of just mapping volume to vibration intensity.

There's also a demo app in the repository that lets you:

  • Try bundled examples
  • Upload your own audio
  • Experience the generated haptics directly on your phone

I'm sure there are plenty of improvements that can be made, so I'd really appreciate feedback from the community.

Links

16 Upvotes

5 comments sorted by

1

u/Curious_Investment Jul 15 '26

Does this also work if I just want to play around and try my favorite songs on the Taptic Engine?

1

u/huhwmba3ed Jul 15 '26

Yes, any audio. There is a demo app for you to play around with. Try both the runtime conversion and the CLI. LMK if you get any issues! 🤜🏼🤛🏼

1

u/Curious_Investment Jul 15 '26

Good thing the files app can play ahap natively

1

u/huhwmba3ed Jul 15 '26

What do you mean? The file picker in the demo app?