ergedData = mergeUint8Array([new Uint8Array(buffer), audioData]);

                return new Blob([mergedData.buffer], { type: 'audio/wav' });
            }

            function printChatAudio(audioBlob, message) {
                var d = document.createElement('div');
                d.classList.add('vertical-container');
                if (message === 'Me') {
                    d.classList.add('align-right');
                }
                const audioUrl = URL.createObjectURL(audioBlob);

         