ajbogh / blather

Python application for speech recognition using pocketsphinx and gstreamer. A GUI is available for both Qt and Gtk.
29 stars 9 forks source link

Update code to use gstreamer 1.0 #23

Closed shawnggraham closed 6 years ago

shawnggraham commented 6 years ago

This program is the best of its kinds but will not work after updating to new stable Debian based distributions (Debian, Ubuntu, Linux mint..yada yada yada) as they now use a newer gstreamer plugin. Im no developer and there may be ways of creating a soft link with the proper parameters but i have yet to figure out what that would be. This program is the only one i have found that allows you to add your own canned trigger sentences and then input the code you want executed. I used it for 2 years and It worked flawlessly because you can be very specific about what it should listen to. Because of this it is very helpful for people with disabilities and just need the computer to perform certain issues...simple stuff like "play music" , "next track" ...or "open tonight's entertainment". If i can help out with getting this program updated please let me know.

shawnggraham commented 6 years ago

I have reached out to everyone. Is there NO way of getting this operational??

ajbogh commented 6 years ago

Sorry @shawnggraham. I have not spent as much time on this program as I would have liked. We were in the process of updating to Python 3, as I think a couple PRs and branches might show, but I don't think we ever got around to finishing it. I'd be extremely supportive of having more contributors, like yourself, if you're willing to submit some PRs.

I do plan on tackling this code once again, but of course other priorities had gotten in the way, and I apologize for that.

shawnggraham commented 6 years ago

Thanks for the reply and that information. I've been living without it but I have to tell you blather is by far the most usable and reliable voice command issuing application i have ever used. I work with scada systems where high availability and quick access to information is a must. i can build canned execution of multiple applications and information collection and display and then tie it all together to be executed after just verbally speaking a trigger phrase. Im pretty good with database and php programming. Ive built several web application front ends for database management and information gathering. I was actually going to start working on a web based tool that could be run from the server where blather was running that would allow you to build executable paths and plug in the trigger phrase and then run the lexion submitial and download process. Instead of fumbling around with the text files this tool would run and make sure there were not already possible conflicting trigger phrases, and some syntax checking could also be added.

At this point it seems that the gstreamer plugin portion of it is just...well there was a version change. I wish i knew more about this I would help out but..im more of a system admin than a programmer. I can tell you that after downloading the most receint version that it seems to try and use a different voice recognition tool. Something native to python. the error im getting at this point is Traceback (most recent call last): File "./Blather.py", line 284, in blather = Blather(options) File "./Blather.py", line 41, in init from Recognizer import Recognizer File "/home/sgraham/blather-update_gstreamer/Recognizer.py", line 11, in

m = sr.Microphone() File "/usr/local/lib/python2.7/dist-packages/speech_recognition/__init__.py", line 79, in __init__ self.pyaudio_module = self.get_pyaudio() File "/usr/local/lib/python2.7/dist-packages/speech_recognition/__init__.py", line 113, in get_pyaudio raise AttributeError("PyAudio 0.2.11 or later is required (found version {})".format(pyaudio.__version__)) AttributeError: PyAudio 0.2.11 or later is required (found version 0.2.8) On Wed, Aug 8, 2018 at 4:59 PM Allan Bogh wrote: > Sorry @shawnggraham . I have not spent > as much time on this program as I would have liked. We were in the process > of updating to Python 3, as I think a couple PRs and branches might show, > but I don't think we ever got around to finishing it. I'd be extremely > supportive of having more contributors, like yourself, if you're willing to > submit some PRs. > > I do plan on tackling this code once again, but of course other priorities > had gotten in the way, and I apologize for that. > > — > You are receiving this because you were mentioned. > Reply to this email directly, view it on GitHub > , or mute > the thread > > . > -- Shawn Graham 209-743-1034 shawnggraham@gmail.com Resume at http://resume.booksnmore.com
ajbogh commented 6 years ago

I'm going to be at a conference and then on vacation shortly after, so I won't be available to review this, however your request for help has given me the drive to work on this again. I've been playing around with the idea of making a NodeJS app, as well as updating this code. Perhaps Blather could nix the frontend and run purely in the terminal, then we wouldn't need things like Python's UI framework. Those are just thoughts of course. The main point is I am going to make another attempt at fixing it for Ubuntu 18.04 and other OSes using Python 2.7+ and 3.

shawnggraham commented 6 years ago

Right on. Ya you know i always did just run it a minimized terminal window. The gui was sort or plagued with little irritating issues, and since i was controlling the machine with vocals anyway, it seemed to be fine to just have an extra terminal just running somewhere off my workspace. Personally i used that program much in the same way people use alexis, the nice part about blather is that it is scaleable to do soooo much more. I mean i have made desktops for elderly, handicapped, and then just straight up just lazy people and in environments where you are using your hands for other things, its nice to be able to just bark an order at the computer and have it perform a highly tailored task. My favorite place to use it personally is the hotub. I hate having to type in urls or us a mouse to like pull up netflix..."computer open netflix, computer scroll down" sounds like im compleatly lazy but honestly, im usually working with something else when i need something to happen without me putting hands on an input device. Anyway, I have some other ideas and input enhancments that i would like to explore as well, give me a shout when you are back.. give me a call if you want 209-743-1034 Calfornia time. Thanks for the response.

On Fri, Aug 10, 2018 at 12:11 AM Allan Bogh notifications@github.com wrote:

I'm going to be at a conference and then on vacation shortly after, so I won't be available to review this, however your request for help has given me the drive to work on this again. I've been playing around with the idea of making a NodeJS app, as well as updating this code. Perhaps Blather could nix the frontend and run purely in the terminal, then we wouldn't need things like Python's UI framework. Those are just thoughts of course. The main point is I am going to make another attempt at fixing it for Ubuntu 18.04 and other OSes using Python 2.7+ and 3.

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/ajbogh/blather/issues/23#issuecomment-411996395, or mute the thread https://github.com/notifications/unsubscribe-auth/AEI9inw-N015bdWUgJ4mVt2QAGxeqJHbks5uPTIqgaJpZM4U-BZH .

-- Shawn Graham 209-743-1034 shawnggraham@gmail.com Resume at http://resume.booksnmore.com

ajbogh commented 6 years ago

Thanks @shawnggraham. I got your number now. Please feel free to remove it from your comment so you don't get random calls from other people. I'll probably ping you with an SMS once I get back to work on it and maybe get some feedback.

ajbogh commented 6 years ago

@shawnggraham. I'm going to be deprecating this codebase and focusing more effort on a NodeJS system based on it. Please find the new system in the link below. The installation should be extremely simple, as long as you've already installed NodeJS on your device. The commands config file is similar, but reformatted to be JSON-like (it's a js file).

Please help me by beta testing this new program while I work on deprecating this one.

https://github.com/ajbogh/norman

shawnggraham commented 6 years ago

Hey, i wasnt able to use get.

Cloning into 'norman'... Warning: Permanently added the RSA host key for IP address '192.30.255.112' to the list of known hosts. Permission denied (publickey). fatal: Could not read from remote repository.

Maybe i need a login of some sort? Anyway i just downloaded the zip and extracted to norman-master.

ran npm and got the following error

sgraham-toughbook norman-master # npm install npm WARN lifecycle norman@0.0.1~install: cannot run in wd %s %s (wd=%s) norman@0.0.1 npm run install:sphinxbase && npm run install:pocketsphinx /home/sgraham/norman-master npm WARN norman@0.0.1 No repository field.

I tried installing the sphinxbase app but in ubuntu it wants sphinbase-utils, installed that with apt but still get the same error from npm install

On Wed, Aug 29, 2018 at 12:14 AM Allan Bogh notifications@github.com wrote:

@shawnggraham https://github.com/shawnggraham. I'm going to be deprecating this codebase and focusing more effort on a NodeJS system based on it. Please find the new system in the link below. The installation should be extremely simple, as long as you've already installed NodeJS on your device. The commands config file is similar, but reformatted to be JSON-like (it's a js file).

Please help me by beta testing this new program while I work on deprecating this one.

https://github.com/ajbogh/norman

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/ajbogh/blather/issues/23#issuecomment-416849876, or mute the thread https://github.com/notifications/unsubscribe-auth/AEI9iueIMjoRT9Lq6WTg0-BmFrF33OfPks5uVj9BgaJpZM4U-BZH .

-- Shawn Graham 209-743-1034 shawnggraham@gmail.com Resume at http://resume.booksnmore.com

ajbogh commented 6 years ago

Moved issue to ajbogh/norman#9.