![]() |
2013-08-21
, 16:25
|
Posts: 21 |
Thanked: 102 times |
Joined on Apr 2010
|
#662
|
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)
![]() |
2013-08-23
, 19:05
|
Posts: 669 |
Thanked: 433 times |
Joined on May 2010
|
#664
|
Yes you are obviously missing some packages.
In http://talk.maemo.org/showpost.php?p...&postcount=652 I listed what packages are needed.
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.
![]() |
2013-08-25
, 19:59
|
Posts: 21 |
Thanked: 102 times |
Joined on Apr 2010
|
#665
|
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:
/usr/lib/gstreamer-0.10/libgstpocketsphinx.so
/usr/lib/libpocketsphinx.so.1
/usr/lib/libpocketsphinx.so.1.1.0
![]() |
2013-08-27
, 11:00
|
Posts: 669 |
Thanked: 433 times |
Joined on May 2010
|
#666
|
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.
![]() |
2013-08-31
, 13:36
|
Posts: 637 |
Thanked: 445 times |
Joined on Dec 2009
@ Kaliningrad, Russia
|
#667
|
![]() |
2013-08-31
, 20:43
|
Posts: 805 |
Thanked: 1,605 times |
Joined on Feb 2010
@ Gdynia, Poland
|
#668
|
Definitely, and do not forget to pack it in .deb. This way you can expect more people to install and test your application!
![]() |
Tags |
saera, speech-to-text |
|
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)
Last edited by impeham; 2013-08-21 at 13:21.