An open API service indexing awesome lists of open source software.

https://github.com/kazuhito00/draw-audio-spectrum-using-opencv

オーディオスペクトラムや波形をOpenCVで描画するサンプル
https://github.com/kazuhito00/draw-audio-spectrum-using-opencv

audio-spectrum fft opencv pyaudio

Last synced: 6 months ago
JSON representation

オーディオスペクトラムや波形をOpenCVで描画するサンプル

Awesome Lists containing this project

README

        

# Draw-Audio-Spectrogram-Using-OpenCV
オーディオスペクトラムや波形をOpenCVで描画するサンプルです。

# Requirement
```
opencv-python 4.5.5.62 or later
PyAudio 0.2.11 or later
```

WindowsでPyAudioをインストールしたい方は、自力でビルドするか、

[非公式のWindowsビルドPyAudio](https://www.lfd.uci.edu/~gohlke/pythonlibs/#pyaudio)を用いてください。

# Contents



No.0







No.1







No.2







No.3







No.4




# Usage
デモの実行方法は以下です。
```bash
python sample.py
```
* --device

マイクなどの入力デバイス番号の指定

デフォルト:1
* --wave

Waveファイルの指定 ※指定時はマイクデバイスより優先

デフォルト:指定なし
* --frames

フレーム読み出し数

デフォルト:2048
* --fft_n

FFTポイント数

デフォルト:1024
* --draw_type

Contentsの描画種別

デフォルト:0

# Author
高橋かずひと(https://twitter.com/KzhtTkhs)

# License
Draw-Audio-Spectrogram-Using-OpenCV is under [Apache-2.0 license](LICENSE).