Skill creators rejoice
Get response #1278
get_response()
method added to MycroftSkill. The method allow skill creators to synchronously wait for a users response inside an intent handler. The method takes a dialog reference as argument. The referenced dialog will be spoken and listening will be triggered. The user response will be returned from the method.
def echo(self, message):
response =self.get_response('what.should.I.repeat')
self.speak(response)
Global skill settings #1290
Skill settings are now default per user not per device. This means instead of having multiple entries for a skill under the "Skills" tab a single entry will be visible and used by all devices.
Skiller #1282
skiller.sh script updated. The skiller.sh
script creates a standard template for building a new skill, including skill class, readme and license.
Translate text #1288
New translate methods to help internationalization of skills. The new methods are translate()
, translate_template()
and translate_list()
.
body = self.translate_template('email.template', {'from': data['name']})
self.send_email(self.translate('You have a message!'), body)
Above example will get the localized version of the email.template.dialog
file and render one of the entries as a string. The string will then be sent as body in an e-mail message.
Unnamed intents #1280
IntentBuilder
can now be used with empty names: IntentBuilder('').require('intent')...
. If left empty the handler method name will be used.
Misc changes
- Corrected test coverage #1272
- Speech related fixes, correct
isSpeaking
#1283, Fix protection from intermixing utterances. #1291 - Update CLI, minor fixes and changes to keyboard interface. #1284
mycroft.awoken
is now sent when speech client is awoken from sleep. #1279- fix status messages sent from msm to mycroft messagebus. #1275