Comments (8)
Thank you for that suggestion!
Did not think much about that as it was never a problem for me.
I will see if I can implement the first solution you suggested.
Best,
Marvin
from pyaudio_portaudio.
This would be very useful. Hopefully it's implemented soon. +1
from pyaudio_portaudio.
The silence isn't perfect yet, but there you go.
Moved this in an extra branch, as long as it has some issues.
PyAudio-0.2.11.win-amd64-py3.7.msi.zip
from pyaudio_portaudio.
Usage
stream = p.open(format = pyaudio.paInt16,
channels = channelcount,
rate = int(device_info["defaultSampleRate"]),
input = True,
frames_per_buffer = defaultframes,
input_device_index = device_info["index"],
as_loopback = useloopback,
wasapi_fill_silence = True)
from pyaudio_portaudio.
Or instead of silence I could return NULL when the loopback output stream has no frames available.
One would then be able to handle this case oneself in the python code, as the operation will then be non-blocking.
from pyaudio_portaudio.
Sounds like a great idea, but this would make the loopback streams a special edge case, which don't always return audio like all the other streams. Considering the loopback streams are special anyway however, I think both ways would be fine from a design perspective and having an specific return value for when no audio is available could be useful I guess.
from pyaudio_portaudio.
I downloaded this version with wasapi_fill_silence but it's giving me an error in init(), saying that this parameter doesn't exist
from pyaudio_portaudio.
Could you please drop the .wheel package of this version with wasapi?
from pyaudio_portaudio.
Related Issues (20)
- Error after trying to build portaudio extension
- Supporting Python 3.8 HOT 6
- How to record microphone sound and speaker sound from desktop at the same time?
- Would this work on mac?
- Unable to find vcvarsall.bat in Windows 10 x64 Python 2.7
- Mac OS install? HOT 4
- PyAudio is not for python3.8 HOT 1
- cannot build make loopback
- stream.read only returns data when stream stops
- __init__() got an unexpected keyword argument 'as_loopback' HOT 2
- Speaker output looping back into EVERY input device's left audio channel when using Stereo Mix HOT 1
- Record soundcard output (aka "Stereo mix"): is it available only with WASAPI?
- Is it possible to get_default_output_device_info, but specify a device using WASAPI?
- pyaudio_portaudio loopback along with ASIO support for 32bit and 64 bit
- Any update for Python 3.9? HOT 3
- Is stream_callback supported?
- using loopback for the mic.
- I want to use pyaudio in multithread environment, but core dumpd.
- Windows pypi or wheel? HOT 1
- Error codes, not sure if successfull installed.
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from pyaudio_portaudio.