summaryrefslogtreecommitdiffstats
path: root/src/asr/qspeechrecognition.cpp
Commit message (Collapse)AuthorAgeFilesLines
* SpeechRecognition: Update documentationTuomas Tuononen2015-11-231-3/+30
| | | | | | Change-Id: Iba4e21c58a5743457c993fddca501f4d883d231b Reviewed-by: Andrew Knight <andrew.knight@intopalo.com> Reviewed-by: Topi Reiniö <topi.reinio@theqtcompany.com>
* SpeechRecognition: Add method for listing the supported pluginsTuomas Tuononen2015-11-231-3/+15
| | | | | | | | - Add QSpeechRecognition::availablePlugins() - Rename providerName to pluginName in createEngine() parameters Change-Id: I3f5af256dc5d104f0b101d53dafae765cfe33bf4 Reviewed-by: Andrew Knight <andrew.knight@intopalo.com>
* SpeechRecognition: Add support for resetting engine adaptation stateTuomas Tuononen2015-10-161-0/+2
| | | | | | | | | - Add QSpeechRecognitionEngine::resetAdaptationState() - Add QSpeechRecognitionPluginEngine::resetAdaptationState() - Implement the feature for PocketSphinx Change-Id: I68411064fb99014558be40f9187a453fcc546799 Reviewed-by: Andrew Knight <andrew.knight@intopalo.com>
* SpeechRecognition: Fix wrong state transitionsTuomas Tuononen2015-10-161-12/+18
| | | | | | | | | | | | | | | | | | | | | | | | | | | | Do not allow transition from ListeningStoppingState to either ListeningState or MutedState. Also move straight to IdleState on abortListening() or reset() when possible. Details: If listening is stopped immediately after starting it, the expected state sequence is: IdleState -> ListeningStartingState -> ListeningStoppingState -> IdleState In this case signal listeningStarted() is now emitted on ListeningStoppingState (was: ListeningState). If listening was started, stopped and aborted in a fast sequence, signal listeningStopped() was emitted even when listeningStarted() was not. The expected behavior for abortListening() or reset() is to move straight to IdleState in this case. Change-Id: I3d3b9d096ad38c1bdf2f5ef7958776f2dd4a1496 Reviewed-by: Andrew Knight <andrew.knight@intopalo.com> Reviewed-by: Frederik Gladhorn <frederik.gladhorn@theqtcompany.com>
* SpeechRecognition: Wait for manager thread to exit on destructionTuomas Tuononen2015-10-151-2/+6
| | | | | | | | This prevents a crash on application exit: the plug-in was unloaded before the thread was finished. Change-Id: I335fef4d881450fa72268f001780e3e59b300920 Reviewed-by: Andrew Knight <andrew.knight@intopalo.com>
* Doc: Fix a number of documentation issuesTopi Reinio2015-10-141-2/+2
| | | | | | | | | | | | | - Separate TTS, Speech Recognition as their own C++ modules - Create a top-level Qt Speech C++ Classes page - Add missing example file type to .qdocconf - Use a table for speech recog. plugins - Fix QDoc warning: src/asr/qspeechrecognition.cpp:125: warning: Can't link to 'stateChanged()' Change-Id: I7da40273c2878a18924705f331a998730a06c7c4 Reviewed-by: Tuomas Tuononen <tuomas.tuononen@code-q.fi> Reviewed-by: Venugopal Shivashankar <venugopal.shivashankar@digia.com>
* SpeechRecognition: Clean up metatype registrationTuomas Tuononen2015-10-141-1/+1
| | | | | | | | | Enum type QSpeechRecognition::Error is used in signal parameters, so declare it as a public metatype. Change-Id: I8ee84ee0f336a0060cc5c0409b80f43be044024a Reviewed-by: Jeremy Whiting <jpwhiting@kde.org> Reviewed-by: Frederik Gladhorn <frederik.gladhorn@theqtcompany.com>
* SpeechRecognition: Use pre-defined string constantsTuomas Tuononen2015-10-141-4/+65
| | | | | | | | | | - In engine parameter keys - In error signal parameter keys - In result signal parameter keys Change-Id: I49ab6400655219025c2fa5b1c2f92a30bf1125d4 Reviewed-by: Johannes Oikarinen <johannes.oikarinen@digia.com> Reviewed-by: Frederik Gladhorn <frederik.gladhorn@theqtcompany.com>
* SpeechRecognition: Simplify connection from engine handle to the managerTuomas Tuononen2015-09-231-5/+0
| | | | | | | | No reason to route QSpeechRecognitionEngine::setParameter() through QSpeechRecognition class. Change-Id: Ib36f3d7af0513beda09a4e85fb70a5661cbb8170 Reviewed-by: Andrew Knight <andrew.knight@intopalo.com>
* SpeechRecognition: Add a couple of code example snippetsTuomas Tuononen2015-09-211-0/+23
| | | | | Change-Id: I1c23f7b1aa72188ba8f52c84935904ca6eaf042f Reviewed-by: Topi Reiniö <topi.reinio@digia.com>
* SpeechRecognition: Update documentationTuomas Tuononen2015-09-181-0/+1
| | | | | Change-Id: I6e9e024bd30dbbd165471010aee895ed66dcee38 Reviewed-by: Topi Reiniö <topi.reinio@digia.com>
* Initial implementation of QtSpeechRecognition libraryTuomas Tuononen2015-09-031-0/+736
Change-Id: Ifc2d0d7e120be3f500b9822ce1b342ff8a18d90d Reviewed-by: Frederik Gladhorn <frederik.gladhorn@theqtcompany.com>