From efcb8dfb398c819bd6f3442141e24f3ee92869b2 Mon Sep 17 00:00:00 2001 From: j1nx Date: Thu, 25 Feb 2021 20:16:12 +0100 Subject: [PATCH] Add missing mycroft binaries. Although skip mic test as it needs to cancel mycroft. We will figure something out ourselfs. --- .../rootfs-overlay/home/mycroft/cli_login.sh | 1 - .../rootfs-overlay/usr/bin/mycroft-listen | 18 +++++++++++++++ .../rootfs-overlay/usr/bin/mycroft-say-to | 22 +++++++++++++++++++ .../rootfs-overlay/usr/bin/mycroft-speak | 22 +++++++++++++++++++ 4 files changed, 62 insertions(+), 1 deletion(-) create mode 100755 buildroot-external/rootfs-overlay/usr/bin/mycroft-listen create mode 100755 buildroot-external/rootfs-overlay/usr/bin/mycroft-say-to create mode 100755 buildroot-external/rootfs-overlay/usr/bin/mycroft-speak diff --git a/buildroot-external/rootfs-overlay/home/mycroft/cli_login.sh b/buildroot-external/rootfs-overlay/home/mycroft/cli_login.sh index 366aa2cf..674a051e 100644 --- a/buildroot-external/rootfs-overlay/home/mycroft/cli_login.sh +++ b/buildroot-external/rootfs-overlay/home/mycroft/cli_login.sh @@ -14,7 +14,6 @@ echo echo "Mycroft Tool COMMANDs:" echo " mycroft-cli-client Command line client, useful for debugging" echo " mycroft-config Manage your local Mycroft configuration files" -echo " mycroft-mic-test Record and playback to directly test microphone" echo " mycroft-listen Activate the microphone to listen for a command" echo " mycroft-speak Have Mycroft speak a phrase to the user" echo " mycroft-say-to Send an utterance to Mycroft as if spoken by a user" diff --git a/buildroot-external/rootfs-overlay/usr/bin/mycroft-listen b/buildroot-external/rootfs-overlay/usr/bin/mycroft-listen new file mode 100755 index 00000000..940b688a --- /dev/null +++ b/buildroot-external/rootfs-overlay/usr/bin/mycroft-listen @@ -0,0 +1,18 @@ +#!/usr/bin/env bash + +# Copyright 2020 Mycroft AI Inc. +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# Send a message to be spoken +python -m mycroft.messagebus.send "mycroft.mic.listen" diff --git a/buildroot-external/rootfs-overlay/usr/bin/mycroft-say-to b/buildroot-external/rootfs-overlay/usr/bin/mycroft-say-to new file mode 100755 index 00000000..8cc3f03a --- /dev/null +++ b/buildroot-external/rootfs-overlay/usr/bin/mycroft-say-to @@ -0,0 +1,22 @@ +#!/usr/bin/env bash + +# Copyright 2018 Mycroft AI Inc. +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# Sets var 1 to stdin if no args were given +set -- "${1:-$(