STT service improvements (#12453)

* [googlestt|voskstt] change default maxSilenceSeconds to 3
* [watsonstt] add singleUtterance mode, rename inativityTimeout to maxSilenceSeconds and minor improvements
* [watsonstt] trim transcription

Signed-off-by: Miguel Álvarez Díez <miguelwork92@gmail.com>
This commit is contained in:
GiviMAD
2022-03-12 23:06:51 +01:00
committed by GitHub
parent ce6ef25ac3
commit 480cddbf2c
10 changed files with 51 additions and 47 deletions

View File

@@ -33,7 +33,7 @@ public class VoskSTTConfiguration {
* Only works when singleUtteranceMode is disabled, max seconds without getting new transcriptions to stop
* listening.
*/
public int maxSilenceSeconds = 5;
public int maxSilenceSeconds = 3;
/**
* Message to be told when no results.
*/

View File

@@ -27,7 +27,7 @@
<label>Max Silence Seconds</label>
<description>Only works when singleUtteranceMode is disabled, max seconds without getting new transcriptions to stop
listening.</description>
<default>5</default>
<default>3</default>
</parameter>
<parameter name="preloadModel" type="boolean" groupName="stt">
<label>Preload Model</label>