maemo.org - Talk

maemo.org - Talk (https://talk.maemo.org/index.php)
-   Applications (https://talk.maemo.org/forumdisplay.php?f=41)
-   -   [DEVEL] Saera: Siri clone for Maemo5, Harmattan and Sailfish OS (https://talk.maemo.org/showthread.php?t=84753)

impeham 2013-08-21 11:15

Re: [DEVEL] Saera: Siri clone for Maemo5 and Harmattan
 
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)

Jannis 2013-08-21 16:25

Re: [DEVEL] Saera: Siri clone for Maemo5 and Harmattan
 
Quote:

Originally Posted by impeham (Post 1368517)
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)

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.

Vento 2013-08-21 19:12

Re: [DEVEL] Saera: Siri clone for Maemo5 and Harmattan
 
please, change the microphone icon (we need something in "Maemo"\"MeeGo" style xD)

impeham 2013-08-23 19:05

Re: [DEVEL] Saera: Siri clone for Maemo5 and Harmattan
 
Quote:

Originally Posted by Jannis (Post 1368557)
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.

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

Jannis 2013-08-25 19:59

Re: [DEVEL] Saera: Siri clone for Maemo5 and Harmattan
 
1 Attachment(s)
Quote:

Originally Posted by impeham (Post 1368976)
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

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.

impeham 2013-08-27 11:00

Re: [DEVEL] Saera: Siri clone for Maemo5 and Harmattan
 
Quote:

Originally Posted by Jannis (Post 1369316)
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.

Maybe you should open a separate thread for this :)

Kroll 2013-08-31 13:36

Re: [DEVEL] Saera: Siri clone for Maemo5 and Harmattan
 
Quote:

Originally Posted by impeham (Post 1369690)
Maybe you should open a separate thread for this :)

Definitely, and do not forget to pack it in .deb. This way you can expect more people to install and test your application!

misiak 2013-08-31 20:43

Re: [DEVEL] Saera: Siri clone for Maemo5 and Harmattan
 
Quote:

Originally Posted by Kroll (Post 1370848)
Definitely, and do not forget to pack it in .deb. This way you can expect more people to install and test your application!

and upload it to the repos;)

jalyst 2013-09-06 10:15

Re: [DEVEL] Saera: Siri clone for Maemo5 and Harmattan
 
+1 Yes please. For Freemantle AND Harmattan.

Vento 2013-09-07 10:29

Re: [DEVEL] Saera: Siri clone for Maemo5 and Harmattan
 
Is there a way to change the default microphone icon?


All times are GMT. The time now is 18:58.

vBulletin® Version 3.8.8