"Audio channels can be separated into multiple locatities to give the impression on the viewer of a two or three dimensional space. For instance, most cars have multiple speakers to surround the passengers with sound. This reduces listening fatigue and makes for a more immersive experience. In machine learning, it can be useful to separate audio files into multiple channels so they can be more useful features for locating labels more closely tied to a certain channel. "
]
},
{
"cell_type": "markdown",
"metadata": {},
...
...
@@ -299,7 +306,7 @@
"name": "python",
"nbconvert_exporter": "python",
"pygments_lexer": "ipython3",
"version": "3.10.2"
"version": "3.9.7"
}
},
"nbformat": 4,
...
...
%% Cell type:markdown id: tags:
# Audio Tutorial using Scipy
%% Cell type:markdown id: tags:
Audio channels can be separated into multiple locatities to give the impression on the viewer of a two or three dimensional space. For instance, most cars have multiple speakers to surround the passengers with sound. This reduces listening fatigue and makes for a more immersive experience. In machine learning, it can be useful to separate audio files into multiple channels so they can be more useful features for locating labels more closely tied to a certain channel.
%% Cell type:markdown id: tags:
Adapted from https://publish.illinois.edu/augmentedlistening/tutorials/music-processing/tutorial-1-introduction-to-audio-processing-in-python/
%% Cell type:code id: tags:
``` python
#!pip install jupyterthemes
```
%% Cell type:code id: tags:
``` python
#!pip install wavio
```
%% Cell type:code id: tags:
``` python
importnumpyasnp
importmatplotlib.pyplotasplt
fromscipy.io.wavfileimportread,write
fromIPython.displayimportAudio
fromjupyterthemesimportjtplot
importwavio
jtplot.style()
%matplotlibinline
```
%% Cell type:markdown id: tags:
### Download Multichannel .wav file
%% Cell type:markdown id: tags:
Download audio file *6_Channel_ID.wav* from http://www-mmsp.ece.mcgill.ca/Documents/AudioFormats/WAVE/Samples/Microsoft/6_Channel_ID.wav