Reply to topic

[Simon] Recognition reports missing backend

User avatar Gallaecio
Registered Member
Posts
82
Karma
0
OS
When Simon establishes the connection to Simond, I get an error window with the following content:

The recognition reported the following error:
<html><body><p>The required speech recognition backend for this model ("%1") is not available.</p><p>Please install it to continue.</p><p>(<a href="http://userbase.kde.org/Simon/Back_ends">More information</a>).</html>


The text is presented that way: raw HTML code, and the %1 bit, which seems to be the crucial part, is not replaced by an actual value.

I am using:
  • Simon 0.4
  • Jovie 4.9.4 (I’m assuming this is the backend the error is talking about?)
  • Sphinx + PocketSphinx 0.8
  • SphinxTrain 1.0.8

To be noted that I just upgraded from Simon 0.3 (which I had not used for that long, and did not get working since I did not get HTK and support for Phinx was not implemented).

I had no luck looking at the Troubleshooting Guide, sadly.
bedahr
Moderator
Posts
101
Karma
0
OS
Hi!

I think you may be using an HTK base model in which case you'd need to install Julius for recognition.
Either select a different base model or install Julius (it's free software).

I fixed the missing replacement string (%1) but the HTML should of course also be fixed - I opened a bug for that (312657) and will take care of that later.

Thanks for your report.

Best regards,
Peter
User avatar Gallaecio
Registered Member
Posts
82
Karma
0
OS

Sat Jan 05, 2013 11:17 am
I’ve installed Julius but it makes no difference. I closed both Simon and Simond, reopened them, but no luck.

Since I didn’t mind loosing the collected data up until now, I did a fresh start:

killall simon simond
find ~/.kde4 -name "*simon*" -exec rm -rf {} \;


Same results. As soon as I record a word, and the progress label says “Compiling model”, it stays at 20% for a while, and then returns the error message above.

Anyway, I’m in this just for the fun; I‘ve been translating Simon into Galician, and though I would give it a try, to have fun and test the translation. I guess I will build the latest source to see what the message looks like now with the %1 replaced.

By the way, I’ve opened KSimond and I am unable to change the backend, the combobox says HTK/Julius (I do not have HTK), and it’s disabled, so I can’t change it. Is there something special that needs to be done when building Simon to be able to change that? I think I did not have Sphinx when I built Simon, may that be the reason? I guess I will find out when I rebuild it, though.
bedahr
Moderator
Posts
101
Karma
0
OS
Ah, yes. That makes sense too.
SPHINX is an optional compile time dependency. If it wasn't installed when building Simon, this optional feature will not be built.

Best regards,
Peter
User avatar jramirez
Registered Member
Posts
25
Karma
0
OS
Why i need to install before compiling simon 4? (HTK, julius, etc..)
bedahr
Moderator
Posts
101
Karma
0
OS
jramirez wrote:Why i need to install before compiling simon 4? (HTK, julius, etc..)

Extract the source code to an empty folder. Change the working directory to that folder and create another folder called "build". Then change into that (empty) folder and run "cmake .." (where ".." should be the Simon source folder).

This will start the cmake configuration. At the end of the run, you'll see a list of optional dependencies. It will also tell you a one-line description of each package and whether or not it was found on your system.

Best regards,
Peter
User avatar jramirez
Registered Member
Posts
25
Karma
0
OS
bedahr wrote:
jramirez wrote:Why i need to install before compiling simon 4? (HTK, julius, etc..)

Extract the source code to an empty folder. Change the working directory to that folder and create another folder called "build". Then change into that (empty) folder and run "cmake .." (where ".." should be the Simon source folder).

This will start the cmake configuration. At the end of the run, you'll see a list of optional dependencies. It will also tell you a one-line description of each package and whether or not it was found on your system.

Best regards,
Peter

I installed almost everything, I couldn't find how to install qaccessibilityclient and PocketSphinx. I compiled PocketSphinx but simon compilation could not located in my system.

Can you show me how to install PocketSphinx? maybe i missing something.

Yhanks for your time, have a good day.
bedahr
Moderator
Posts
101
Karma
0
OS
Did you install PocketSphinx version >= 0.8.0? Simon requires the latest version of SPHINX.

It should be picked up automatically - otherwise you can also set the relevant variables manually: Run "ccmake ." in the build folder and set POCKETSPHINX_INCLUDE_DIR and POCKETSPHINX_LIBRARIES to do that.

Best regards,
Peter
User avatar jramirez
Registered Member
Posts
25
Karma
0
OS
It's working now!! :D

Thanks for your time, everything it's working fine.

Only one more question, the program learn or train whichout using the training mode?
When i use the training mode it says me that maybe my mic is using mic boost, maybe the problem is related when i use alsamixer the first time because the default installation didn't detect me my sound devices, so i turn it on everything and i l increased all.

thank you again for your time Peter.
bedahr
Moderator
Posts
101
Karma
0
OS
jramirez wrote:It's working now!! :D
Thanks for your time, everything it's working fine.

Good to hear.

jramirez wrote:Only one more question, the program learn or train whichout using the training mode?
When i use the training mode it says me that maybe my mic is using mic boost, maybe the problem is related when i use alsamixer the first time because the default installation didn't detect me my sound devices, so i turn it on everything and i l increased all.

That warning message tells you that the ratio of speech vs background noise is rather low.
This can be either a result of a wrongly configured mic (lots of digital amplification) or "just" a bad mic.

Please double check your settings (refer to the documentation of whatever mixer you're using) and consider using a different microphone if the recognition rate is poor.

You can turn off the warning about that in Simon by ticking the "Don't show this again" box, btw.

Best regards,
Peter
hasufell
Registered Member
Posts
5
Karma
0
I have the same issue and I cannot solve it.

I have pocketsphinx-0.8, sphinxbase-0.8 and sphinxtrain-1.0.8 installed.
Simon is successfully linked against /usr/lib64/libpocketsphinx.so.1 and
I can change all the stuff under "Speech Model Compilation". Some of the binaries are not located in /usr/bin, but in /usr/libexec/sphinxtrain so I had to fix those entries. Backend is set to CMU Sphinx.

I have downloaded "[EN/H4W/SPHINX] HUB4 WSJ" acoustic model and "[EN/H4W] Keyboard" scenario.
Now when it wants to synchronize I get that message. https://dev.gentoo.org/~hasufell/simonbug.png
Nothing useful in stdout/stderr.
bedahr
Moderator
Posts
101
Karma
0
OS
Hi hasufell,

If you run "cmake ." in your build folder, are the optional SPHINX packets found? Could you please paste the complete output?

Even if the binary is linked to the library, the preprocessor symbol might not have been set correctly during the build. Have you tried doing a clean re-built of Simon?

Best regards,
Peter
hasufell
Registered Member
Posts
5
Karma
0
bedahr
Moderator
Posts
101
Karma
0
OS
hasufell wrote:https://dev.gentoo.org/~hasufell/CMakeCache.txt


It's SPHINX >= 0.8 (the latest version), right?

Was it picked up automatically or did you set it manually? (that's why I asked for the cmake log - not the cache, btw)

Have you tried doing a clean rebuild?

Best regards,
Peter
hasufell
Registered Member
Posts
5
Karma
0
yes, it's the latest version

Code: Select all
cmake --no-warn-unused-cli -C /var/tmp/portage/app-accessibility/simon-0.4.0/work/simon-0.4.0_build/gentoo_common_config.cmake -G Unix Makefiles -DCMAKE_INSTALL_PREFIX=/usr -DSIMON_LIB_INSTALL_DIR=/usr/lib64 -DBackendType=both -DWITH_KdepimLibs=OFF -DWITH_LibSampleRate=OFF -DCMAKE_BUILD_TYPE=Gentoo -DCMAKE_INSTALL_DO_STRIP=OFF -DCMAKE_USER_MAKE_RULES_OVERRIDE=/var/tmp/portage/app-accessibility/simon-0.4.0/work/simon-0.4.0_build/gentoo_rules.cmake  /var/tmp/portage/app-accessibility/simon-0.4.0/work/simon-0.4.0
Not searching for unused variables given on the command line.
loading initial cache file /var/tmp/portage/app-accessibility/simon-0.4.0/work/simon-0.4.0_build/gentoo_common_config.cmake
-- The C compiler identification is GNU 4.6.3
-- The CXX compiler identification is GNU 4.6.3
-- Check for working C compiler: /usr/lib64/ccache/bin/x86_64-pc-linux-gnu-gcc
-- Check for working C compiler: /usr/lib64/ccache/bin/x86_64-pc-linux-gnu-gcc -- works
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Check for working CXX compiler: /usr/lib64/ccache/bin/x86_64-pc-linux-gnu-g++
-- Check for working CXX compiler: /usr/lib64/ccache/bin/x86_64-pc-linux-gnu-g++ -- works
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Looking for Q_WS_X11
-- Looking for Q_WS_X11 - found
-- Looking for Q_WS_WIN
-- Looking for Q_WS_WIN - not found.
-- Looking for Q_WS_QWS
-- Looking for Q_WS_QWS - not found.
-- Looking for Q_WS_MAC
-- Looking for Q_WS_MAC - not found.
-- Found Qt-Version 4.8.4 (using /usr/bin/qmake)
-- Looking for XOpenDisplay in /usr/lib64/libX11.so;/usr/lib64/libXext.so;/usr/lib64/libXft.so;/usr/lib64/libXau.so;/usr/lib64/libXdmcp.so;/usr/lib64/libXpm.so
-- Looking for XOpenDisplay in /usr/lib64/libX11.so;/usr/lib64/libXext.so;/usr/lib64/libXft.so;/usr/lib64/libXau.so;/usr/lib64/libXdmcp.so;/usr/lib64/libXpm.so - found
-- Looking for gethostbyname
-- Looking for gethostbyname - found
-- Looking for connect
-- Looking for connect - found
-- Looking for remove
-- Looking for remove - found
-- Looking for shmat
-- Looking for shmat - found
-- Looking for IceConnectionNumber in ICE
-- Looking for IceConnectionNumber in ICE - found
-- Found X11: /usr/lib64/libX11.so
-- Looking for include file pthread.h
-- Looking for include file pthread.h - found
-- Looking for pthread_create
-- Looking for pthread_create - not found.
-- Looking for pthread_create in pthreads
-- Looking for pthread_create in pthreads - not found
-- Looking for pthread_create in pthread
-- Looking for pthread_create in pthread - found
-- Found Threads: TRUE 
-- Found OpenSSL: /usr/lib64/libssl.so;/usr/lib64/libcrypto.so (found version "1.0.1c")
-- Looking for _POSIX_TIMERS
-- Looking for _POSIX_TIMERS - found
-- Found Automoc4: /usr/bin/automoc4 
-- Found Perl: /usr/bin/perl (found version "5.12.4")
-- Found Phonon: /usr/include (Required is at least version "4.3.80")
-- Performing Test _OFFT_IS_64BIT
-- Performing Test _OFFT_IS_64BIT - Success
-- Performing Test HAVE_FPIE_SUPPORT
-- Performing Test HAVE_FPIE_SUPPORT - Success
-- Performing Test __KDE_HAVE_W_OVERLOADED_VIRTUAL
-- Performing Test __KDE_HAVE_W_OVERLOADED_VIRTUAL - Success
-- Performing Test __KDE_HAVE_GCC_VISIBILITY
-- Performing Test __KDE_HAVE_GCC_VISIBILITY - Success
-- Found KDE 4.10 include dir: /usr/include
-- Found KDE 4.10 library dir: /usr/lib64
-- Found the KDE4 kconfig_compiler preprocessor: /usr/bin/kconfig_compiler
-- Found automoc4: /usr/bin/automoc4
-- Found Qt-Version 4.8.4 (using /usr/bin/qmake)
-- Found X11: /usr/lib64/libX11.so
-- Found Qwt: /usr/lib64/libqwt6.so
-- Found ALSA: /usr/lib64/libasound.so 
CMake Warning at /usr/share/apps/cmake/modules/MacroOptionalFindPackage.cmake:32 (find_package):
  By not providing "FindQAccessibilityClient.cmake" in CMAKE_MODULE_PATH this
  project has asked CMake to find a package configuration file provided by
  "QAccessibilityClient", but CMake did not find one.

  Could not find a package configuration file provided by
  "QAccessibilityClient" with any of the following names:

    QAccessibilityClientConfig.cmake
    qaccessibilityclient-config.cmake

  Add the installation prefix of "QAccessibilityClient" to CMAKE_PREFIX_PATH
  or set "QAccessibilityClient_DIR" to a directory containing one of the
  above files.  If "QAccessibilityClient" provides a separate development
  package or SDK, be sure it has been installed.
Call Stack (most recent call first):
  CMakeLists.txt:56 (macro_optional_find_package)


-- Found PkgConfig: /usr/bin/pkg-config (found version "0.28")
-- checking for module 'sphinxbase'
--   found sphinxbase, version 0.8
-- Found SphinxBase
-- Found Pocketsphinx: /usr/lib64/libpocketsphinx.so 
-- BackendType='both'

-----------------------------------------------------------------------------
-- The following external packages were located on your system.
-- This installation will have the extra features provided by these packages.
-----------------------------------------------------------------------------
   * Sphinxbase - Open source toolkit for speech recognition
   * PocketSphinx - PocketSphinx is a small-footprint continuous speech recognition system
   * OpenCV - OpenCV (Open Source Computer Vision) is a library of programming functions for real time computer vision

-----------------------------------------------------------------------------
-- The following OPTIONAL packages could NOT be located on your system.
-- Consider installing them to enable more features from this software.
-----------------------------------------------------------------------------
   * LibSampleRate  <http://www.mega-nerd.com/SRC/>
     Resampling library
     Required to activate resampling.
   * KDE PIM Libs (4.5.60 or higher)  <http://pim.kde.org/>
     KDE Libraries for PIM
     Required for PIM plugin.
   * qaccessibilityclient  <https://projects.kde.org/projects/playground/accessibility/libkdeaccessibilityclient>
     KDE client-side accessibility library
     Required to enable ATSPI plugin.

-----------------------------------------------------------------------------


I have rebuilt it more than 20 times, because I am testing it currently. The environment is always clean.

 
Reply to topic

Bookmarks



Who is online

Registered users: Alexa [Bot], Baidu [Spider], Bing [Bot], claydoh, Exabot [Bot], Google [Bot], koriun, Majestic-12 [Bot], mmistretta, MSNbot Media, scummos, Wiz, Yahoo [Bot]