Commit Graph

4441 Commits (feature/new-precise-upload)

Author SHA1 Message Date
Å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
Åke Forslund 010562f3e1 Fix remove_fallback()
remove_fallback() was mainly created for use internally during shutdown
and required the wrapped callable to be able to remove a handler. This
makes it general, using a mapping to find the wrapper from a handler if
needed. The method now also returns the success/failure status
2020-05-19 10:51:53 +02:00
Åke Forslund 73fd98aee1 Add test cases for adding / removing fallbacks 2020-05-19 10:51:47 +02:00
Åke 06e958cf73
Merge pull request #2576 from forslund/feature/voight-kampff-config
Voight kampff config given
2020-05-19 08:29:17 +02:00
Åke Forslund e08f630bea Minor header fixes in voight_kampff
- Copyright year
- typo
2020-05-18 14:48:19 +02:00
Åke Forslund 46c8a6b51f Add Voight Kampff support setting configurations
Adds the "Given the user's {config} is {value}" step implementation

This will patch the configuration with a section from a dictionary that
can either be a global (shipped in
mycroft/res/{lang}/configurations.json) or shipped with the test
definition. The file should be named the same as the feature file but
instead of ".feature" the extension should be ".config.json".

mycroft/res/text/en-us/configurations.json contains a couple of
pre-defined configurations that can be applied
- units (metric/imperial)
- location (Stockholm)

After each scenario any applied patch will be cleared
2020-05-18 14:48:14 +02:00
Åke Forslund cd1c3b7c1d Cleanup docstrings in configuration module 2020-05-18 14:29:42 +02:00
Åke Forslund 91dbe76d58 Add messagebus message to clear patch data 2020-05-18 14:29:42 +02:00
Åke 8265258673
Merge pull request #2587 from MycroftAI/revert-2582-arch_setup
Revert "use long options and add --upgrade to arch linux pacman"
2020-05-17 20:15:22 +02:00
Åke 7d4243318a
Revert "use long options and add --upgrade to arch linux pacman" 2020-05-17 20:14:07 +02:00
Thomas Doczkal 6b75af54c7 remove virtualenv, add python-request, media-libs/alsa-lib and dev-libs/icu 2020-05-17 14:00:22 +02:00
Thomas Doczkal 5baea9355b remove virtualenv, add python-request, media-libs/alsa-lib and dev-libs/icu 2020-05-17 13:57:47 +02:00
Åke d328eba281
Merge pull request #2559 from PureTryOut/xdg
Check the skill directory and XDG_CONFIG_DIR for settings
2020-05-15 12:54:10 +02:00
Bart Ribbers 01900e5a29 Check the skill directory and XDG_CONFIG_DIR for settings 2020-05-15 11:45:13 +02:00
Åke 4ab9469ff7
Merge pull request #2585 from forslund/polly_tts
Add Polly tts
2020-05-15 08:22:25 +02:00
Åke 90d2570cc3
Merge pull request #2575 from PureTryOut/optional-deps
Move requirements.txt to a new requirements folder and add optional deps
2020-05-14 15:04:56 +02:00
Kris Gesling b865e80483
Merge pull request #2581 from forslund/bugfix/tts-espeak-update
Update the ESpeak TTS plugin
2020-05-14 12:38:28 +09:30
Åke db58e189e4
Merge pull request #2584 from PureTryOut/dev-setup-alpine-support
dev_setup.sh: add support for Alpine Linux
2020-05-12 20:39:22 +02:00
Bart Ribbers d6337f51c5
dev_setup.sh: add support for Alpine Linux 2020-05-12 15:17:40 +02:00
Åke Forslund 094c2c28d0 Test loading of phonetic spelling dictionary
This also normalizes the path slightly to make sure that the phonetic
spelling is loaded even if the lang code contains capitals.
2020-05-12 08:58:18 +02:00
Åke 3acc7aaef7
Merge pull request #2582 from doczkal/arch_setup
use long options and add --upgrade to arch linux pacman
2020-05-12 08:25:48 +02:00
Åke Forslund 8c0aca6d4c Fix typo in mimic test case
An underscore instead of a . made the subprocess check output always
pass.
2020-05-11 21:43:28 +02:00
Thomas Doczkal 0cda2b1c6c
remove --sync and align with other distros like debian 2020-05-11 21:23:37 +02:00
Thomas Doczkal b9ab8219d8
remove --ask option for gentoo linux setup 2020-05-11 21:19:32 +02:00
Thomas Doczkal fb87b719ff
use long options and add upgrade to arch linux pacman 2020-05-11 21:07:53 +02:00
Åke Forslund 1ee8ec0ff9 Generalize Espeak missing error 2020-05-11 16:14:24 +02:00
Åke Forslund 4d065ff7fe Add basic unittest for espeak 2020-05-11 16:14:24 +02:00
Åke Forslund 23c04bf9f0 Update ESpeak to modern TTS standard.
- Fixes wait_while_speaking
- Adds Caching support
2020-05-11 16:14:19 +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 c9a2348a61
Merge pull request #2571 from PureTryOut/xmlrunner-dep
Remove the xmlrunner dep from requirements.txt, it isn't actually used anymore
2020-05-11 08:36:20 +02:00
Kris Gesling 656043e12c
Merge pull request #2577 from forslund/bugfix/add-context-decorator
Bugfix/add context decorator
2020-05-11 15:11:17 +09:30
Åke Forslund 2036bbb63c Fix bug in adds context decorator missing content
The words parameter is now passed to the set_context method as intended.
2020-05-11 06:50:36 +02:00
Åke Forslund 5caf415a15 Add tests for context decorators 2020-05-11 06:50:36 +02:00
Åke Forslund c78c4f6c03 Clean up docstrings for context decorators 2020-05-11 06:50:33 +02:00
Thomas Doczkal fb760f0202 add gentoo setup 2020-05-10 17:50:52 +02:00
devs-mycroft 960efbdbbb Version bump from 20.2.2 to 20.2.3 2020-05-07 14:07:13 +00:00
Åke a038a52b55
Merge pull request #2573 from PureTryOut/pytest
Add pytest.ini and make it ignore the wake_word directory
2020-05-06 20:27:40 +02:00
Åke 685fbf64ab
Merge pull request #2569 from PureTryOut/tests-python3
Explicitely run the messagebus test with Python 3 and with correct startup.
2020-05-06 17:32:39 +02:00
Bart Ribbers d8159180e8
Add pytest.ini and make it ignore the wake_word directory
Those tests aren't actually meant to be ran with Pytest, so let's skip
them
2020-05-06 16:12:40 +02:00
Bart Ribbers 4d01269f35
Explicitely run the messagebus test with Python3
/usr/bin/python might not always point to Python 3, and it might not
even exist, depending on the distribution. To make sure we always run
with Python 3, explicitely call /usr/bin/python3

Also update the service start command and remove the outdated message
method tests
2020-05-06 14:28:27 +02:00
Bart Ribbers 81a5025667
Remove the xmlrunner dep from requirements.txt, it isn't actually used anymore 2020-05-06 13:55:24 +02:00