diff options
| author | hathach <[email protected]> | 2023-03-08 21:05:06 +0700 |
|---|---|---|
| committer | hathach <[email protected]> | 2023-03-08 21:05:06 +0700 |
| commit | 05e0205ad0f2985909964174987088323724c5b8 (patch) | |
| tree | a24a1ee33e8350ff9cd3bec08adc8c04ea30a811 /examples/device/audio_test/src/plot_audio_samples.py | |
| parent | ea81d22f184fa8fd6c46c35c8be86e47996b46c8 (diff) | |
| parent | be66f5f57f435ef2d00b3e23f6bd850468d14942 (diff) | |
Merge branch 'master' into renesas-ra
Diffstat (limited to 'examples/device/audio_test/src/plot_audio_samples.py')
| -rw-r--r-- | examples/device/audio_test/src/plot_audio_samples.py | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/examples/device/audio_test/src/plot_audio_samples.py b/examples/device/audio_test/src/plot_audio_samples.py index 6e3c4978e..2303df3d0 100644 --- a/examples/device/audio_test/src/plot_audio_samples.py +++ b/examples/device/audio_test/src/plot_audio_samples.py @@ -2,6 +2,7 @@ import sounddevice as sd import matplotlib.pyplot as plt import numpy as np import platform +import csv if __name__ == '__main__': @@ -31,4 +32,7 @@ if __name__ == '__main__': plt.ylabel('Amplitude') plt.title('MicNode') plt.show() + + samples = np.array(myrecording) + np.savetxt('Output.csv', samples, delimiter=",", fmt='%s')
\ No newline at end of file |
