   

        // List of audio file URLs
        const audioFiles = [
'https://www.geocities.ws/brijesh/guruvani24-128kbps/Guruvani24-128kbps-01Guruvani_apne_ko_badliye.mp3',
'https://www.geocities.ws/brijesh/guruvani24-128kbps/Guruvani24-128kbps-02Guruvani_devta.mp3',
'https://www.geocities.ws/brijesh/guruvani24-128kbps/Guruvani24-128kbps-03Guruvani_jeevan_kaise.mp3',
'https://www.geocities.ws/brijesh/guruvani24-128kbps/Guruvani24-128kbps-04Guruvani_chintan.mp3',
'https://www.geocities.ws/brijesh/guruvani24-128kbps/Guruvani24-128kbps-05Guruvani_manan.mp3',
'https://www.geocities.ws/brijesh/guruvani24-128kbps/Guruvani24-128kbps-06Guruvani_upasna.mp3',
'https://www.geocities.ws/brijesh/guruvani24-128kbps/Guruvani24-128kbps-07Guruvani_hans_bane.mp3',
'https://www.geocities.ws/brijesh/guruvani24-128kbps/Guruvani24-128kbps-08Guruvani_utthan_patan.mp3',
'https://www.geocities.ws/brijesh/guruvani24-128kbps/Guruvani24-128kbps-09Guruvani_boya_kata.mp3',
'https://www.geocities.ws/brijesh/guruvani24-128kbps/Guruvani24-128kbps-10Guruvani_samay_dan.mp3',
'https://www.geocities.ws/brijesh/guruvani24-128kbps/Guruvani24-128kbps-11Guruvani_shikshya_vidhya.mp3',
'https://www.geocities.ws/brijesh/guruvani24-128kbps/Guruvani24-128kbps-12Guruvani_samaj.mp3',
'https://www.geocities.ws/brijesh/guruvani24-128kbps/Guruvani24-128kbps-13Guruvani_janamdin.mp3',
'https://www.geocities.ws/brijesh/guruvani24-128kbps/Guruvani24-128kbps-14Guruvani_adhyamikta.mp3',
'https://www.geocities.ws/brijesh/guruvani24-128kbps/Guruvani24-128kbps-15Guruvani_akhand_deep.mp3',
'https://www.geocities.ws/brijesh/guruvani24-128kbps/Guruvani24-128kbps-16Guruvani_isa_masih.mp3',
'https://www.geocities.ws/brijesh/guruvani24-128kbps/Guruvani24-128kbps-17Guruvani_puja_upasna_ke_labh.mp3',
'https://www.geocities.ws/brijesh/guruvani24-128kbps/Guruvani24-128kbps-18Guruvani_puja_upasna.mp3',
'https://www.geocities.ws/brijesh/guruvani24-128kbps/Guruvani24-128kbps-19Guruvani_jivan_kaise_jiyen.mp3',
'https://www.geocities.ws/brijesh/guruvani24-128kbps/Guruvani24-128kbps-20Guruvani_sadhak_kya_karen.mp3',
'https://www.geocities.ws/brijesh/guruvani24-128kbps/Guruvani24-128kbps-21Guruvani_samajik_kranti.mp3',
'https://www.geocities.ws/brijesh/guruvani24-128kbps/Guruvani24-128kbps-22Guruvani_vishesh_samay_me_vishesh_kam.mp3',
'https://www.geocities.ws/brijesh/guruvani24-128kbps/Guruvani24-128kbps-23Guruvani_yug_parivaraan_ki_bela.mp3',
'https://www.geocities.ws/brijesh/guruvani24-128kbps/Guruvani24-128kbps-24Guruvani_vidai.mp3',
'https://www.geocities.ws/brijesh/guruvani24-128kbps/Guruvani24-128kbps-25Guruvani_aastikta-sahi-adhyatm-kya-hai.mp3'
            // Add more audio file URLs as needed
        ];

        let currentIndex = 0;
        const audioPlayer = document.getElementById('audio');
        const audioSource = document.getElementById('audio-source');
        const backButton = document.getElementById('backButton');
        const nextButton = document.getElementById('nextButton');

        function playAudio(index) {
            if (index >= 0 && index < audioFiles.length) {
                audioSource.src = audioFiles[index];
                audioPlayer.load();
                audioPlayer.play().catch(error => {
                    console.error('Error attempting to play', error);
                });
                currentIndex = index;
                updateButtons();
            }
        }

        function playNextAudio() {
            playAudio(currentIndex + 1);
        }

        function playPreviousAudio() {
            playAudio(currentIndex - 1);
        }

        function updateButtons() {
            backButton.disabled = currentIndex === 0;
            nextButton.disabled = currentIndex === audioFiles.length - 1;
        }

        audioPlayer.addEventListener('ended', playNextAudio);

        backButton.addEventListener('click', playPreviousAudio);
        nextButton.addEventListener('click', playNextAudio);

        // Start playing the first audio file
        playAudio(currentIndex);
    
    
