Commit Graph

987 Commits (b38af90facebfa2bbb8c07fc4ee5d2e006afd4a7)

Author SHA1 Message Date
Åke Forslund b38af90fac fix pep8 2017-06-13 14:17:21 +02:00
penrods 582b77891e One more pass at onboarding, including a major bug fix:
* BUGFIX: The big bug was calling is_paired() during wake_word_in_audio().  When not paired, that call hit the server, taking about a second.  Since it happened multiple times a second, the audio buffers got backed up hugely.  This resulted in weird behavior later as the buffers get cleared out.
* Added mycroft.api.has_been_paired(), which just looks for the pairing key (it does not validate it is still active with the server, like is_paired())
* The enclosure now checks for internet connectivity and kicks off the wifisetup process, not the wifisetup client itself.
* During the "onboarding" process, the microphone is muted using the new "mycroft.mic.mute" message.  After pairing completes, the "mycroft.mic.unmute" is expected to be sent from the pairing skill.  Unmuting again after a re-pairing is harmless.
* mute_and_speak() is smart enough to not unmute itself when complete if muted before
* util.check_for_signal() now accepts -1 as the lifetime.  This means it never times out.
* util.stop_speaking() is more intelligent about shutting down the spoken text (including text that has been split at periods) and visemes
2017-06-13 05:35:06 -05:00
penrods 32e32ed185 Minor onboarding refinements
* The wifi setup no longer stops after 5 minutes unless already paired (i.e. still onboarding)
* The mouth resets on wifisetup stop (clearing the scrolling home.mycroft.ai)
* Changed several ConfigurationManager.get() calls to ConfigurationManager.instance().  Exactly the same, but .instance() is clearer/preferred.
* Added a mycroft.util.stop_speaking() method.  Not perfect, but works for now and can be replaced later when AudioManager is in place.

A forthcoming change to the pairing skill will utilize the stop_speaking method.
2017-06-12 02:57:22 -05:00
Arron Atchison a5592d8216 bump version to 0.8.15 2017-06-07 21:13:28 -05:00
Steve Penrod c824c03611 Feature/onboarding bug (#811)
* Implementing changes to out-of-the-box experience, providing an "onboarding" process.

* Added a mycroft.api.is_paired() method
* Added mycroft.util.is_speaking and mycroft.util.wait_while_speaking() methods
* RESET now waits for the spoken notice to complete
* Stopped the "Checking for updates" and "Skills updated" prompts (commented out for now, probably will eliminate)
* Wifi setup filters out hidden ("x00") networks
* Visemes should keep up better if they get behind (will skip)
* Mimic is now searched for on the users path
* Onboarding process:
  - wifi setup starts automatically
  - User is walked through the process
  - wake word and button pressing are ignored
  - At end, a short tutorial is given

* Fixing pep8 whitespace errors... grrr

* Typo in onboarding changes prevented pairing for auto-starting

The command "pair my device" needed to be sent as an array, ["pair my device"]
2017-06-07 19:40:34 -05:00
penrods 84dd10e243 Fixing pep8 whitespace errors... grrr 2017-06-07 11:45:06 -05:00
penrods ffc3f6ec60 Implementing changes to out-of-the-box experience, providing an "onboarding" process.
* Added a mycroft.api.is_paired() method
* Added mycroft.util.is_speaking and mycroft.util.wait_while_speaking() methods
* RESET now waits for the spoken notice to complete
* Stopped the "Checking for updates" and "Skills updated" prompts (commented out for now, probably will eliminate)
* Wifi setup filters out hidden ("x00") networks
* Visemes should keep up better if they get behind (will skip)
* Mimic is now searched for on the users path
* Onboarding process:
  - wifi setup starts automatically
  - User is walked through the process
  - wake word and button pressing are ignored
  - At end, a short tutorial is given
2017-06-07 11:45:06 -05:00
Arron Atchison 7d1d2cefcf enclosure version bump to 0.3.1 2017-06-07 11:25:41 -05:00
kfezer fb89ae99a8 Merge pull request #798 from forslund/bugfix/issue-797
Remove catching of KeyboardInterrupt from signal handler
2017-05-31 10:44:13 -07:00
kfezer 3988da5ffb Merge pull request #692 from forslund/feature/issue-691
#691 - adding setting per skill
2017-05-30 16:47:33 -07:00
kfezer 104dda1ab1 Merge pull request #774 from forslund/feature/update-config
Update TTS, STT and listener when websettings are changed
2017-05-30 16:45:42 -07:00
kfezer 527cebd5aa Merge pull request #794 from forslund/feature/issue-778
Make wake word listener have length depending on number of phonemes
2017-05-30 16:27:31 -07:00
kfezer 6e00b43acf Merge pull request #793 from ProsperousHeart/dev
Adding Extraction of Numbers
2017-05-30 15:10:13 -07:00
ProsperousHeart ae5d6273bc PEP8 Fix To Test File 2017-05-30 16:18:11 -05:00
ProsperousHeart 88acee1bc2 Fixed PEP8 for number extraction addition 2017-05-30 14:30:41 -05:00
Åke Forslund 80b2334b3a Remove catching of KeyboardInterrupt
Catching Keyboard interrupt is counter productive here as the previous
signal handler might be SIGINT which works by raising KeyboardInterrupt.

This has caused ctrl+c to remove the lock file but not stop the process.
2017-05-29 07:17:38 +02:00
Åke Forslund ee90e8f50e Make wake word listener have length depending on number of phonemes 2017-05-26 07:50:49 +02:00
ProsperousHeart 5ad8e4ac74 Adding Extraction of Numbers 2017-05-25 18:31:43 -05:00
Ashwin Venkatesan e714263330 use 'a' if numerator is 1 2017-05-25 11:43:05 -07:00
Ashwin Venkatesan 98e6847282 modify test to use 'a' if numerator is 1 2017-05-25 11:43:05 -07:00
Ashwin Venkatesan 1793757e60 Fix pep8 issues 2017-05-25 11:43:05 -07:00
Ashwin Venkatesan 4ec351eef6 Fix bug in non speech nice number format 2017-05-25 11:43:05 -07:00
Ashwin Venkatesan 968c51dd69 Add test for non speech nice number format 2017-05-25 11:43:05 -07:00
Ashwin Venkatesan 3e15f6d64c Add nice_number function to format decimals to english 2017-05-25 11:43:05 -07:00
Ashwin Venkatesan e7e29b2edd Add tests for nice_number formatting 2017-05-25 11:43:05 -07:00
Ashwin Venkatesan fdae0a08a2 Add simple vulgar fractions test 2017-05-25 11:43:05 -07:00
Augusto Monteiro 60867fc96a Merge pull request #782 from forslund/feature/issue-781
Use exit status of msm to determine install success
2017-05-23 15:14:25 -03:00
Åke Forslund 986cf55d1b Use exit status of msm to determine install success
- msm will now return immediately if an error occurs
- install_default_skills now checks exit status instead of text output
2017-05-23 07:47:06 +02:00
Åke 76bb19b808 Merge pull request #754 from forslund/bugfix/issue-715
Remove ignoring SIG_CHLD
2017-05-22 22:27:31 +02:00
Arron Atchison 659d9a2bf3 removed "uppercase" from wifi setup dialog 2017-05-22 14:17:09 -05:00
Arron Atchison 5da2420686 Bump version to 0.8.14 2017-05-22 14:13:11 -05:00
aatchison 9cc83c6ecc fixed typo in mycroft didn't catch that dialog 2017-05-22 13:42:23 -05:00
aatchison 01730856aa changed wifi setup password to 12345678 2017-05-22 13:42:23 -05:00
Åke Forslund b31c7b6647 Add docstrings. 2017-05-22 19:12:00 +02:00
Augusto Monteiro d35f1b15be Merge pull request #730 from MycroftAI/feature/skill-generator
Adding a script to generate a skill
2017-05-22 13:34:14 -03:00
Augusto Monteiro 'Sparky 93accbafa6 Adding a script to generate a skill
* Creating a skill inside skill folders
* Creating the whole skill structure
* Creating a basic __init__
2017-05-22 12:53:50 -03:00
Åke Forslund 925cadc19e Add support for switching tts and settings
- If tts config hash has changed re-initialize tts
- Cache is cleared on mimic initialization
2017-05-20 21:43:53 +02:00
Åke Forslund 7da9f5a965 Add functionality to update listener/STT config
When a new configuration is discovered the producer and consumer is shutdown, the config is read and a new producer-consumer pair is launched.
2017-05-20 21:38:35 +02:00
Åke Forslund 731fb56625 Use normal load method to update configs.
This will apply normal order of config. i.e. a remote config can't overwrite local configurations.
2017-05-20 21:38:23 +02:00
Åke Forslund bcd7776a38 Fix grammar issue. 2017-05-20 08:31:39 +02:00
Åke Forslund 3a71f85301 Replace load_settings() with a settings property
settings are now loaded and created when required and not directly at
load of skill.
2017-05-20 08:31:22 +02:00
Åke Forslund 0ef94689bf Add docstrings. 2017-05-20 08:31:07 +02:00
Åke Forslund e79dee92e9 Only store settings object after new write 2017-05-20 08:30:31 +02:00
Åke Forslund 40010e90f0 Store settings object on shutdown 2017-05-20 08:30:07 +02:00
Åke Forslund b8b05e6543 Add unittest for SkillSettings 2017-05-20 08:29:27 +02:00
Åke Forslund b6a34f8cee Add skill settings to skills 2017-05-20 08:29:05 +02:00
Åke Forslund 4912573cab Remove ignoring SIG_CHLD
Ignoring SIG_CHLD can be convenient but parts of the python standard
library relies on the behaviour of SIG_CHLD and will not work correctly
in this configuration.
2017-05-20 08:16:52 +02:00
Augusto Monteiro 1518444f6d Merge pull request #611 from SoloVeniaASaludar/bugfix/issue-610
i18n: language codes are not always two word
2017-05-19 22:57:46 -03:00
Arron Atchison 68be4282e6 Update __init__.py 2017-05-18 16:53:10 -03:00
penrods f9987c7c55 Converting last_internet_notification to a class instead of instance variable
I'm not 100% certain why this is needed, to be honest.  Maybe something I don't get about Python and threads?  This fixes double-announcements about connecting to the internet.
2017-05-18 16:53:10 -03:00