Best Way to play audio in android phone right now

const downloadAudio = async (url: string, filename: string): Promise<string> => {
    let fileUri = await Filesystem.downloadFile({
        path: filename,
        url: url,
        directory: Directory.Data,
        recursive: true
    });


    console.log(fileUri);
    

    return fileUri.path!;
};


const playAudio = async (audioPath: string, id: string) => {
    try {
        const fullUrl = `https://sitename.com/${audioPath}`;
        const filename = audioPath.split("/").pop();
        const assetId = `audio-${id}`;

        const fileUri = await downloadAudio(fullUrl, filename!);
        
        if (Capacitor.getPlatform() === 'web') {
            await NativeAudio.preload({
                assetId,
                assetPath: audioPath,
                audioChannelNum: 1,
                isUrl: true,
            });
            await NativeAudio.play({ assetId });
        } else if(Capacitor.getPlatform() === 'android') {
            await NativeAudio.preload({
                assetId,
                assetPath: fileUri,
                audioChannelNum: 1,
                isUrl: false,
            });
            await NativeAudio.play({ assetId });
        }
    } catch (err) {
        console.error("Error playing audio:", err);
    }
};

With this code I am not able to play audio in mobile

There are three plugins that I am aware of:

Each have their own use case. For example, mine was made for our use case to play from a web URL and allow for background music at the same time along with playing in the background generally (on Android, using a foreground service).

It depends on your use case what to use. You can get by with HTML audio for certain things. HTML got us pretty far but we ran into the issue of long audio getting killed (because the web layer gets paused by the OS at a certain point) and not being able to control the volume of the background music.