Commit Graph

4266 Commits (b7d709c3c86af4f58cc8a8f7bbd089f319a0718b)

Author SHA1 Message Date
Åke Forslund b7d709c3c8 Add wait_for_message() method to messagebus client
- Refactor message waiting into a MessageWaiter class to be able to use the
  same code in both wait_for_message and wait_for_response.
- Add some basic unittests
2020-07-05 09:28:17 +02:00
Åke Forslund 29f60e6d66 Clean up the wait_for_response method
- Use nonlocal instead of mutable object.
- Set default timeout in method argument
2020-07-05 09:28:17 +02:00
Kris Gesling aca6a18c5f
Merge pull request #2327 from MycroftAI/feature/importlib
Switch from the deprecated imp to importlib
2020-07-01 11:34:25 +09:30
Åke Forslund 58608e6458 Handle reloading of relative imports
Submodule reload is enforced by removing sys.modules reference. This
will make imports do the full uncached importing
2020-06-30 19:42:36 +02:00
Kris Gesling 072f409939
Merge pull request #2625 from MycroftAI/bugfix/audio-after-stop
remove messagebus argument
2020-06-30 08:53:59 +09:30
Kris Gesling bf6e6af3e3 remove messagebus argument 2020-06-29 21:38:12 +09:30
Kris Gesling 37a47915f7
Merge pull request #2621 from MycroftAI/bugfix/audio-after-stop
prevent audio playing between mic record and utt handling
2020-06-29 15:56:49 +09:30
Kris Gesling e39fe64ba4 minor cleanup for PR review 2020-06-29 14:30:39 +09:30
Kris Gesling c4478e82ad ensure volume restored after mic recording 2020-06-25 16:17:54 +09:30
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 b968b06ccb Switch from the deprecated imp to importlib
Separate python 3.4 and 3.5+ implementation
2020-06-23 11:29:15 +02:00
Kris Gesling 200606df62
Merge pull request #2618 from MycroftAI/feature/vk-not-reply
Add VK test - specific skill should not reply
2020-06-22 15:13:37 +09:30
Kris Gesling 1c9441e0e0
Merge pull request #2613 from MycroftAI/feature/command-help
Fix #2604 Add missing commands to help
2020-06-22 13:00:21 +09:30
Kris Gesling 4345011f7f prevent audio playing between mic record and handling 2020-06-19 15:27:48 +09:30
Kris Gesling 247c6d30a3 add test - specific skill should not reply 2020-06-18 22:33:22 +09:30
Kris Gesling 819ea94d2e
Merge pull request #2583 from doczkal/gentoo_setup
Gentoo setup
2020-06-17 22:07:39 +09:30
Kris Gesling c90a1a5bfe
Merge pull request #2616 from MycroftAI/feat/show_animated_image
self.gui.show_animated_image
2020-06-15 20:26:43 +09:30
Kris Gesling 394160885d consistent capitalization 2020-06-15 13:43:36 +09:30
jarbasal 6d3b9cda25 pep8 2020-06-14 22:55:33 +01:00
jarbasal 007f636946 self.gui.show_animated_image 2020-06-14 22:52:59 +01:00
Kris Gesling d561711890 update more info link to docs 2020-06-08 10:38:19 +09:30
Kris Gesling 23086d4f5c create Skill Dev commands section 2020-06-08 10:22:23 +09:30
Kris Gesling 41823ceeb6 add missing commands 2020-06-08 10:21:47 +09:30
Thomas Doczkal 8ddd088557
Merge branch 'dev' into gentoo_setup 2020-06-06 12:19:57 +02:00
Kris Gesling 3651bdcca9
Merge pull request #2537 from forslund/feature/jenkinsfile-cla
CI: Add CLA Check stage
2020-06-02 11:50:15 +09:30
Kris Gesling 5d8726c76f
Merge pull request #2597 from forslund/feature/build-snap
Build Snap as part of the Jenkinsfile
2020-06-01 22:35:32 +09:30
Åke a0c7ea7caf
Merge pull request #2560 from forslund/refactor/settings-cleanup
Refactor settings cleanup
2020-05-31 13:37:34 +02:00
Åke 16145909a8
Merge pull request #2589 from forslund/refactor/speech-client
Refactor wake-word waiting and record phrase
2020-05-31 13:37:02 +02:00
devs-mycroft 5281f26187 Version bump from 20.2.3 to 20.2.4 2020-05-29 11:37:34 +00:00
Kris Gesling 97b1e0f6ec
Merge pull request #2598 from forslund/bugfix/audio-startup
Fix audio service startup without Internet
2020-05-28 22:29:07 +09:30
Åke Forslund e0e5f7fb2f Add test for cancelling the download timer 2020-05-27 22:08:14 +02:00
Åke Forslund cdb04b1f3c Minor docstring update 2020-05-27 22:08:14 +02:00
Åke Forslund d494814ec0 Remove unused method 2020-05-27 22:08:14 +02:00
Åke Forslund 944cc416a5 Update SkillSettingsDownloader class
- Update docstrings
- Remove unused members
- Minor logic change to make download method more self-contained
2020-05-27 22:08:10 +02:00
Åke Forslund 86a978fadf Fix audio service startup without Internet
If started up without Network connection the audio service would crash
importing the google_tts module as it tried to fetch language list from
google.

This restructures it to be a just-in-time check. It also adds a cached
list of supported languages to use if an error occurs fetching language
codes.

A small fix allowing "en-US" to be matched to "en-us" instead of the
generic "en" is also included.
2020-05-27 21:28:26 +02:00
Åke Forslund 7e1a16bee5 Launch snap build on push to dev and release tag
This will trigger the Job for the Mycroft-snap sending the branch/tag  as a
parameter.
2020-05-27 14:11:49 +02:00
Å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 55bdb9db74 Reactivate dynamic energy calculation test 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
Kris Gesling a0cccd44b9
Merge pull request #2595 from forslund/feature/padatious-0.4.8
Upgrade padatious to 0.4.8
2020-05-26 14:55:05 +09:30
Åke Forslund e8886492e0 Upgrade padatious to 0.4.8
This adds better support for `'`
2020-05-25 11:59:37 +02:00
Åke c96f546419
Merge pull request #2592 from MycroftAI/feature/vk-clear
Add 'vktest clear' command
2020-05-21 17:30:42 +02:00
Kris Gesling 975cf2d18b add config.json files to vk clearing 2020-05-21 11:42:03 +09:30
Kris Gesling 50073cfc51 add vktest clear command 2020-05-20 22:30:56 +09:30
Å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
Åke ff50c4b5ec
Merge pull request #2562 from forslund/feature/setup-loose-requirements
Allow building Mycroft with loose requirements
2020-05-20 07:02:45 +02:00
Åke c056aaacfb
Merge pull request #2588 from forslund/bugfix/remove-fallback-handler
Bugfix/remove fallback handler
2020-05-19 16:35:52 +02:00