<p>If you only want to listen to, and not manipulate, a remote audio file, use <code>IPython.display.Audio</code> instead. (See <a href="#Playing-Audio">Playing Audio</a>.)</p>
<p>If you only want to listen to, and not manipulate, a remote audio file, use <code>IPython.display.Audio</code> instead of <code>urllib.urlretrieve</code>. (See <a href="#Playing-Audio">Playing Audio</a>.)</p>
<p>Use <a href="https://librosa.github.io/librosa/generated/librosa.core.load.html#librosa.core.load"><code>librosa.load</code></a> to load an audio file into an audio array. Return both the audio array as well as the sample rate:</p>