Python speech recognition for pulseaudio
Python libraries speech_recognition and PyAudio do not support pulseaudio. Does anyone know any that do? I'm trying to make a personal assistant. Like alexa.
About this post
- Posted
- Archived
- Score
- 4 · 71% up
- Kind
- Text
- ID
- mdwhy7
6 comments
You most likely want to use something other than PulseAudio.
Pulseaudio is nice for an easy sound setup, so most people avoid having to think of drivers, and all that. But it's also very hard to bend to one's will! I've several times had to interface directly with Alsa to make a new headset or some Bluetooth audio work. That's no more though, and it really is an amazing project (PulseAudio).
You are probably looking at interfacing directly with your Soundsystem, and not PulseAudio. This would be the easiest and most stable way.
I know of JACK but haven't had the need to use it yet: https://wiki.archlinux.org/index.php/JACK_Audio_Connection_Kit
Refer to this page https://wiki.archlinux.org/index.php/Sound_system
You mention PyAudio (which I can't recommend, it was started in 2006 and is still at v.0.2 making me think little development has occurred over the years, https://github.com/jleb/pyaudio).
FYI PyAudio built on this software: http://portaudio.com/ which interfaces directly with Alsa/OSS (refer to the sounds system page, I'm not saying Open-Source Software here) which PulseAudio also does.
https://github.com/bambocher/pocketsphinx-python
Is a project on standby (https://cmusphinx.github.io/2019/10/update/) and refers to this project instead: https://alphacephei.com/en/#opensource
Here is the link to get started: https://alphacephei.com/vosk/
I would also refer to AI as the current way to go. So maybe go look into TensorFlow, and their beginner guides to get started. Speech recognition has had awesome advances in recent years, and it's all due to AI models being trained on awesome parameters, with no other than the best computer scientists in the world working to improve them. I actually had no idea there were non-big-tech projects out there.
Godspeed my friend. I appreciate reading up on this for a great morning, having some coffee, and learning a few things about the current state of speech recognition.
I'll check this out when I have time
You probably don't want to use Python for this. Those were my cents.
How so? The language I'm most familiar at is Python though
It's an interpreted language, which I can almost guarantee isn't used by any of the existing assistants.
Now, if you're just looking to have some fun and implement some voice commands, Python might be all good. That is if you can make it interface with your computer. I'll have a look man, it actually sounds interesting. But yea, I know it's 'easy' to implement the Google assistant into things one is doing, but that's surely not what you're trying here? It can react to voice commands and do arbitrary things, but utilizing the already existing voice recognition software.
let me know how it goes! Best of luck!