This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"max_allowed_core_version": 21.2, | |
"_server": { | |
"url": "https://api.mycroft-test.net" | |
}, | |
"_lang": "sv-se", | |
"listener": { | |
"_recording_timeout_with_silence": 50, | |
"_recording_timeout": 100, | |
"_wake_word": "blueberry", |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import re | |
import time | |
words = [ | |
'where', | |
'which', | |
'when', | |
'what', | |
'that', | |
'will', |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import time | |
import wave | |
import speech_recognition as sr | |
frames = [] | |
microphone = sr.Microphone() | |
with microphone as source: |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import sys | |
from threading import Event | |
from mycroft.configuration import Configuration | |
from mycroft.messagebus.client import MessageBusClient | |
from mycroft.util import ( | |
create_echo_function, | |
create_daemon, | |
reset_sigint_handler, | |
wait_for_exit_signal |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env python3 | |
from os.path import join, abspath, dirname, exists | |
from setuptools import setup | |
"""Template for mycroft plugin setup.py. | |
Fill in constants below and change the setup metadata to suite your module. | |
""" | |
PLUGIN_TYPE = '' # tts, stt or audioservice |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
rom mycroft_bus_client import MessageBusClient, Message | |
print('Setting up client to connect to a local mycroft instance') | |
client = MessageBusClient() | |
def print_listening(message): | |
print('Mycroft is listening') | |
def print_not_listening(message): |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Add deb-src entry for your distribution | |
sudo echo "deb-src http://ports.ubuntu.com/ubuntu-ports focal main restricted multiverse universe" >> /etc/apt/sources.list | |
sudo apt-get update | |
# Install pre-requisites | |
sudo apt-get build-dep -y cargo | |
sudo apt-get install -y libssl-dev libcurl4-gnutls-dev quilt | |
# Install cargo-deb to build debin packages through cargo | |
cargo install cargo-deb |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# General prerequisites: | |
sudo apt-get install -y debhelper build-essential fakeroot | |
# Clone package | |
git clone https://github.com/mycroft-packaging/mycroft-gui-mark-2 -b focal | |
cd mycroft-gui-mark-2 | |
# Clone source | |
git clone https://github.com/mycroftai/mycroft-gui-mark-2 | |
cp -r debian mycroft-gui-mark-2 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
FROM ubuntu:xenial as builder | |
# Grab dependencies | |
RUN apt-get update && apt-get dist-upgrade --yes && apt-get install --yes \ | |
curl \ | |
jq \ | |
squashfs-tools | |
# Grab the core snap (for backwards compatibility) from the stable channel and | |
# unpack it in the proper place. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: mycroft-precise | |
version: 0.3.1 | |
summary: Mycroft Precise | |
description: Mycroft Precise, a wake word spotter. | |
base: core18 | |
confinement: strict | |
build-packages: [python3-dev, python3-setuptools, libtool, libffi-dev, libssl-dev, autoconf, build-essential] | |
parts: | |
alsa-mixin: | |
after: [] |
NewerOlder