uwacan.analysis.Spectrogram.listen#
- Spectrogram.listen(downsampling=1, upsampling=None, headroom=6, **kwargs)#
Play back this time data over speakers.
This tries to play the time data as audio using the
sounddevicepackage. The audio will be centered at 0 and normalized before playback.- Parameters:
- downsamplingfloat, optional
Artificially uses a lower samplerate in playback to slow down the audio, lowering the pitch of the content.
- upsamplingint, optional
Decimates the data by selecting every Nth sample, speeding up the audio and raising the pitch of the content.
- headroomfloat, default 6
How much headroom to leave in the normalization, in dB.
- **kwargsdict, optional
Remaining keyword arguments are passed to
sounddevice.play. The most useful arguments areblocking=True, anddevice.