Could you take a look at Simon (speech recognition) on Mac

René J.V. Bertin rjvbertin at gmail.com
Wed Mar 29 08:37:44 UTC 2017


On Tuesday March 28 2017 22:57:50 Mario Fux wrote:

>Requirements are for a Debian package:
>kdelibs5-dev, libpocketsphinx-dev, libqt4-dev, libqwt-dev, libsphinxbase-dev, 
>libxtst-dev

Apparently not on Ubuntu 14.04.5 :-/

/.../simon-git/simonlib/simonrecognizer/sphinxrecognizer.cpp: In member function ‘virtual QList<RecognitionResult> SphinxRecognizer::recognize(const QString&)’:
/.../simon-git/simonlib/simonrecognizer/sphinxrecognizer.cpp:109:45: error: invalid conversion from ‘int’ to ‘const char*’ [-fpermissive]
       ps_decode_raw(decoder, toRecognize, -1);
                                             ^
/.../simon-git/simonlib/simonrecognizer/sphinxrecognizer.cpp:109:45: error: too few arguments to function ‘int ps_decode_raw(ps_decoder_t*, FILE*, const char*, long int)’
In file included from /.../simon-git/simonlib/simonrecognizer/sphinxrecognizer.h:27:0,
                 from /.../simon-git/simonlib/simonrecognizer/sphinxrecognizer.cpp:20:
/usr/include/pocketsphinx/pocketsphinx.h:335:5: note: declared here
 int ps_decode_raw(ps_decoder_t *ps, FILE *rawfh,
     ^~~~~~~~~~~~~
/.../simon-git/simonlib/simonrecognizer/sphinxrecognizer.cpp:125:35: error: too few arguments to function ‘const char* ps_get_hyp(ps_decoder_t*, int32*, const char**)’
   hyp = ps_get_hyp(decoder, &score);
                                   ^
In file included from /.../simon-git/simonlib/simonrecognizer/sphinxrecognizer.h:27:0,
                 from /.../simon-git/simonlib/simonrecognizer/sphinxrecognizer.cpp:20:
/usr/include/pocketsphinx/pocketsphinx.h:449:13: note: declared here
 char const *ps_get_hyp(ps_decoder_t *ps, int32 *out_best_score,
             ^~~~~~~~~~

R.

PS: USE_PLAMSA, really? :) (in CMakeLists.txt)



More information about the kde-mac mailing list