ssage = document.getElementById('status-message');
        var obsStudio = null;
        var obsWebSocket = null;
        var audioContext = new (window.AudioContext || window.webkitAudioContext)();

        // Attempt to connect to OBS Studio API if available
        if (window.obsstudio) {
            obsStudio = window.obsstudio;
            console.log('OBS Studio API found.');
        }
        
        // Initialize OBS WebSocket connection
        async function initOBSWebSocket() {
    