Error when trying to convert base64 encoded audio data and play via web audio api

I have some data that comes in on a websocket from https://play.ai/business

{"type":"audioStream","data":"//uyxPaD6eFa4g7vLcyOK12B3WU4RuTGAgReYNDBVKBheIRrquBo4yEhPRdQ0Fq0kSoILOIQxkeOLWhBBekaDUZb5kKqLFVzQM86nlgEzR4cHDPYh6GQF1HQBopfEoBCoLdFN3bLiKxBjyq7NoGToLBK/FGw4RyGAMKVuWi2VYjK4g579LWjjtQ/Id2bedirbmeWp/WdW3UwraUATA+GCOHO7k2vmQjNXLVMlkVgw3QsTM3E8MdG9Y1kmMcgTM1c3kXHII0hZOWIBCRlvBIBBz8YcMmNhAFFjQSwxshNBEDHzQysyMuKzWCYyw1OXcGMgPwRojB5wWGocCnThTHQQsCZQpqigQkx7zaTBKZDS7ogEHBVMh1k0AAUiENM6DIUFDLHlprNlFpiTDUAFDDoBUQKCBBYiYNw8ouSsXoki/4dyQFCx6UhhgE3AERMIpDVGhFgWBNQBBMWZCAkI1V1lCIZQ8iBEQCYhaAtOAgiwKu0OUWsNGDpRctlBimg0dQYmLWfAT/RIswXZZgVjw4jwGGkoSEZghp7FnU72LonI2wERAMAKgqyU80vkqEeE+3lbRkzlMtf2Rzkml+VPTzstjt25fp7G+4ays0yGHmCCZ1ShJrdKNmYIDYY8YkRCEyYggepg3ArGQRZqE2ZUnmSFRzu0Bwcy5HNaKDFzcy4pNFNjARwzs0CooaSVGGH5nh2F0w0dYMEEzMBMxoRGDM3QpNFOkOBgIyAnkwAVdU1FxgYi7NJ8wDQh0z6gEyaAoXYInlAESh0gxxTahAxw0KZJyYbQQAWYzpnBiIcVJMxcraQDEU4ChMtQdFAhqkkSBJJJFjJ"}

I want to convert this data to binary and output it in the users browser as audio. The play ai docs just show this documentation for that: https://docs.play.ai/api-reference/websocket#sample-code-for-receiving-audio

The code I have looks right – I convert the base64 data to binary and then try to play it via web audio api:

     myWs = new WebSocket('wss://api.play.ai/v1/talk/MY_AGENT_ID');
    myWs.onopen = () => {
      console.log('connected!');
      myWs.send(JSON.stringify({ type: 'setup', apiKey: 'MY_API_KEY' }));

  myWs.onmessage = async (message) => {
    const event = JSON.parse(message.data);
    console.log(message.data);
    try {
    if (event.type === 'audioStream') {
      const base64String = event.data;
       // deserialize event.data from a base64 string to binary
      const arrayBuffer = Uint8Array.from(atob(base64String), c => c.charCodeAt(0)).buffer
      // enqueue/play the binary data at your player

      const audioContext = new (window.AudioContext || window.webkitAudioContext)();

      audioContext.decodeAudioData(arrayBuffer)
      .then((audioBuffer) => {
        // Step 3: Play the audio data
        const source = audioContext.createBufferSource();
        source.buffer = audioBuffer;
        source.connect(audioContext.destination);
        source.start(0);
      })
      .catch(e => {console.error(e)});
    }
  } catch(e) {
    console.log('error', e);
  }
};
    }

However, I get an error in the console when running this code:

Failed to execute ‘decodeAudioData’ on ‘BaseAudioContext’: Unable to decode audio data

I’ve searched and tried many solutions. It seems that one other person is also seeing the same issue in this repo: https://github.com/Bradymck/Play.ai-Test

Somehow the data is not in the right format but I’m not sure how to fix it.