diff options
| author | HiFiPhile <[email protected]> | 2023-10-17 09:46:01 +0200 |
|---|---|---|
| committer | HiFiPhile <[email protected]> | 2023-10-17 09:46:01 +0200 |
| commit | 656e1e416aa9dbd7ba4c18e777f7294a101f0667 (patch) | |
| tree | 99a3aaf71cbbd2b751ddf15852dea1f284e652e2 /examples/device/audio_4_channel_mic/src/plot_audio_samples.py | |
| parent | 118823c254ab002cf3aeed54653de0c9a93672d3 (diff) | |
Add flow control for IN transfer.
Diffstat (limited to 'examples/device/audio_4_channel_mic/src/plot_audio_samples.py')
| -rw-r--r-- | examples/device/audio_4_channel_mic/src/plot_audio_samples.py | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/examples/device/audio_4_channel_mic/src/plot_audio_samples.py b/examples/device/audio_4_channel_mic/src/plot_audio_samples.py index a3a2b2fd4..d17a908b6 100644 --- a/examples/device/audio_4_channel_mic/src/plot_audio_samples.py +++ b/examples/device/audio_4_channel_mic/src/plot_audio_samples.py @@ -10,11 +10,11 @@ if __name__ == '__main__': # print(sd.query_devices()) fs = 48000 # Sample rate - duration = 20e-3 # Duration of recording + duration = 1 # Duration of recording if platform.system() == 'Windows': # WDM-KS is needed since there are more than one MicNode device APIs (at least in Windows) - device = 'Microphone (MicNode_4_Ch), Windows WDM-KS' + device = 'Microphone (MicNode_4_Ch), Windows WASAPI' elif platform.system() == 'Darwin': device = 'MicNode_4_Ch' else: @@ -28,8 +28,7 @@ if __name__ == '__main__': time = np.arange(0, duration, 1 / fs) # time vector # strip starting zero - myrecording = myrecording[100:] - time = time[100:] + plt.plot(time, myrecording) plt.xlabel('Time [s]') plt.ylabel('Amplitude') |
