I have a feature to listen to audio files, I'm getting audio files in .wav format and takes too long to play audio. When i tried .mp3 file with same audio player its delay decreased.
Is there any way to convert .wav to .mp3 or any other approches?
FFmpegKit.execute('-i $url output.mp3').then((session) async {
final returnCode = await session.getReturnCode();
if (ReturnCode.isSuccess(returnCode)) {
// SUCCESS
} else if (ReturnCode.isCancel(returnCode)) {
// CANCEL
} else {
// ERROR
}
})