i'm running "python ./voicy.py" from xterm (as root) and getting the same when running
su user -c "python /opt/voicy/voicy.py" (as user)
hmm - i don't have the file "pocketsphinx.so" in /usr/lib/pyshared/python2.5 - just "hildondesktop.so" and a folder named "gtk-2.0".
Am i missing packages? searching for "pockets*" in the repositories i found a few packages - which of them should i make sure to be installed?
found the following (which are not installed on my device):
---
libsphinxbase1 - Sphinx base libraries
python-sphinxbase - Sphinx base libraries - Python module
libsphinxbase-dev - Development files for Sphinx base libraries
python-pocketsphinx - lightweight speech recognition - Python module
libpocketsphinx-dev - Development files for Pocketsphinx.
pocketsphinx-utils - lightweight speech recognition - command-line tools
python-pocketsphinx-dbg - lightweight speech recognition - Python module (debug version)
pocketsphinx-hmm-en-hub4wsj - Lightweight speech recognition - English acoustic model
pocketsphinx-lm-zh-hant-gigatdt - Lightweight speech recognition - Traditional Chinese language model
pocketsphinx-hmm-en-tidigits - lightweight speech recognition - TIDIGITS models
pocketsphinx-lm-en-hub4 - Lightweight speech recognition - HUB4 language model
pocketsphinx-zh-tidigits - lightweight speech recognition - Mandarin acoustic models
---
i also tried this code in python while open media player is playing:
import subprocess as sb
sb.call('dbus-send --dest=com.nokia.mafw.renderer.Mafw-Gst-Renderer-Plugin.gstrenderer /com/nokia/mafw/renderer/gstrenderer com.nokia.mafw.renderer.pause', shell=True)
the result is:
"Failed to open connection to "session" message bus: (null)
i'm running "python ./voicy.py" from xterm (as root) and getting the same when running
su user -c "python /opt/voicy/voicy.py" (as user)
hmm - i don't have the file "pocketsphinx.so" in /usr/lib/pyshared/python2.5 - just "hildondesktop.so" and a folder named "gtk-2.0".
Am i missing packages? searching for "pockets*" in the repositories i found a few packages - which of them should i make sure to be installed?
found the following (which are not installed on my device):
---
libsphinxbase1 - Sphinx base libraries
python-sphinxbase - Sphinx base libraries - Python module
libsphinxbase-dev - Development files for Sphinx base libraries
python-pocketsphinx - lightweight speech recognition - Python module
libpocketsphinx-dev - Development files for Pocketsphinx.
pocketsphinx-utils - lightweight speech recognition - command-line tools
python-pocketsphinx-dbg - lightweight speech recognition - Python module (debug version)
pocketsphinx-hmm-en-hub4wsj - Lightweight speech recognition - English acoustic model
pocketsphinx-lm-zh-hant-gigatdt - Lightweight speech recognition - Traditional Chinese language model
pocketsphinx-hmm-en-tidigits - lightweight speech recognition - TIDIGITS models
pocketsphinx-lm-en-hub4 - Lightweight speech recognition - HUB4 language model
pocketsphinx-zh-tidigits - lightweight speech recognition - Mandarin acoustic models
---
i also tried this code in python while open media player is playing:
import subprocess as sb
sb.call('dbus-send --dest=com.nokia.mafw.renderer.Mafw-Gst-Renderer-Plugin.gstrenderer /com/nokia/mafw/renderer/gstrenderer com.nokia.mafw.renderer.pause', shell=True)
the result is:
"Failed to open connection to "session" message bus: (null)
Taixo here provided the links where you can download these packages.
I hope I will find the time to build a deb-package for voicy to allow an easy installation.
Finally - working - thanks
i wish to use the patched version of pocketsphinx, but there is no "pocketsphinx.so" in /usr/lib/pyshared/python2.5. i searched the rootfs and optfs for this file name and these are the only results i found with a similar name:
i wish to use the patched version of pocketsphinx, but there is no "pocketsphinx.so" in /usr/lib/pyshared/python2.5. i searched the rootfs and optfs for this file name and these are the only results i found with a similar name:
Oh you are right! The file /usr/lib/gstreamer-0.10/libgstpocketsphinx.so is the one that I patched.
Attached is an updated version of voicy.
Besides some minor changes it includes the (right) patched pocketsphinx - file and a function to initiate a phone call by
dictating a name.
Oh you are right! The file /usr/lib/gstreamer-0.10/libgstpocketsphinx.so is the one that I patched.
Attached is an updated version of voicy.
Besides some minor changes it includes the (right) patched pocketsphinx - file and a function to initiate a phone call by
dictating a name.