I'm building a flutter web app that has an audio play button. I've used both audioplayers and just_audio. They both worked perfectly in debug mode but they didn't work after deployment.
Here's my codes. I don't understand it. Can anyboy help me?
final ttsAudio = await getTTSAudio(text: line, lan: selectedLanMap[index]!, speakingRate: speakingRate);
final bytes = Base64Decoder().convert(ttsAudio, 0, ttsAudio.length);
final player = AudioPlayer();
final urlSource = UrlSource(Uri.dataFromBytes(bytes, mimeType:'audio/mpeg').toString());
await player.play(urlSource);