A simple Flutter application that measures the current amplitude of the microphone in dB and can save recordings as .wav files
There is only one file of code in this demo project - lib/main.dart
I used two different libraries
- flutter_sound to measure the amplitude in dB
- recorder_wav to save a wav file
Note: There is a possibility that we could get the raw amplitude of the microphone
- Download and install flutter by following the online instructions
- Clone this repo
- Open terminal and type
flutter doctor
to make sure everything is set up correctly. - Connect a device to your computer (or run an emulator)
- Type
flutter run
in terminal to build and run the project on your device - Feel free to mess around with the code and press
r
in the terminal to hot reload
For help getting started with Flutter, view our online documentation, which offers tutorials, samples, guidance on mobile development, and a full API reference.
A few resources if you want to learn flutter: