TauHelper class

TauHelper class is for handling audio files and buffers. Most of those utilities use FFmpeg, so are not available in the LITE flavor of Flutter Sound.

Constructors

TauHelper()
The factory which returns the Singleton
factory

Properties

flutterFFmpeg ↔ FlutterFFmpeg?
The Flutter FFmpeg module
getter/setter pair
hashCode int
The hash code for this object.
no setterinherited
logger ↔ Logger
The TauHelper Logger
getter/setter pair
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

convertFile(String? inputFile, Codec? inputCodec, String outputFile, Codec outputCodec) Future<bool>
Convert a sound file to a new format.
duration(String uri) Future<Duration?>
Get the duration of a sound file.
executeFFmpegWithArguments(List<String?> arguments) Future<int?>
A wrapper for the great FFmpeg application.
ffMpegGetMediaInformation(String uri) Future<Map?>
Various informations about the Audio specified by the uri parameter.
getLastFFmpegCommandOutput() Future<String?>
Get the log code output by executeFFmpegWithArguments().
getLastFFmpegReturnCode() Future<int?>
Get the error code returned by executeFFmpegWithArguments().
isFFmpegAvailable() bool
To know during runtime if FFmpeg is linked with the App.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
pcmToWave({required String inputFile, required String outputFile, required Pcm codec}) Future<void>
Converts a raw PCM file to a WAVE file.
pcmToWaveBuffer({required Uint8List inputBuffer, required Pcm codec}) Future<Uint8List>
Convert a raw PCM buffer to a WAVE buffer.
setLogLevel(Level theNewLogLevel) → void
toString() String
A string representation of this object.
inherited
waveToPCM({required String inputFile, required String outputFile, required TauCodec codec}) Future<void>
Convert a WAVE file to a Raw PCM file.
waveToPCMBuffer({required Uint8List inputBuffer}) Uint8List
Convert a WAVE buffer to a Raw PCM buffer.

Operators

operator ==(Object other) bool
The equality operator.
inherited