# Flutter Sound Helpers API

## `duration()`

* Dart API: [duration()](https://github.com/Canardoux/tau/tree/6bd245d293bcf9a123677735835549585d32b2ee/doc/pages/tau-api/utilities/pages/flutter-sound/api/helper/FlutterSoundHelper/duration.html)

This verb is used to get an estimation of the duration of a sound file. Be aware that it is just an estimation, based on the Codec used and the sample rate.

Note : this verb uses FFmpeg and is not available int the LITE flavor of Flutter Sound.

*Example:*

[Dart](#dart)

[Javascript](#javascript)

```

        Duration d = flutterSoundHelper.duration("$myFilePath/bar.wav");
```

```

        Lorem ipsum ...
```

\</div>
