Skip to content
pubscout

noise_meter

6.0.0, released 3 months ago by cachet.dk

A Flutter plugin for collecting noise and decibel levels from the phone's microphone.

WASM-ready
$ flutter pub add noise_meter
Source repository

What it does

A Flutter plugin that records PCM audio data using the device microphone and provides a stream of NoiseReading objects containing mean and maximum decibel levels. It supports both iOS and Android platforms.

AI-written summary of version 6.0.0, based on the package's README and metadata. Report an inaccuracy

Use it when

  • You need to measure ambient noise or decibel levels in your Flutter application.
  • You want to stream real-time noise readings from the device microphone.

Skip it when

  • You need a full-featured audio recording and playback solution for music or voice memos.
  • Your project targets Flutter or platform versions older than the specified requirements.

Strengths

  • Provides a simple stream-based API for noise readings.
  • Computes both mean and max decibel levels out of the box.

Weaknesses

  • Requires platform-specific permission configuration for Android and iOS.
  • Strict platform and Flutter version requirements.

Setup

Kind
Flutter widgets
Effort
Medium
Code generation
No
Direct dependencies
1

Requires adding RECORD_AUDIO permission on Android, and Info.plist/Background Modes configuration on iOS.

NoiseMeter().noise.listen(
  (NoiseReading noiseReading) {
    print('Noise: ${noiseReading.meanDecibel} dB');
    print('Max amp: ${noiseReading.maxDecibel} dB');
  },
  onError: (Object error) {
    print(error);
  },
  cancelOnError: true,
);

Alternatives

Packages that do the same job and could replace noise_meter.

  • record

    Choose record if you need to record and save audio files to disk rather than streaming live decibel meters.

  • audioplayers

    Choose audioplayers if your primary need is playing audio files or streams instead of analyzing microphone decibels.

Works with

Packages commonly used together with noise_meter: ones it builds on, ones built on it, and its own family.