简体   繁体   English

使用 Python 更改麦克风声音(在 Windows 中)

[英]Change microphone voice with Python (in Windows)

I would like to replicate the Clownfish app in Python.我想在 Python 中复制Clownfish应用程序。

I need to use Python to transmit an audio file to the microphone, on Windows, Linux, and Mac, such that if any service is listening to the microphone (for example, skype), it would catch that audio I'm transmitting.我需要使用 Python 将音频文件传输到麦克风,在 Windows、Linux 和 Mac 上,这样如果有任何服务正在收听麦克风,例如,它会接收到麦克风的传输。

Is there any way to transmit audio through the user's microphone?有没有办法通过用户的麦克风传输音频?

There's pyvoicechanger which works only for Linux. pyvoicechanger仅适用于 Linux。

Take a look at this library PyAudio .看看这个库PyAudio

Looks like you could use wire or wire (callback) .看起来你可以使用wirewire (callback)

PyAudio Example: Make a wire between input and output (i.e., record a
few samples and play them back immediately).

Another library you should take a look at is python-sounddevice .您应该查看的另一个库是python-sounddevice

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM