From: GiviMAD Date: Wed, 23 Feb 2022 20:09:49 +0000 (+0100) Subject: [voskstt] add linux arm and linux aarch64 binaries (#12355) X-Git-Url: https://git.basschouten.com/?a=commitdiff_plain;h=673397b82649e4ad670a09e0a39e427712812051;p=openhab-addons.git [voskstt] add linux arm and linux aarch64 binaries (#12355) * [voskstt] add linux arm and linux aarch64 binaries * [voskstt] change preload model configuration default to false * [voskstt] add supported platforms to readme Signed-off-by: Miguel Álvarez Díez --- diff --git a/bundles/org.openhab.voice.voskstt/README.md b/bundles/org.openhab.voice.voskstt/README.md index 224d56f732..26feaf83d8 100644 --- a/bundles/org.openhab.voice.voskstt/README.md +++ b/bundles/org.openhab.voice.voskstt/README.md @@ -6,6 +6,17 @@ Vosk STT Service uses [vosk-api](https://github.com/alphacep/vosk-api) to perfor It enables speech recognition for 20+ languages and dialects - English, Indian English, German, French, Spanish, Portuguese, Chinese, Russian, Turkish, Vietnamese, Italian, Dutch, Catalan, Arabic, Greek, Farsi, Filipino, Ukrainian, Kazakh, Swedish, Japanese, Esperanto. More to come. +## Supported platforms + +This add-on uses an underling binary to work. +The following platforms are supported: + +* linux-aarch64 +* linux-armv7l +* linux-x86_64 +* osx +* win64 + ## Configuring the model Before you can use this service you should configure your language model. @@ -37,7 +48,7 @@ In case you would like to setup the service via a text file, create a new file i Its contents should look similar to: ``` -org.openhab.voice.voskstt:preloadModel=true +org.openhab.voice.voskstt:preloadModel=false org.openhab.voice.voskstt:singleUtteranceMode=true org.openhab.voice.voskstt:maxTranscriptionSeconds=60 org.openhab.voice.voskstt:maxSilenceSeconds=5 diff --git a/bundles/org.openhab.voice.voskstt/src/main/resources/OH-INF/config/config.xml b/bundles/org.openhab.voice.voskstt/src/main/resources/OH-INF/config/config.xml index c0266cb910..627b4d6970 100644 --- a/bundles/org.openhab.voice.voskstt/src/main/resources/OH-INF/config/config.xml +++ b/bundles/org.openhab.voice.voskstt/src/main/resources/OH-INF/config/config.xml @@ -34,7 +34,7 @@ Keep language model loaded. If true model is just reload the model on config updates, if not model will be loaded and offloaded on each execution. It will fallback to try to load the model when executed if it was not able to load it before. - true + false diff --git a/bundles/org.openhab.voice.voskstt/src/main/resources/linux-aarch64/libvosk.so b/bundles/org.openhab.voice.voskstt/src/main/resources/linux-aarch64/libvosk.so new file mode 100755 index 0000000000..1681a990af Binary files /dev/null and b/bundles/org.openhab.voice.voskstt/src/main/resources/linux-aarch64/libvosk.so differ diff --git a/bundles/org.openhab.voice.voskstt/src/main/resources/linux-arm/libvosk.so b/bundles/org.openhab.voice.voskstt/src/main/resources/linux-arm/libvosk.so new file mode 100755 index 0000000000..1580867e05 Binary files /dev/null and b/bundles/org.openhab.voice.voskstt/src/main/resources/linux-arm/libvosk.so differ