general_audio_waveforms

Creator: coderz1093

Last updated:

0 purchases

TODO
Add to Cart

Description:

general audio waveforms

General Audio Waveforms #
General Audio Waveforms is a UI package for adding audio waveforms to your Flutter apps. This package is a customization of the flutter_audio_waveforms package available on pub.dev.
Features #

Curved polygon waveform
Polygon waveform
Pulse waveform
Rectangle waveform
Squiggly waveform

You can choose the source of the waveform from the following options:

AudioFileSource
AudioNetworkSource
AudioAssetSource
AudioDateSource

The package also provides scaling options to adjust the number of data points shown in the waveform. You can use the average or median scaler to create buckets based on the size of the actual data and your desired size. The average or median of each bucket will be used as a representative in the final waveform.
Getting Started #
To start using the General Audio Waveforms package, follow these steps:

Add the package to your pubspec.yaml file:

general_audio_waveforms: ^0.0.10

Import the package in your Dart code:

dart import 'package:general_audio_waveforms/general_audio_waveforms.dart';
Usage #

GeneralAudioWaveform(
scalingAlgorithmType: ScalingAlgorithmType.average,
source: AudioAssetSource(path: "assets/sample.mp3"),
maxSamples: 20,
waveformType: WaveformType.pulse,
maxDuration: maxDuration,
elapsedDuration: elapsedTime,
elapsedIsChanged: (d) {
setState(() {
elapsedTime = d;
});
},
),

copied to clipboard
For more examples and detailed usage instructions, refer to the example directory in the package repository.
License #
This package is released under the MIT License. See the LICENSE file for more details.
Contributions #
We welcome contributions from the community. If you have any suggestions, bug reports, or feature requests, please open an issue on the GitHub repository.

License

For personal and professional use. You cannot resell or redistribute these repositories in their original state.

Files:

Customer Reviews

There are no reviews.