Generating sine wave sound in Python

后端 未结 6 1168
佛祖请我去吃肉
佛祖请我去吃肉 2020-12-01 05:31

I need to generate a sine wave sound in Python, and I need to be able to control frequency, duration, and relative volume. By \'generate\' I mean that I want it to play thou

6条回答
  •  生来不讨喜
    2020-12-01 06:06

    Today for Python 3.5+ the best way is to install the packages recommended by the developer.

    http://people.csail.mit.edu/hubert/pyaudio/

    For Debian do

    sudo apt-get install python3-all-dev portaudio19-dev
    

    before trying to install pyaudio

提交回复
热议问题