portaudio / python3 sounddevice
Hi, I'm trying to use "sounddevice" (with python3 in the terminal) to run on my SailfishX, in order to record audio.
After solving some issues to install the python module, I now get a runtime error that I'm not able to fix.
Installation:
- Manually installed numpy and libportaudio from OpenRepos (I installed the rpm directly, since I don't have any experiences with OpenRepos) --> https://openrepos.net/content/nieldk/portaudio, https://openrepos.net/content/rcolistete/numpy-sailfish-os
- pip3 install --user sounddevice
Usage / Errors:
python3:
import sounddevice as sd
sd.check_input_settings()
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "/home/nemo/.local/lib/python3.4/site-packages/sounddevice.py", line 601, in check_input_settings
_check(_lib.Pa_IsFormatSupported(parameters, _ffi.NULL, samplerate))
File "/home/nemo/.local/lib/python3.4/site-packages/sounddevice.py", line 2572, in _check
raise PortAudioError(errormsg, err)
I tried several combinations of settings. All the same error. Also, I tried just recording (without checking first) but also a similar error.
Is anyone using sounddevice or PyAudio or PortAudio successfully on sailfish? Can you give my any working example to record audio with python on sailfish?
I noticed Saera and espeak use PortAudio somehow but I don't think they use python.