I'm developing an app in unity for android. My app uses a bunch of audio files, each audio file is about 5Mb. I uploaded them on firebase storage. For testing, I use only three audio files, when I run the app, each audio file takes almost a minute to load. Is there n efficient way of doing this faster? Any help would be much appreciated. Thanks.
This is how I load the audio clip.
IEnumerator GetAudioClip()
{
using (UnityWebRequest www = UnityWebRequestMultimedia.GetAudioClip("", AudioType.OGGVORBIS))
{
yield return www.SendWebRequest();
if (www.isNetworkError)
{
Debug.Log(www.error);
}
else
{
myClip = DownloadHandlerAudioClip.GetContent(www);
}
Debug.Log("Audio is loaded.");
}
}