Open kiamgrebgnur opened 7 years ago
What I did was I have a mic and headphone port on my computer but no mic. I plugged an aux cord from headphone(and configured it as speaker out) and into mic(and configured as mic). Then I opened the device properties and selected "listen" so that I could still hear it out of my speakers. This is a rather bodgey solution to that but it works fine.
PyAudio uses your default audio input device which is a microphone for most cases. You can also create a virtual audio input device using software such as Voicemeeter on Windows, Loopback on OSX, or Jack on Linux.
This allows you to play music on a computer while also forwarding the audio data to a virtual audio input. PyAudio uses the virtual audio input device as if it were a real microphone.
Would any of these options resolve your issue?
I think this is the most popular question people have been asking me!
Most people have probably never heard of a virtual audio cable, so I think some information should be added to the README. I'll leave this issue open until the change is made.
That would be perfect. I can't find any guide which helps with my problem. Forward HDMI Output to Input in Linux.
There's also a pyaudio fork which allows using windows output devices in loopback mode (like a microphone) available here. I'm trying to integrate it, if I have any luck I'll comment here.
There was a /u/ri212 who also mentioned the PyAudio fork when I posted this project on reddit:
Another way to do this is by using PyAudio with WASAPI loopback mode, implemented here. I've been working on something similar to this (Changing Philips Hue colour depending on the current chord in any music playing) and finding this has been the most difficult part of the project so far, hopefully it'll be included in a future update of PyAudio or SoundDevice.
I looked into this a bit more. The reason loopback works on Windows is because the Windows Audio Session API (WASAPI) specifically provides the capability. Loopback is also possible in Linux but the method is completely different because Linux doesn't use WASAPI.
I'm generally hesitant to support platform-specific libraries, however, I would be okay with this considering that loopback would be a very useful optional feature. We will just need to make sure that integrating the PyAudio fork won't break anything for Linux users.
Is anyone aware of a similar library or method that could be used to get loopback in Linux? In the meantime Linux users will need to use third-party tools such as Jack audio to get loopback functionality.
I'm working on a major update in the experimental branch. I'll see if I can implement loopback functionality in the update as well. For now, this would only work on Windows machines.
This is off-topic, but here are some changes coming in the update:
The code is too unstable and incomplete to use right now. I'm hoping to have a stable version in a week or two.
@scottlawsonbc I was thinking a windows specific branch might work best, as I'm not sure the fork will work on linux at all (I'll check this when I get home tonight) - either way, I'm very close to submitting a PR for loopback support on windows, I'm just making it a bit cleaner, but it does work.
Depending on how your implementation works, I I could add a button in the GUI to enable loopback on platforms where that is supported. Also, if you make a pull request please follow PEP8 guidelines if you aren't already doing so.
depending on your audio device go to Control Panel and open Sound. Under the recording tab Right click in the blank area of the listed items and make sure Show Disabled Devices is check. I have a recording "device" called Stereo Mix. This allows any audio coming out of you computer to be passed through to "microphone".
maybe this will help a couple people
First of all I want to give @scottlawsonbc a huge thumbs up.👍 This is awesome!
On topic: I'm running Linux Mint 18.1 with the MATE desktop and in the Sound Preferences I found the option of setting the sound input as a loopback. This is probably available in most Gnome or Ubuntu based distributions.
The thing that @SebastianGrans mentioned is a bit better and more general described here on unix Stackexchange. And could be added to the REAMDE for easier setup.
Hi! Thank you for the amazing project! You commented on Jan 12 about the update of the audio visualization. I use mac os and did not see such visualization innovations. If the version is still at the beta stage, then I'm ready to test with pleasure, write to me on mail: quartz@drummer.ru
what happened to the other version of visualizer ? did you update it ?
@kiamgrebgnur How did you get fastled working?? do you have a git on it? I love the way this project works but I only have ws8211 led strips
maby you mean ws2811, and yes i have them too and got them working.. it's not hard but you need to know how to install the software on pc and on a nodemcu preferably , i also tried with a wemos d1 mini but that is not made for lua scripts... i can help you if you want, just tell me what you did
Hi,
I love your project and added already support for WS2801 controller with fastled, so it could possibly support even more.
But now I want to grap playing music instead of the mic input because I want to let the software run my nas. Can you give me a hint how to do that with pyaudio?