[Linux] xbmcvc - a program for controlling XBMC with simple voice commands

  Thread Rating:
  • 1 Votes - 5 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Post Reply
Kempniu Offline
Member
Posts: 66
Joined: Apr 2011
Reputation: 0
Post: #1
I have created a small Linux utility called xbmcvc for controlling XBMC with simple voice commands. It uses CMU Sphinx for speech recognition.

You can find installation instructions at the project's main page at GitHub. I've done my best to ensure the application is stable, yet without a wider user base I cannot guarantee it won't occasionally segfault or work incorrectly.

Dharma is not supported. Any Eden beta version will suffice (JSON-RPC API version 3 or newer is required).

Anyone who would like to try the program out should feel free to do so. Even though application's capabilities are currently modest, to say the least, it can already do some useful stuff.

For further information, please consult the README file (available at the project's main page at GitHub).
(This post was last modified: 2013-01-24 15:01 by Kempniu.)
find quote
pedgaard Offline
Junior Member
Posts: 10
Joined: Feb 2012
Reputation: 0
Post: #2
Gonna try this out right now on my ubuntu setup, hope I can get through the technical parts.
find quote
Kempniu Offline
Member
Posts: 66
Joined: Apr 2011
Reputation: 0
Post: #3
Just write if you have any difficulties. I'm still learning pocketsphinx myself, but I might be able to help you resolve any problems with setting up xbmcvc.
find quote
regiss Offline
Junior Member
Posts: 4
Joined: Apr 2012
Reputation: 0
Post: #4
Hi there,

I've followed your great project xbmcvc. All went smooth till I got to final execution of xbmcvc.

It says Fatal error at xbmcvc.c:514: Failed to open audio device
I am running Mythbuntu 11.10 32bit, I've added Mythtv to audio group.

Do you have any idea how can I troubleshoot this error.

Thank is advance. Regards Ondra
find quote
Kempniu Offline
Member
Posts: 66
Joined: Apr 2011
Reputation: 0
Post: #5
Can you try running xbmcvc with root privileges? It looks like there's something wrong with either permissions or ALSA configuration on your system.
find quote
regiss Offline
Junior Member
Posts: 4
Joined: Apr 2012
Reputation: 0
Post: #6
I will let you know when I have a possibility to run it as a root. I've found out that xbmcvc can be run with -D parameter to specify name of the sound card.
What is the format for name of sound card. Can you give me some example.
Thx Ondra
find quote
Kempniu Offline
Member
Posts: 66
Joined: Apr 2011
Reputation: 0
Post: #7
It looks like an ALSA issue. If you don't specify the device (or PCM, using ALSA vocabulary) using the -D command line switch, xbmcvc tries to access ALSA's default PCM which translates to hw:0,0. You can read more about ALSA PCMs here:

http://www.alsa-project.org/main/index.p...CM_devices

If you are unable to access the default device even with root privileges, it points towards an ALSA issue. To confirm that, you can try running the following commands:

Code:
arecord -r 16000 test.wav
arecord -D plughw:0,0 -r 16000 test.wav

If you get the same error, it means your ALSA configuration is probably broken and it's not an xbmcvc issue. You can list all available PCMs in your system by running "arecord -L".
(This post was last modified: 2012-04-03 09:07 by Kempniu.)
find quote
simple972 Offline
Junior Member
Posts: 2
Joined: Apr 2012
Reputation: 0
Post: #8
currently I have vox on win7 64 w/eden. I am a qaudriplegic so I always use vc and will be testing soon and often.

If I use xbmcvc with xbmcbuntu on a sdhc would the speed & performance be noticable?
find quote
Kempniu Offline
Member
Posts: 66
Joined: Apr 2011
Reputation: 0
Post: #9
If you're referring to VoxCommando, you'll be surprised how little xbmcvc is capable of Smile But regarding your question, I don't expect xbmcvc to impact your system's performance in a noticable way, though you won't know for sure without testing.

PS. Note there has also been a "bleeding edge" branch present on GitHub for some time now with a few more commands than the "master" branch.
(This post was last modified: 2012-04-25 07:08 by Kempniu.)
find quote
tpleztier Offline
Junior Member
Posts: 17
Joined: Feb 2012
Reputation: 0
Post: #10
Will this version run on the XBMC 12 without modification? I haven't had any success thus far, but my remote control currently isn't working at all with Beta1 so XBMC may be the culprit. Personally, I'd like to see more use of speech recognition despite its novelty. True, speech recognition has quite a ways to go to match the performance of an IR remote control.
(This post was last modified: 2012-11-17 11:51 by tpleztier.)
find quote
Kempniu Offline
Member
Posts: 66
Joined: Apr 2011
Reputation: 0
Post: #11
Basic stuff should work, though you should expect problems with some commands due to Frodo API changes. I'll probably update the app some time in the predictable future, though the lack of interest (while expected) isn't exactly motivating Smile
find quote
tpleztier Offline
Junior Member
Posts: 17
Joined: Feb 2012
Reputation: 0
Post: #12
(2012-11-19 10:56)Kempniu Wrote:  Basic stuff should work, though you should expect problems with some commands due to Frodo API changes. I'll probably update the app some time in the predictable future, though the lack of interest (while expected) isn't exactly motivating Smile

Actually, I'm having difficulty with other speech recognition applications as well, e.g. Speechlion. Many distributions of GNU/Linux have recently switched to OpenJDK due to Oracle's shenanigans and OpenJDK SEEMS to have difficulty with applications using input via microphones. I've since switched to Oracle's version of JDK and still haven't been able to process input via a microphone.... I'll keep working on the issue, but consider my request for a new update of xbmcvc as motivation. Wink
find quote
schumi2004 Offline
Posting Freak
Posts: 1,459
Joined: Aug 2011
Reputation: 15
Post: #13
Anyone got this working on OpenELEC? (Frodo)
find quote
NordishByNature Offline
Member
Posts: 66
Joined: Nov 2010
Reputation: 0
Post: #14
Hello,

just stubbled upon this thread. I think speech recognition is ONE of still missing features in XBMC.

I would like to help on updating it to Frodo's new API, but I am not a C++ coder at all. I could help with bug testing and so on.

Kempniu: This is a good feature, please keep working on it! When it becomes more useable more people will like it!
find quote
Kempniu Offline
Member
Posts: 66
Joined: Apr 2011
Reputation: 0
Post: #15
I do appreciate your interest. It's just that work and family stuff seems to use up most of my time these days and I really can't promise any deadlines. Be assured, though, that I haven't abandoned this project just yet Smile
find quote
Post Reply