Åke Forslund
03002bcf47
Add "given a timeout of X seconds"
...
The new given sets the timeout of the steps in a scenario. The timeout is reset after each scenario.
2020-08-16 23:16:51 +02:00
Åke Forslund
81570f14e9
WIP fix pylint warnings in context manager
2020-08-14 13:40:16 +02:00
Kris Gesling
8065f5cbee
do not call max if files list is empty
2020-08-14 21:05:32 +09:30
Kris Gesling
524a74ed5d
Merge pull request #2661 from MycroftAI/disable-ww-upload
...
Disable wake word upload for v20.2
2020-08-14 04:19:37 +00:00
Åke Forslund
8089411d93
Fix warnings from pylint in intent_service.py
...
- Add missing docstrings
- fix short variable names
- restructure return code
2020-08-13 09:28:23 +02:00
Åke Forslund
d9281d7795
Handle pylint warnings for padatious_service
2020-08-13 09:28:23 +02:00
Åke Forslund
841ed2dcfc
Update for pylint conformity for adapt module
...
- imports
- All docstring
- AdaptService method warnings
2020-08-13 09:28:23 +02:00
Åke Forslund
618daac9a4
Pair utterances with normalized versions
...
- Move setting original utterance to the respective intent service
- Remove botch limiting the intent service to a single STT hypothesis
2020-08-13 09:28:18 +02:00
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
917127638b
Remove workaround for adapt one_of intents
...
This issue was properly fixed in Adapt 0.3.5.
2020-08-13 08:18:55 +02:00
Åke Forslund
008ab372fd
FallbackService encapsulating fallback calls
2020-08-13 08:18:51 +02:00
Åke Forslund
bb8d4e3c1f
Generalization of intent service Episode IV
...
Simplify the handle_utterance into a list of intent matching functions
run in order until a match is found.
The resolution order is
- Converse
- Padatious High Confidence
- Adapt
- Fallback High priority
- Padatious Medium Confidence
- Fallback Medium priority
- Padatious Last ditch effore
- Fallback Low priority
This collects the many parts of where intent is handled into a single
location handling the entire flow.
The idea is that, in the end, all the skill calling should be done from
this method. The main intent parsers does this but the converse and
fallback still calls directly.
2020-08-13 08:12:53 +02:00
Åke Forslund
b52cc55f25
Add support for ranges of fallbacks
...
If no range is provided it defaults to 0-100 to be backwards compatible
2020-08-13 08:12:53 +02:00
Åke Forslund
4c87bc23d4
Move padatious service to within the IntentService
2020-08-13 08:12:53 +02:00
Åke Forslund
e93d23f0df
Split out adapt from the intent_service.
2020-08-13 08:12:53 +02:00
Kris Gesling
67bb8e4e83
Merge pull request #2655 from forslund/bugfix/inform-gui
...
Common play information amendments
2020-08-13 01:48:41 +00:00
Aditya
4d8cd10b31
fix pep8 errors
2020-08-12 22:03:38 +05:30
Aditya
61611ea6e2
allow override for platform skill animations
2020-08-12 21:29:49 +05:30
Aditya Mehra
0e4d403268
Merge pull request #7 from MycroftAI/dev
...
Update to latest commit
2020-08-12 21:19:48 +05:30
Kris Gesling
fef49e3f83
Merge pull request #2654 from MycroftAI/feature/update-lingua-franca
...
upgrade Lingua Franca to v0.2.2
2020-08-12 07:31:41 +00:00
Åke Forslund
b24679a17c
Amendments after comments PR comments
...
- Fix playlist_position description
- Make CPS_send_tracklist() require a playlist argument
- change docstring for the playlist type
2020-08-11 23:09:06 +02:00
Kris Gesling
55cd62470f
Merge pull request #2619 from forslund/feature/common-play-inform-gui
...
Add method for updating playback information from skills
2020-08-11 07:14:22 +00:00
Kris Gesling
089dc91fa4
upgrade Lingua Franca to v0.2.2
2020-08-11 14:53:26 +09:30
Åke Forslund
8f4847ff77
Status and track list suggested by @Jarbasal
...
This commit adds the status, extended track info as well as a tracklist
information as proposed by Jarbasal.
2020-08-11 06:58:45 +02:00
Kris Gesling
69a1c1d082
Merge pull request #2644 from forslund/feature/install-defaults
...
Always install default skills before initial load
2020-08-11 01:53:50 +00:00
Kris Gesling
7d446b0222
Merge pull request #2650 from forslund/bugfix/stt-missing-lang
...
set active lang to configured if missing from STT and normalize
2020-08-10 06:36:46 +00:00
Kris Gesling
2270854692
Merge pull request #2649 from forslund/bugfix/extract_duration
...
Let lingua franca check extract_duration lang
2020-08-10 05:57:18 +00:00
Åke Forslund
e9760cdce8
Normalize the lang code to lowercase only
...
This suites lingua franca better
2020-08-10 07:41:50 +02:00
Åke Forslund
6edaa58558
set active lang to configured if missing from STT
...
If the STT doesn't send a lang code fallback to configured language
instead of hardcoded en-us
2020-08-10 07:41:44 +02:00
Kris Gesling
a901b901d3
Merge pull request #2652 from forslund/bugfix/save-settings
...
Fix settings changed check after skill handler
2020-08-10 00:10:58 +00:00
Åke Forslund
6abfca67a6
Fix settings changed check after skill handler
...
Make self._initial_settings have an unique copy of the settings and not
a reference to the original ones.
2020-08-09 08:50:44 +02:00
Åke Forslund
2dde23467c
Let lingua franca check extract_duration lang
...
Mycroft doesn't need to check for supported languages for
extract_duration, lingua_franca handles that internally.
2020-08-07 07:47:11 +02:00
Åke Forslund
49faadee03
Don't include blacklisted skills in defaults
...
Don't try do an install on startup if a blacklisted skill is uninstalled
2020-07-31 09:58:34 +02:00
Åke Forslund
0756da700a
Always install default skills before initial load
...
This checks if all default skills are installed before continuing with
initial load.
For devices with no skills installed on first start this should ensure
that skills are installed before sending the mycroft.skills.initialized
to start precise training and generating the mycroft.ready message
2020-07-29 18:48:53 +02:00
Kris Gesling
a5b7f55ae4
Merge pull request #2634 from forslund/bugfix/wait-for-response-timeout
...
Fix custom timeout for wait_for_response()
2020-07-29 07:03:15 +00:00
Kris Gesling
30177a01ed
Merge pull request #2643 from jmontane/dev
...
Add Festival TTS support
2020-07-28 04:59:59 +00:00
Kris Gesling
e756f96d9d
Merge pull request #2521 from countcretinos/fix/fedora
...
Fix Mimic build on Fedora
2020-07-28 01:35:38 +00:00
Joan Montané
594c838a00
Add Festival TTS
2020-07-27 18:04:27 +02:00
Kris Gesling
273da889f8
Merge pull request #2601 from forslund/feature/service-hooks
...
Service hooks
2020-07-27 04:52:55 +00:00
Åke Forslund
0a04efd88d
Add system for checking audio service readiness
...
The new wait_for_loaded() method will wait until services has been
loaded. It has a 3 minute timeout (default)
This improves the audio service readiness indication to not trigger
until the services are loaded.
2020-07-24 22:12:54 +02:00
Å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
45cb8bec62
Add message for updating playback information from skills
...
This adds the function used by the npr-news-skill and spotify-skill to
communicate their info to the playback control showing the default
playback UI.
The function has the common parameters specified but is setup to be able
to add new functionallity without core changes.
2020-07-20 13:45:14 +02:00
Kris Gesling
6f33cc0553
Merge pull request #2626 from MycroftAI/bugfix/random-vk-fail
...
sleep after skills loaded for any final setup
2020-07-17 23:03:02 +09:30
Kris Gesling
d4abc37861
sleep prior to tests to assist in bug diagnosis
2020-07-17 15:53:59 +09:30
Kris Gesling
fc31079047
Merge pull request #2636 from jamesmf/common-iot-register-fix
...
revert iot dig_for_message
2020-07-15 15:47:17 +09:30
jamesmf
b94b07b35b
revert iot dig_for_message
2020-07-14 23:11:10 -04:00
Åke Forslund
cba284e4a0
Fix custom timeout for wait_for_response()
...
The method didn't forward the selected timeout and only the default wait
was ever used.
2020-07-10 09:11:35 +02:00