title: Play sound from blob data returned from server via AJAX request
body: <p>I'm issuing an AJAX request to get audio data from the server.
  The server sends a REST call which sends back (to the client) the result (blob data)
  I want to play the sound to the client.
  Here's is the result I got back from the server:</p>
  
  <p><a href="https://i.stack.imgur.com/3eSTT.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/3eSTT.png" alt="enter image description here"></a></p>
  
  <p>EDITED:
  This is the JS part:</p>
  
  <pre><code> var audio = new window.Audio();
          audio.src = window.URL.createObjectURL(this.response);
          var promise = audio.play();
  </code></pre>
  
  <p>This is the html part:</p>
  
  <pre><code>&lt;audio id="myAudioElement" muted="muted" crossOrigin="anonymous"&gt;
  </code></pre>