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

Mario Fux kde-ml at unormal.org
Wed Mar 29 12:42:51 UTC 2017


Am Mittwoch, 29. März 2017, 10:37:44 CEST schrieb René J.V. Bertin:

Morning René

> 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 :-/

Yes, sorry. Had the same problem with an old Debian release. Somehow in if 
SPHINX_0_8 doesn't work there anymore. But the patch below should fix it (just 
not yet the solutation I want to commit).

> /.../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)

Yes, there is or was a Plasmoid which doesn't work anymore. Will remove this 
for the beta. It's probably still a C++ Plasmoid.

Thanks
Mario
-------------- next part --------------
A non-text attachment was scrubbed...
Name: pocketsphinx-patch.diff
Type: text/x-patch
Size: 1033 bytes
Desc: not available
URL: <http://mail.kde.org/pipermail/kde-mac/attachments/20170329/3e2e4e0c/attachment.bin>


More information about the kde-mac mailing list