Tino Wagner

Results 28 comments of Tino Wagner

There is an example with live resampling of synthetic data using the callback API [here](https://github.com/tuxu/python-samplerate/blob/master/examples/play_modulation.py). The code would be quite similar using audio input and [sounddevice.InputStream](https://python-sounddevice.readthedocs.io/en/0.3.7/#sounddevice.InputStream). If you already get...

You need to convert the input data to a NumPy array first. This can be easily done with `np.fromstring`, see [here](http://stackoverflow.com/questions/22636499/convert-multi-channel-pyaudio-into-numpy-array) for an example.

The code below should work as expected. ```python from __future__ import print_function, division import numpy as np import pyaudio import samplerate as sr input_rate = 44100 target_rate = 16000 chunk...

If `resampled_data` is all zeros, then likely also `data` is. This would hint at a problem with the input recorded by pyaudio. Please check. The above code works as expected...

Interesting. I'll check the compiler options for the included binaries. In the meantime, you could install libsamplerate from Homebrew, and either replace the included binary (see [here](https://github.com/tuxu/python-samplerate/tree/master/samplerate/_samplerate_data)) or remove it...

Could you try to install `libsamplerate` through [Homebrew](https://brew.sh)? ``` $ brew install libsamplerate ``` The binary shipped with `python-samplerate` unfortunately still contains instructions for a newer processor generation.

Yes, indeed. I took the binary from a Homebrew installation on my 2014 MacBook Pro (3 GHz, Core i7). Unfortunately the binary was optimized for this CPU when I installed...

Sorry for the radio silence here. I haven't had much time to dedicate to this project. I welcome contributions and would like to keep it alive. The messiest part of...

@fakufaku This looks pretty neat! The only downside about using `pybind11` is that you will have to build new wheels for every Python release. I needed a somewhat portable package...

Sounds great! I have also just added you as a collaborator for this repo.