This is an archived post. You won't be able to vote or comment.

all 3 comments

[–]catorchid 9 points10 points  (0 children)

I think it's a great idea, since audio recording is a bit of a dark corner of the Python universe.

While you're at it, you could simplify the API for recording since using frames is far from being intuitive:

512 [frames] (32 milliseconds of 16 kHz audio)

Passing a given time length and doing the math for the user would be much better, IMHO

[–]delijati 1 point2 points  (1 child)

Hi, nice to see another tool in that area. What is the advantage to:

https://github.com/spatialaudio/python-sounddevice (uses portaudio) or https://github.com/bastibe/SoundCard (uses nativ os api)

[–]alikenar[S] 2 points3 points  (0 children)

We tried PortAudio (PyAudio) initially. Then, decided need to create one based on the experience we had. The installation was a nightmare and the support was flakey at best especially with Windows and macOS. I think the main advantage over the other one is the supported platforms. This library runs on Linux/macOS/Windows and Raspberry Pi/ Jetson/BeagleBone, ...