Skip to content

Kazuhito00/Draw-Audio-Spectrum-Using-OpenCV

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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を用いてください。

Contents

No.0
No.1
No.2
No.3
No.4

Usage

デモの実行方法は以下です。

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.

About

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

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages