Matthew D. Scholefield
afe8641159
Stability improvements
2018-05-14 16:41:19 -05:00
Åke
ad487cc9fc
Merge pull request #1586 from MycroftAI/feature/configurable-update-interval
...
Make skill update interval configurable
2018-05-14 22:39:26 +02:00
Matthew D. Scholefield
d6f5dd95c5
Make skill update interval configurable
2018-05-14 15:21:36 -05:00
Matthew D. Scholefield
0850f5073a
Fix tests for Python 3
...
- Change print statements
- Change queue import
2018-05-14 14:27:37 -05:00
Matthew D. Scholefield
79bf94e48e
Speed up intent tests by responding to converse requests
2018-05-14 14:27:37 -05:00
Matthew D. Scholefield
154ccd59d7
Expose single threaded training option from Padatious Service
...
This is necessary to prevent a deadlock when training during intent tests using pytest
2018-05-14 14:27:37 -05:00
Åke
d63a747b9f
Enforce integer for positions in mouth display ( #1588 )
...
In python 3 these would default to floats, which trips up the arduino
2018-05-14 11:48:27 +02:00
Matthew D. Scholefield
d1358cc0fc
Fix skill reloading when files in subdirectories change
2018-05-11 12:04:30 -05:00
Åke Forslund
0087803d5d
Fix trying to make integer from skill-id
...
skill id's are now the skill path, and can't be made into integers. This issue hinders padatious skills from running.
2018-05-11 10:30:06 -05:00
Åke
e8682d8fc5
Merge pull request #1581 from forslund/feature/enclosure-1.4.0
...
Bump enclosure version to 1.4.0
2018-05-11 14:28:09 +02:00
Åke Forslund
79d183d59f
Bump enclosure version to 1.4.0
2018-05-11 14:26:06 +02:00
Matthew D. Scholefield
fc8424c9ee
Make skill ids use skill folder
...
This is necessary because in Python 3, hash(x) changes every single start of the application. Using the skill folder makes it consistent. In addition, the skill folder makes it easier to debug parts of the application in comparison to using something like an md5sum
2018-05-10 18:52:17 -05:00
Matthew D. Scholefield
033f5dc010
Add configuration values for msm
2018-05-10 13:11:03 -05:00
Åke
98ede52596
Merge pull request #1572 from MycroftAI/feature/py_msm
...
Cleanup skill loading and implement python msm
2018-05-09 23:25:40 +02:00
Matthew D. Scholefield
6ecf4d986f
Reinstall pip dependencies if virtualenv is removed
...
This keeps track of the skills whose dependencies have already been installed. While it won't automatically register newly installed skills, it will attempt to reinstall dependencies the next boot only one time so it shouldn't be a big issue.
2018-05-09 16:07:04 -05:00
Michael Nguyen
c1a0963dad
Merge pull request #1574 from MycroftAI/bugfix/change-skill-settings-hash
...
Change skill settings hash to use skill name
2018-05-08 20:04:27 -04:00
Matthew D. Scholefield
e86e0546d7
Make settings meta hashes consistent
...
str(dict) in python in implementation defined. json.dumps(..., sort_keys=True) is not
2018-05-08 17:17:45 -05:00
reginaneon
c643cc9368
Typo in the Engine Options
2018-05-08 16:37:20 -05:00
Matthew D. Scholefield
c301a3ca4d
Change skill settings hash to use skill name
...
This prevents issues with the skill settings being dependent on skill folders. This is an issue because the new msm has a new skill naming scheme
2018-05-08 16:23:53 -05:00
Matthew D. Scholefield
a20b5b565c
Cleanup skill loading and implement python msm
2018-05-08 13:41:51 -05:00
Åke Forslund
61aeeb8c00
Fix issue using basestring
...
Checking against basestring was necessary in python two since unicode and string were separate classes. In python3 basestring was removed since different string classes have been removed.
2018-05-04 11:42:13 +02:00
Åke Forslund
bf404b0bbc
Fix python3 issues in serial transmission
...
Added basic conversion between string and bytes for sending data on the serial line.
2018-05-04 11:42:05 +02:00
Åke Forslund
8c5911ecf0
Fix code standard issues
...
- dev_setup.sh - replace `` with $()
- mycroft/skills/core.py remove remove redundant imports
- mycroft/tts/__init__.py remove remove redundant imports
2018-05-03 12:32:21 +02:00
Åke Forslund
8d81b4473b
Fix french "centième" handling
2018-05-02 10:01:04 +02:00
Åke Forslund
5d50d22061
Fix listing skills
...
python3 dict_keys can't be serialized to json, and needs to be
explicitly converted to list
2018-05-02 08:35:17 +02:00
Matthew D. Scholefield
82a61c76c7
Fix infinite skill reloading by disabling folder checks
...
Python 3 modifies the __pycache__ folder which makes the parent folders update their timestamps causing an infinite skill reload
2018-04-27 11:44:07 -05:00
Matthew D. Scholefield
0abc3c78b1
Fix counting function arguments in Python 3
2018-04-27 11:42:54 -05:00
Åke Forslund
5447983999
Use sorted json to perform hash of settings
2018-04-27 08:57:48 -05:00
Matthew D. Scholefield
78a6ec1ceb
Fix cli crash with Python 3
...
This worked in Python 2 because type(4 / 2) == int but in Python 3 type(4 / 2) == float
2018-04-27 08:56:47 -05:00
Åke Forslund
a2993e4ba6
Remove backwards compatibility with python 2.7
2018-04-27 08:51:47 -05:00
Åke Forslund
b200d51d39
Fix test cases under python 3
...
Lots of minor fixes including, sorting dicts, making ints of strings,
MagicMock file spec and some other things
A couple of issues in the mycroft-core code base were identified and
fixed. Most notably the incorrect version check for python three when
adding basestring.
Update .travis.yml
2018-04-27 08:50:46 -05:00
Åke Forslund
8840a43886
Fix hashes in settings for python3
...
convert strings to bytes before hashing
2018-04-27 08:50:46 -05:00
Åke Forslund
d4ba484ad9
Make text client python2/3 compatible
...
- Make str unicode string
- Use BytesIO for python2 and StringIO for python3
2018-04-27 08:50:46 -05:00
Åke Forslund
c6584d603d
Make speech client python3 compatible
2018-04-27 08:50:46 -05:00
devs-mycroft
ad49a48d34
Version bump from 18.2.4 to 18.2.5
2018-04-27 08:59:31 +00:00
Michael Nguyen
afd0dbb084
removed unecessary LOG
2018-04-26 16:18:31 -05:00
Michael Nguyen
e941a1d0a7
removed unknown member from exception object
2018-04-26 16:17:45 -05:00
Michael Nguyen
e05765bc12
change HTTPError exception into RequestException for a more general case
2018-04-26 15:23:10 -05:00
Michael Nguyen
fbca77d8fc
add try catch for failed remote fetch location
2018-04-26 14:39:53 -05:00
Åke Forslund
29a2e14a2f
Fix google tts now playing audio
...
The file extention of the audio was not set properly in the google_tts causing it to fail to playback the synthezised audio
2018-04-26 15:08:35 +02:00
Åke Forslund
d1d4256e05
Fix websocket reconnect
...
Making sure the reconnect code is reached after websocket closed error.
2018-04-19 16:00:01 -05:00
Åke
b63928888b
Merge pull request #1545 from MycroftAI/feature/ssml
...
Add SSML support for TTS
2018-04-19 19:01:54 +02:00
Åke Forslund
d03eb4ed70
Add Microsoft NCSI as a backup to detect connection
...
Since on some networks port 53 is blocked the old method failed on
occation. This adds a backup method using standard requests.
Read https://blogs.technet.microsoft.com/networking/2012/12/20/the-network-connection-status-icon/ for more info on the NCSI check.
2018-04-19 11:02:05 -05:00
Matthew D. Scholefield
ac26131b71
Fix SSML when tag spans multiple sentences
...
Now, sentence splitting is disabled if the utterance contains any xml tags
2018-04-18 14:45:09 -05:00
Matthew D. Scholefield
cbf73d4b30
SSML Changes
...
- Engines now specify if they support ssml rather than the configuration
- The text client strips out ssml tags
- Engines can modify tags via the `self.modify_tag` method
2018-04-18 14:45:09 -05:00
Jarbas
7c6af2017c
add SSML support
2018-04-18 14:45:09 -05:00
Sergio Oller
5e8d8eb1a6
Feature: Allow comments in voc and regex files
...
When loading voc and regex files, lines starting with "#" are now
ignored, so developers and translators can use them to document their
decisions.
==== Fixed Issues ====
2018-04-14 21:53:14 +02:00
devs-mycroft
c6ed6f291b
Version bump from 18.2.3 to 18.2.4
2018-04-12 18:27:21 +00:00
Åke
aa4261252b
Merge pull request #1519 from MycroftAI/feature/stop-sigint
...
Shutdown improvements
2018-04-12 12:07:02 +02:00
Åke Forslund
d61e3c2dd0
Extra safety around skill specific shutdown
...
Catch error in shutdown method of skill and continue with general shutdown
2018-04-12 11:11:04 +02:00
Matthew D. Scholefield
fa11ac7dbe
Rename MycroftSkill.shutdown to MycroftSkill._shutdown
...
This removes the need for skills to call Super(MySkill, self).shutdown()
2018-04-11 21:29:14 -05:00
Matthew D. Scholefield
10bd9a1cf3
Change initial kill to SIGINT
...
This sends a ctrl+c signal to each process which will allow code to exit properly by handling KeyboardInterrupt
Other notable changes:
- create_daemon method used to clean up create daemon threads
- create_echo_function used to reduce code duplication with messagebus
echo functions
- wait_for_exit_signal used to wait for ctrl+c (SIGINT)
- reset_sigint_handler used to ensure SIGINT will raise KeyboardInterrupt
2018-04-11 21:29:10 -05:00
Matthew D. Scholefield
2e005a99e8
Support triggering skill settings update via a message
2018-04-11 15:24:07 -05:00
Matthew D. Scholefield
8cd8eb65b1
Decrease polling to 60 seconds
...
Now that the server uses ETags, it should be fine with polling every minute
2018-04-11 15:24:07 -05:00
Michael Nguyen
3e2f008c12
Merge pull request #1523 from forslund/bugfix/shutdown-sheduled-events
...
Fix cancel_all_repeating_events()
2018-04-10 11:15:11 -05:00
Åke
6d339039de
Merge pull request #1524 from forslund/feature/Jarbas-messagebus-intent-control
...
Add enable/disable intent using the messagebus.
2018-04-06 13:37:24 +02:00
Åke Forslund
58325a83fd
Fix cancel_all_repeating_events
...
Unnamed repeating events caused an exception in
cancel_all_repeating_events, this makes sure the event name is stored
correctly and fixes the issue.
2018-04-06 11:34:36 +02:00
Jarbas
9f1c5e4cbf
External enable/disable intent
...
Allow intents to be enabled or disabled from outside of the skill via
the messagebus.
Adds mycroft.skill.enable_intent and mycroft.skill.disable_intent
2018-04-05 23:29:44 +02:00
Åke
bcc423825c
Merge pull request #1520 from MycroftAI/feature/api-etags
...
Add support for ETag caching
2018-04-05 11:46:59 +02:00
Åke Forslund
851e3b2aa4
Add comments and docstring for the send method
...
Add docstring explaining the basics of the send method.
2018-04-05 11:20:55 +02:00
Greg Cowan
dfa9a65e96
Default skill config to empty dict ( #1521 )
...
This defaults skill's configs to an empty dict instead of None,
which simplifies getting specific values in the config for skills.
It removes the check for None config.
==== Fixed Issues ====
==== Documentation Notes ====
Skill writers no longer need to check for None configs.
2018-04-04 23:12:55 -05:00
Matthew D. Scholefield
9f843993b6
ETags support for all requests
2018-04-03 17:01:03 -05:00
Sergio Oller
69fb9ab4fe
Initial Spanish bits for mycroft-core
2018-03-30 13:46:12 +02:00
devs-mycroft
1dee7fc381
Version bump from 18.2.2 to 18.2.3
2018-03-30 01:19:12 +00:00
Åke
56a7e4cd01
Merge pull request #1512 from forslund/feature/whitelist-spotify
...
Re-enable spotify-skill.
2018-03-29 13:58:37 -05:00
Åke
bc74c36713
Merge pull request #1508 from MycroftAI/feature/notify-backend-down
...
Add proper messages when the backend replies incorrectly
2018-03-29 12:53:34 -05:00
Åke Forslund
f94ee8d795
Load the volume skill before updates
...
Allows the user to adjust the volume during pairing
2018-03-29 12:13:28 -05:00
Åke Forslund
27fcd63e96
Fix error on wait_for_response timeout.
...
Using pyee 1.0.1 handlers registered with once can't be removed. This handles the value error raised in this case.
2018-03-29 12:10:20 -05:00
Åke Forslund
7332c3b344
Re-enable spotify-skill.
...
Remove spotify-skill from the black list
2018-03-29 18:47:20 +02:00
Åke Forslund
de6d3e2f11
Fix deadlock
...
The emitted event "open" will in many cases call ws.emit, and this will
lock if the connected_event isn't set. This makes sure that the
connected_event is set before emitting the open event.
2018-03-29 10:09:11 -05:00
Åke
46f6f734e3
Merge pull request #1509 from MycroftAI/feature/wait-for-messagebus
...
Wait for messagebus before emitting a message
2018-03-28 19:28:35 -05:00
Matthew D. Scholefield
5c8cf053a0
Remove code that waits for websocket to open
...
This is unnecessary now that WebsocketClient does this automatically
2018-03-28 19:19:56 -05:00
Matthew D. Scholefield
e6a211a0aa
Wait for websocket to connect before interacting with messagebus
2018-03-28 18:40:50 -05:00
Åke Forslund
424001c973
Fix utterance_remainder for normalized keywords
...
If the sentence is normalized the utterance_remainder() method fails if
the intent keyword expects normalization.
Example the joking skill has an intent "tell me joke" which is the
normalized equivalent of "tell me a joke". In this case the intent wouldn't be removed from the remainder and instead of an empty string the utterance remainder would contain "tell me joke"
2018-03-28 16:17:53 -05:00
Åke Forslund
2e0a622447
Log exception and exception message
2018-03-28 15:38:14 -05:00
Åke Forslund
26d6e674df
Reduce audio service logging verbosity
...
- Duplicates removed
- Many debugging messages reduced to debug level
2018-03-28 15:38:14 -05:00
Matthew D. Scholefield
eb100706df
Add proper messages when the backend replies incorrectly
2018-03-28 11:48:05 -05:00
Michael Nguyen
2caf77bc9d
Merge pull request #1481 from forslund/feature/repeating-event-safety
...
Feature/repeating event safety
2018-03-27 19:15:32 -05:00
jarbasai
24d022d00a
active flag
2018-03-27 18:08:49 +02:00
jarbasai
5905a6460b
Add mplayer audio backend
2018-03-27 18:08:32 +02:00
Åke
339c23eb83
Merge pull request #1503 from MycroftAI/feature/mycroft_deepspeech_stt
...
Feature/mycroft deepspeech stt
2018-03-23 17:08:50 -05:00
Michael Nguyen
1683e54389
remove exception
2018-03-23 16:58:33 -05:00
Åke
e87b247fd7
Merge pull request #1501 from JarbasAl/bug_fix_utterance_remainder
...
Make Message.utterance_remainder more robust.
2018-03-23 14:20:44 -05:00
Åke
eac0d81e94
Merge pull request #1502 from JarbasAl/bug_fix_audio_service_old_class_style
...
AudioService - no old style class
2018-03-23 13:17:04 -05:00
Michael Nguyen
66991f8d25
added exception
2018-03-23 11:46:21 -05:00
jarbasai
8cf915b83e
no old style class
2018-03-23 15:07:21 +00:00
jarbasai
364370abad
more robust utterance_remainder
2018-03-23 14:59:51 +00:00
Michael Nguyen
7692389317
remove logs
2018-03-22 13:33:10 -05:00
Michael Nguyen
6dbb2182ff
added mycroft deepspeech factory in stt
2018-03-22 13:28:24 -05:00
InconsolableCellist
7447dbd5ea
Simple log output change to prevent confusion ( #1497 )
...
Modified the debugging message output after an utterance is complete, to
make it clear that metric data is only sent if opt_in is enabled.
This addresses #1494 , which I filed in error, thinking that opt_in was
never checked (due to reading the log output and not knowing it was
checked elsewhere)
==== Fixed Issues ====
==== Localization Notes ====
Slight change to existing, unlocalized text
2018-03-22 13:18:11 -05:00
Åke
06a82bd308
Merge pull request #1496 from MycroftAI/bugfix/remove_unused_function
...
Remove unused function in skill settings
2018-03-22 10:46:18 -05:00
jarbasai
8d277747a9
honor "active" flag for audio backends
...
The backends are active by default, but can be enforced or disabled with
the active flag.
2018-03-22 04:44:56 +01:00
Åke
69ab3498c6
Merge pull request #1488 from JarbasAl/feature_audio_clean_shutdown
...
Clean audio service shutdown
2018-03-21 22:30:06 -05:00
jarbasai
6fefac1c88
add stop
2018-03-22 04:17:33 +01:00
jarbasai
7b4a3b49ed
clean shutdown
2018-03-22 04:17:24 +01:00
Åke
1e85830de9
Merge pull request #1486 from JarbasAl/pt-pt-core_dialog
...
Add missing pt-pt dialog files
2018-03-21 21:43:29 -05:00
Michael Nguyen
d6b4037258
remove unused function in skill settings
2018-03-21 14:49:31 -05:00
jarbasai
a865930fd7
fix previous
2018-03-17 16:23:21 +00:00
Åke Forslund
764d200d1b
Only allow one repeating even of each type
...
Previously if duplicates of a skill should be launched or a skill isn't properly
shutdown when reloaded multiple handlers could be registred. This commit disables multiples of repeating events.
2018-03-15 12:39:25 +01:00
Åke Forslund
6dae1bb328
Do not reschedule an active repeating event
...
- Hinder multiple events with the same name to be registered
- Automatically cancel repeating events when skill is shutdown
2018-03-15 11:42:08 +01:00