portaudio

Python PyAudio installation on windows problems in importing PortAudio V19

▼魔方 西西 提交于 2019-12-11 13:40:04
问题 I'm trying to install PyAudio for an application to record audio clips from microphone input. I installed PyAudio from executable file (Windows 7, python 2.6). However when I try to import this library in my code, I get the following error. Please build and install the PortAudio Python bindings first. I tried the solution provided at Python PyAudio installation problems (with PortAudio) but I got the following error message when I installed it using the executable given at http://www.lfd.uci

pyaudio associate a sample with system clock?

送分小仙女□ 提交于 2019-12-11 13:07:28
问题 I have an application where I have some other signal referenced to the system clock ( time.time() ) and I would like to record the audio input and figure out when it happened relative to the other signal. At first I tried using the callback API, thinking that they would occur right when the data was available from the sound card. You would expect the callbacks to occur regularly with a difference of roughly the sample period * number of samples, but as other have noted, this isn't the case. I

Configuring multiple devices in PortAudio: Invalid device error

我的梦境 提交于 2019-12-11 11:16:47
问题 This query is regarding the Portaudio framework. A little background before I ask the question:I am working on an application in PortAudio to output audio through a multichannel(=8) device. However, the device I am using does not expose itself as a single 8-channel device but instead shows up in my device-list as 4 stereo devices. On searching for an approach to handle this, I got to know that WinMME in PortAudio supports multiple devices. Now, I went through the appropriate header file("pa

PyAudio (PortAudio issue) Python

試著忘記壹切 提交于 2019-12-11 06:55:20
问题 I installed pyaudio with anaconda python. Using conda install pyaudio on windows. It said it installed and it also installed PortAudio with it. However, when I create my file and run it now I get the following issue. I have no idea what is going on. Could not import the PyAudio C module '_portaudio'. Traceback (most recent call last): File "C:\Users\This PC\Desktop\Py\demo.py", line 2, in <module> import pyaudio File "C:\Users\This PC\Anaconda3\lib\site-packages\pyaudio.py", line 116, in

Any help on correct syntax in Swift to access a “typedef void PaStream;” from a C file?

拜拜、爱过 提交于 2019-12-11 03:39:12
问题 I have compiled and imported a dylib C Library called portaudio (PortAudio website) into an Xcode 6.1 Swift project, all the functions / types are accessible except for one which is typedef void PaStream; I am having trouble understanding how to use that in Swift, in C I declare it like: PaStream *audioStream = NULL; Can anybody help on the Swift equivalent as I get a warning saying undeclared Type / unresolved identifier, it looks like Swift can not bridge a typedef void xyz; ? Many thanks

Capture global Audio Output in C++ (Portaudio)

自作多情 提交于 2019-12-11 03:06:35
问题 I have one question: Is there any possibillity to record the global Windows Output using Portaudio? I have read that you can change the input device to the actual output device but that's not working at all. So is there any other possibillity to record the output sound? I'd like to prefer using Portaudio but I'm not afraid to use other APIs. It should be a cross-platform API. Best Regards, Dennis 回答1: I believe that this can be done with WASAPI Loopback Recording PortAudio has a WASAPI back

print floats from audio input callback function

穿精又带淫゛_ 提交于 2019-12-11 02:42:36
问题 I'm working on a university project that involves a lot of programming in C, especially with Portaudio & ALSA. At the moment i'm trying to make a callback function to pass audio through, standard input/output job. I was wondering if anybody could tell me how to print the floats from my inputBuffer to display in real time in the terminal? Here is the internal structure of my callback function so far. Thanks very much for your help in advance! #define SAMPLE_RATE (44100) #define PA_SAMPLE_TYPE

Further understanding of fftw processing of portaudio signals

白昼怎懂夜的黑 提交于 2019-12-11 00:24:32
问题 I want to analyze a signal I get from my microphone port by using portaudio and fftwpp . For that I followed the explanation provided here. My questions concerning that are now: There it is stated that I should chunk a window out of the incoming data. My data is already chunked, after I am only recording for a short time, and afterwards process it. Thus I am assuming that a rectangular window is already applied to my data. Is that correct? Now I am getting 200k data points, should I directly

Set audio input level using portaudio

谁都会走 提交于 2019-12-10 19:48:00
问题 I am dealing with a legacy code that uses portaudio on windows. The code grabs audio from desktop mic and has ability to configure input volume. It worked perfectly under windows xp, but tuning audio input level is broken under windows 7, changing the parameter has no effect on output audio stream. Code do the following to adjust volume mp_mixer = Px_OpenMixer(mp_inputStream, m_dev_num); if(mp_mixer) Px_SetInputVolume(mp_mixer, m_volume); I have discovered, that underling winmme functions

Special characters in audio devices name : Pyaudio

北城以北 提交于 2019-12-10 10:42:49
问题 I'm currently facing a hard problem. I need to use Pyaudio on a french windows environnement and the name of the audio devices contains é or è by default. This is the error I get when a special character is present: u=self.p.get_device_info_by_index(e) File "C:\Python27\lib\site-packages\pyaudio.py", line 977, in get_device_info_ by_index pa.get_device_info(device_index) File "C:\Python27\lib\site-packages\pyaudio.py", line 987, in _make_device_inf o_dictionary print device_info.name