Åke Forslund
1397659c77
Add skill api help to CLI
2021-02-06 17:57:38 +01:00
Ken Smith
289f229630
synchronize volume between skill and switches, fix mute led bring up issue and fix color palette
2021-02-05 13:47:27 -05:00
Åke Forslund
5df15245c4
Add Todo / comment regarding startup order
2021-01-28 17:24:21 +01:00
Kris Gesling
8a1ee0e106
Move ready check to enclosure; use ProcessStatus
...
Previously Mycroft reported mycroft.ready when Padatious had
finished it's first training run. This check has been shifted
to the enclosure service, and starts checking once the Padatious
training is complete.
Currently checks on readiness of audio, speech and skills services.
2021-01-28 17:24:21 +01:00
Kris Gesling
1273425799
add ProcessStatus to key services
2021-01-28 17:24:21 +01:00
Kris Gesling
73f0299cfa
Merge pull request #2722 from forslund/bugfix/latest-porcupine
...
Update for newer Porcupine engines
2021-01-25 16:29:48 +09:30
Kris Gesling
303f6a3b95
Merge pull request #2792 from MycroftAI/feature/common-bus-connection
...
Refactor - common bus connection method
2021-01-18 15:58:37 +09:30
Kris Gesling
824792dcdf
improve mic error handling
2021-01-15 11:45:57 +09:30
Kris Gesling
5e9b1ac24b
Merge pull request #2801 from MycroftAI/bugfix/mimic2-cache-dir
...
Bugfix/mimic2 cache dir
2021-01-15 11:43:04 +09:30
Ken Smith
0d765d61dc
remove logging
2021-01-12 14:38:34 -05:00
Ken Smith
6ef24c0a09
hack to keep the rev5 board running
2021-01-12 14:26:37 -05:00
Kris Gesling
974be29c57
Merge pull request #2781 from AIIX/fix/network_remove_pages
...
Fix missing remove page implementation, show idle if all pages removed
2021-01-11 21:58:22 +09:30
Aditya Mehra
7c2ca269e2
use mycroft.device.show.idle
2021-01-11 15:11:16 +05:30
Kris Gesling
ad32a7a873
move bus connect method to process_utils
2021-01-11 16:57:25 +09:30
Kris Gesling
0423daeb4c
Voice service to use common bus cilent method
2021-01-11 16:57:25 +09:30
Kris Gesling
118c6f73c5
autopep8
2021-01-08 22:47:54 +09:30
Kris Gesling
c25e51f0f3
trigger wifi or pairing once all services ready
2021-01-08 22:46:59 +09:30
Kris Gesling
652f3342bc
Merge pull request #2788 from MycroftAI/feature/no-precise-tarball
...
Do not download Precise if executable already exists
2021-01-08 12:02:53 +09:30
Kris Gesling
54eac52b11
merge dev into mark-2 branch
2021-01-06 22:17:25 +09:30
Aditya Mehra
eea66b4376
remove platform check and make the idle emit general
2021-01-06 13:20:17 +05:30
Kris Gesling
81eae60b61
Merge pull request #2758 from MycroftAI/refactor/enclosure-startup
...
Ensure messagebus is connected before reporting that the service is ready
2021-01-05 20:55:59 +09:30
Åke Forslund
9d450b5890
Unshadow Message class in _handle_pairing_complete
...
Fixes a small typo making the unmute after first pairing call fail.
2021-01-04 21:38:05 +01:00
Kris Gesling
9ec66ccdd7
Increase timeout for slower hashing on squashfs
...
The current petact download system hashes the tarball to determine
if a download is required. This is particularly slow on first boot
of Pantacor container as it uses squashfs.
2021-01-04 22:25:23 +09:30
Kris Gesling
a358bf672f
Do not download Precise if exe already exists
...
This means that the Precise tarball will no longer need to be
stored on disk for the sake of petact.
2020-12-30 21:19:59 +09:30
Kris Gesling
fd5c8bb5e3
Merge branch 'dev' into feature/mark-2
2020-12-29 14:31:09 +09:30
Aditya Mehra
9ed6baef22
fix case indentation
2020-12-18 14:03:08 +05:30
Aditya Mehra
89a07d05ab
Add missing remove page implementation and show idle if all pages removed
2020-12-18 12:52:44 +05:30
dalgwen
4747dd0e59
Fix UnboundLocalError in AudioProducer
...
==== Fixed Issues ====
==== Tech Notes ====
The variable should be declared outside the loop.
2020-12-15 10:16:34 +01:00
Åke Forslund
4b1efc7db9
Add deprecation notice
2020-12-13 21:53:01 +01:00
Ken Smith
e85c9cdbcb
first version of the sj201 rev4 board
2020-12-09 14:30:12 -05:00
Åke Forslund
23cf197eb0
Pylint cleanup of imports and Porcupine class
2020-12-09 12:38:54 +01:00
Åke Forslund
cb8c3fe7de
Switch to using the pvporcupine pip package
...
This is the same set of bindings as previously but packaged and
published on pypi
Picovoce library finder functions are used to determine the location of
libraries.
2020-12-09 12:37:31 +01:00
Åke Forslund
32279894f2
Update for latest Porcupine release
...
- Update the creation of Porcupine object
- Update the detection to accept >= 0 (index of detected hot word)
2020-12-09 12:37:31 +01:00
Ken Smith
08bad71192
extend base enclosure to support new hardware
2020-12-03 21:55:42 +11:00
Kris Gesling
ce7331fbbb
Ensure messagebus connected before reporting ready
...
Switch to new standard method to connect to bus client
Ensure exceptions during .run() are raised to the Enclosure service
Add missing .stop() method to base Enclosure Class
Shift call of .stop() to after exit signal
2020-11-12 16:41:37 +09:30
Kris Gesling
f2b7b0251b
Merge pull request #2757 from forslund/feature/ready-check
...
Feature: add Process Status and ensure all services ready
2020-11-12 09:16:43 +09:30
Åke Forslund
50f049032b
Add docstrings for Hotword base class
2020-11-04 08:03:15 +01:00
Aditya Mehra
3a33284f62
add missing skill_id parameter for page interaction and focus events
2020-10-23 13:34:01 +05:30
Åke Forslund
0a9de0ab7c
Update to pyee 8.1.0
...
pyee 8.1.0 adds a small change to make the once call to be more safe in
multithreaded environments.
This switches back from the now deprecated BaseEventEmitter to the
standard EventEmitter.
2020-10-22 11:43:06 +02:00
jarbasal
02cb489f63
wake word plugins
2020-10-10 18:03:40 +01:00
Åke Forslund
241adfdda8
Add Todo / comment regarding startup order
2020-09-27 09:58:08 +02:00
Kris Gesling
582faab843
Move ready check to enclosure; use ProcessStatus
...
Previously Mycroft reported mycroft.ready when Padatious had
finished it's first training run. This check has been shifted
to the enclosure service, and starts checking once the Padatious
training is complete.
Currently checks on readiness of audio, speech and skills services.
2020-09-27 09:58:02 +02:00
Kris Gesling
e9add604fd
add ProcessStatus to key services
2020-09-25 06:52:27 +02:00
katridi
6e197d0138
Bugfix/issue 2563 ( #2692 )
...
* Issue-2563 Added fallback to english model
* Added test case for checking config set up
* Added more descriptive log message
2020-09-22 15:01:01 +09:30
JarbasAI
4d3cd33d4a
Feat/self.gui.connected ( #2682 )
...
* expose gui connection status
* gui.status.request.response
Co-authored-by: jarbasal <jarbasai@mailfence.com>
2020-09-16 17:02:46 +09:30
Åke Forslund
1202417f86
Handle ntp syncs during precise Startup
...
Use MonotonicEvent instead of the builtin Event class
2020-09-10 13:27:21 +02:00
Kris Gesling
d1ea9088fb
Merge pull request #2670 from MycroftAI/remove/startListening
...
remove deprecated startListening signal
2020-08-21 00:31:30 +00:00
Kris Gesling
d4d7d09e40
remove hardcoded timeouts; already moved to conf
2020-08-19 20:35:23 +09:30
Kris Gesling
23d1d35ea9
remove deprecated startListening signal
2020-08-18 22:21:38 +09:30
Kris Gesling
5dac7fe54c
disable wakeword uploads before deprecating API
2020-08-13 16:49:54 +09:30
Kris Gesling
7aa80e2b7d
remove duplicate and unused method
2020-08-13 16:46:08 +09:30
Åke Forslund
236a2ed594
Add hook for stopping
2020-07-22 11:06:47 +02:00
Åke Forslund
a1fdae3415
Add support for watchdog in skills and speech client
...
If no watchdog is provided a dummy function will be called
2020-07-22 10:52:32 +02:00
Åke Forslund
09b1deb511
Add possibility for notification hooks for services
...
- skills
- audio
- speech client
- messagebus service
- enclosure
The main functions now accepts the arguments ready_hook and error_hook
allowing a service or runner script to catch these states and perform
actions accordingly.
This is useful for things like systemd or a desktop launcher.
Fix audio service startup
2020-07-22 10:52:27 +02:00
Åke Forslund
0fc1ba325a
Update pyee to v7.0.1
...
pyee has added ThreadExecutor variant of the EventEmitter which can
replace the home-spun threadpool based emitter
2020-07-07 08:21:42 +02:00
Kris Gesling
83ece0e663
Merge pull request #2591 from forslund/bugfix/mint-skill-listing
...
Workaround issue with get_wch on older ncurses
2020-06-23 20:01:49 +09:30
Åke Forslund
926d3ff1c1
Extract noise-tracking from _record_phrase
...
_record_phrase now uses a helper class to track the noise in a sentence
to determine when the user has stopped speaking.
The logic should be the same but the same but allow for easier testing
and manipulation.
2020-05-26 12:12:12 +02:00
Åke Forslund
9e73180206
Make sec_to_bytes a member of MutableMic
...
The function is based on the parameters of the Mic and is much more a
method of the mic than a static function
2020-05-26 12:12:12 +02:00
Åke Forslund
225f22fe82
Remove unused member variables
...
Move wakeword duration to the wakeword engine since all wakeword engines
doesn't really use phonemes
2020-05-26 12:12:12 +02:00
Åke Forslund
dbf2bf45b1
Return status from wakeword as tuple
...
- Return the data from the wakeword as a tuple.
- Extract post wakeword actions from wait for wakeword method
2020-05-26 12:12:12 +02:00
Åke Forslund
567e08809a
Refactor _wait_for_wakeword
...
- Add RollingMean data structure
- Add simple CyclicBuffer data structure
- Move out post find actions into separate method
2020-05-26 12:12:12 +02:00
Åke Forslund
a783da2e03
Workaround issue with get_wch on older ncurses
...
get_wch can at times throw errors, this creates a function wait_for_any_key()
handling the error and retrying.
2020-05-20 10:54:37 +02:00
Bart Ribbers
531f78c499
Move requirements.txt to a new requirements folder and add optional deps
...
Some dependencies aren't actually required but can be optionally
installed for extra functionality.
The Chromecast is an optional audio backend
VLC is an optional audio backend
pyalsaaudio is only used by the mark1 enclosure
google-api-python-client is an optional STT backend, by default Mycroft
uses the Mycroft servers
2020-05-11 15:31:10 +02:00
Åke Forslund
7586de86d9
Fix MutableStream __init__ with mute=True
...
If the stream is restarted while muted this would cause an Exception
leading to an unresponsive voice client due to the read_lock being
called before creation.
2020-04-20 09:26:31 +02:00
Åke
caa77b33f7
Merge pull request #2538 from forslund/bugfix/enclosure-shutdown
...
Fix enclosure shutdown
2020-04-18 08:00:07 +02:00
Aditya Mehra
c5c0881d94
Add configuration option to set microphone timeout
...
listener->recording_timeout: Maximum length of recording
listener->recording_timeout: Maximum length of silence before stopping
recording
2020-04-17 11:23:25 +02:00
Åke Forslund
6d13872638
Cleanup of the enclosure entrypoint
...
- split out enclosure determination code
- Add docstrings
- Increase logging
2020-04-16 10:58:07 +02:00
Åke Forslund
290d950424
Fix shutdown of enclosure process
...
Previously it would always be killed, now it exits smoothly.
2020-04-16 09:47:53 +02:00
Åke Forslund
b7cf8e755e
Remove origin check from gui websocket
...
This allows simple websocket clients to connect as well.
2020-04-04 09:15:47 +02:00
Åke Forslund
4f65591c21
Simplify the GUI websocket code
...
Use a single websocket but don't send data from clients to other
clients.
2020-04-04 09:13:51 +02:00
jarbasal
9d712a898f
Update docstrings
2020-03-30 12:05:58 +02:00
jarbasal
efc9af558a
Read mark1 eye color
2020-03-30 12:05:49 +02:00
dalgwen
003f2920a3
Enable snowboy to use several wakeword models
...
Snowboy could use several wakeword models, not only the first one.
2020-03-11 08:34:50 +01:00
Åke
05cae9d319
Merge pull request #2429 from MycroftAI/bug/mark1_faceplate
...
mark1/fix display big images
2020-03-06 18:10:40 +01:00
Åke Forslund
2070e9aac9
Bump enclosure version
2020-03-02 15:25:22 +01:00
ludwhe
49c6b298f1
Add path checks
2020-02-27 08:33:11 +01:00
ludwhe
af6b7353e6
Added a "save_path" configuration for saved wake words and utterances.
2020-02-27 08:33:06 +01:00
jarbasal
0de7f11c6e
execute TTS from debug_cli
2020-02-15 15:35:43 +01:00
jarbasal
75c796a29d
add context to all listener messages
2020-02-15 15:35:38 +01:00
jarbasal
e57671ebeb
capture all in cli
2020-02-15 12:52:23 +01:00
Jarbas-Core
d16964c580
bus message targetting
2020-02-15 12:37:25 +01:00
JarbasAI
46af6fcff2
mark1/fix display big images
...
https://github.com/MycroftAI/enclosure-mark1/blob/master/protocols.txt#L141
according to the spec there is a bug
2019-12-17 01:34:08 +00:00
Åke Forslund
308b0c5111
Fix incorrect porcupine shutdown and Exception
...
Flagged by flake8 after merge
2019-12-12 17:51:47 +01:00
Åke
3315d98582
Merge pull request #2139 from alumae/feature/issue-1491
...
Add support for the Porcupine wakeword engine.
2019-12-12 16:59:12 +01:00
Åke
2263fab0b6
Merge pull request #2418 from forslund/bugfix/missing-hotword-parts
...
Make sure hotword entry has phonemes and threshold
2019-12-09 20:24:58 +01:00
Åke Forslund
2fa81aac52
Disregard DEBUG entry in filter
...
The DEBUG, has been filtered by default. This will disregard the DEBUG
filter completely since the same effect can be achieved by setting the
debug level using ":log level debug".
2019-12-09 08:27:27 +01:00
Åke Forslund
f9585e47ba
Clean up of create_wake_word_recognizer
...
- Proper docstring
- " -> '
2019-12-07 20:22:20 +01:00
Åke Forslund
2c2c933832
Make sure hotword entry has phonemes and threshold
...
If hotword entry is missing either add from old listener location
2019-12-07 20:18:47 +01:00
Åke
24071cdea0
Merge pull request #2416 from MycroftAI/feature/gui-server-modern-tornado
...
Workaround for gui connection
2019-12-07 15:08:08 +01:00
Steve Penrod
2f4b2ccf48
Remove signal.SIGINT handler from simple CLI
...
At some point during refactoring the ability to hit Ctrl+C to exit the basic CLI was lost.
The signal.SIGINT handler is needed by the graphical GUI, but it
interfered with the use of sys.stdin.readline() in the simple CLI.
Rearrange the installation of the handler for only the GUI.
To test, run:
mycroft-cli-client --simple
Then hit Ctrl+C. Before this change nothing happens (you just see the "^C" printed out). After the change it exits as expected.
2019-12-03 20:07:19 +01:00
Åke Forslund
04e9812992
Asyncio updates for gui connections
...
- Workaround, ensure asyncio event loop is launched on each thread.
2019-11-26 14:21:49 +01:00
Åke Forslund
026f769028
Fix using of hotword structure for custom wakeword
...
Fixes overriding settings from listener config
2019-11-26 09:07:15 +01:00
Christian Clauss
a1ff3fb355
Upgrade from pycodestyle to flake8
2019-11-19 23:07:52 +01:00
Daniel Morse
3751add193
Move emission of recognizer_loop:wakeword
...
The message is now emitted directly after a wakeword is detected.
2019-11-11 15:13:56 +01:00
Kris Gesling
0197a7ee39
frames to read must be greater than 0
2019-11-01 08:13:26 +01:00
Åke Forslund
8d4413db9c
Update account id fetching
...
Account ID will now be refetched if invalid the first time.
This also adds some general exception handling to avoid client crashing due
to the servers invalid 204 response.
2019-10-26 09:35:03 +02:00
Åke Forslund
8bdeddb965
Catch and log errors starting up the speech client
2019-10-26 09:34:28 +02:00
Åke
f234354783
Merge pull request #2365 from forslund/bugfix/lock-mic-mute-unmute
...
Lock mic mute unmute
2019-10-20 14:12:53 +02:00
Åke Forslund
bc2bfb6c77
Ignore overflow errors as before
2019-10-20 09:48:52 +02:00
Åke Forslund
3da5dece0c
Stop restarting mic after 20 attempts
2019-10-20 09:47:12 +02:00