How get sound input from microphone in python, and process it on the fly?

前端 未结 3 883
南旧
南旧 2020-11-27 10:30

Greetings,

I\'m trying to write a program in Python which would print a string every time it gets a tap in the microphone. When I say \'tap\', I mean a loud sudden n

3条回答
  •  难免孤独
    2020-11-27 11:10

    I know it's an old question, but if someone is looking here again... see https://python-sounddevice.readthedocs.io/en/0.4.1/index.html .

    It has a nice example "Input to Ouput Pass-Through" here https://python-sounddevice.readthedocs.io/en/0.4.1/examples.html#input-to-output-pass-through .

    ... and a lot of other examples as well ...

提交回复
热议问题