Commit Graph

88 Commits (7b9ed611aa0fe1a997b24f9bd4d26f07cb3f4a3d)

Author SHA1 Message Date
Åke Forslund 16437ea621 Switch msm branch to 18.08 2018-08-30 10:57:44 +02:00
Åke 413bee6090 Upgrade msk to 0.3.11 (#1769) 2018-08-28 12:24:38 -05:00
Åke 4aac668a2f Remove depreciated ScheduledSkill (#1731)
- remove the scheduled_skills module
- remove the time_rules module
- remove parsedatetime requirement (only used in scheduled_skills)
2018-08-21 20:53:52 -05:00
Åke fe1b92f603 Upgrade msm to 0.5.18 (#1741)
Fixes double skill install/update when running msm default.
2018-08-15 03:57:24 -05:00
Matthew D. Scholefield 0a66f90fe6 Upgrade to Padatious 0.4.5 (#1734) 2018-08-14 14:20:06 -05:00
Matthew D. Scholefield a233cf4fd8 Upgrade padatious (#1709)
This upgrades Padatious to include a fix with perfect intent matches. Now any perfect match should output a confidence of 1.0
2018-08-01 15:01:45 -05:00
Matthew Scholefield 67714e846e Upgrade mycroft-authored dependencies 2018-07-20 17:43:27 -05:00
Matthew Scholefield 189e0f10ab Refactor Precise engine and support engine timeouts 2018-07-06 00:05:28 -05:00
Åke eb091ea87a
Update requests to bleeding edge (2.19.1) (#1661) 2018-07-04 09:54:28 +02:00
Matthew D. Scholefield 6a26af1ec5
Upgrade msm
This fixes a bug in msk with extract_author
2018-06-28 16:38:19 -05:00
Matthew D. Scholefield 2cae3c91e2
Update Padaos
This fixed issues with Python 3.4
2018-06-27 13:19:09 -05:00
Matthew D. Scholefield 8afde98c7f
Lock padaos version
This forces users to get the new version when they run `dev_setup.sh`.
2018-06-25 15:28:34 -05:00
Matthew D. Scholefield 41ec3829da Upgrade Padatious (#1641)
* Upgrade Padatious to 0.4.3
This upgrade adds a timeout to training and uses a rigid matcher on top of the neural networks to ensure consistency
2018-06-20 07:54:53 +02:00
Matthew D. Scholefield abd1fe7571
Merge pull request #1637 from forslund/feature/remove-monotonic
Use time.monotonic instead of monotonic module
2018-06-14 14:59:13 -05:00
Matthew D. Scholefield 85df3adbb0 Remove Padatious version check
No longer necessary now that we notify users when dependencies are out of date
2018-06-12 16:10:26 -05:00
Åke Forslund be8711a438 Use time.monotonic instead of monotonic module
Replace the monotonic time from the monotonic module with the built in time.monotonic
2018-06-11 16:05:50 +02:00
Matthew D. Scholefield 14897368f7
Upgrade msm and padatious
Padatious upgrade brings in nested parentheses support and slightly optimized network inputs
Msm upgrade brings in a bugfix for git repos with private or invalid remotes
2018-06-08 19:53:45 -05:00
Matthew D. Scholefield 46276c337a
Upgrade msk to 0.3.9 2018-06-08 11:12:06 -05:00
Matthew D. Scholefield 48ef15dbcf Upgrade msm 2018-06-01 17:58:55 -05:00
Matthew D. Scholefield f0208ff429 Add msk in requirements
Also removes skiller.sh since msk has the same functionality via `msk create`
2018-06-01 17:56:30 -05:00
Åke 64b78e34b3
Upgrade msm to 0.5.13 (#1610) 2018-05-24 18:27:33 +02:00
Matthew D. Scholefield 69e4961c0e
Upgrade msm
This change makes pip lock when installing requirements
2018-05-17 17:55:01 -05:00
Matthew D. Scholefield 094271904c
Upgrade msm
This fixes the skill loading too early
2018-05-17 13:01:39 -05:00
Matthew D. Scholefield d720492d69 Upgrade msm
This fixes edge case scenarios with skill updating
2018-05-16 16:31:56 -05:00
Matthew D. Scholefield 28808308b4 Update msm
This brings in a change that normalizes skill names in downloaded skills to lowercase
2018-05-15 17:51:45 -05:00
Matthew D. Scholefield fff89a46ba
Update msm
Brings in new change that fixes skills not updating eventually
2018-05-15 10:38:29 -05:00
Matthew D. Scholefield 4e077b86e3 Upgrade msm 2018-05-14 16:41:06 -05:00
Matthew D. Scholefield 397435afcb Update msm version (#1589) 2018-05-14 20:15:51 +02:00
Matthew D. Scholefield 88e118538d Upgrade msm
This brings in a bug fix that prevents space separated words from having a low confidence in the search
2018-05-10 15:54:50 -05:00
Matthew D. Scholefield 355fd0f084
Upgrade msm
This fixes sudo pip access through a sudoers file
2018-05-10 11:44:56 -05: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
Matthew D. Scholefield a20b5b565c Cleanup skill loading and implement python msm 2018-05-08 13:41:51 -05:00
Åke 5f49ffa23f
Restore pyee 1.0.1 (#1430)
Conflict with Adapt makes the upgrade impossible
2018-02-16 01:46:39 +01:00
Åke ea7c7efee1 Fix cancel_scheduled_event for non-repeating events by updateing pyee to v5.0.0 (#1425)
* Update pyee to v5.0.0

The old version of pyee (1.0.1) could not remove events registered as "once" (instead of "on")
This fixes canceling scheduled events

* Restore MycroftSkill.remove_event() return value

The return statement in remove_event() was missing, probably lost while handling a conflict.
2018-02-15 14:52:18 -06:00
penrods 6c1cdb47b3 Fix startup time-warp issue
Raspberry Pi's don't have a built-in clock, so at boot-up the clock just picks up from when they were last running.  Normally this is corrected very quickly by NTP from an internet server, but if there is no network connection that cannot happen.

When an out-of-the-box Mark 1 or Picroft is being setup, the clock is set to whenever the image was created.  Upon completing the Wifi setup step the NTP service can finally sync with the internet, so time suddenly "jumps" to weeks later -- usually.  In either case (when the date jumps or when the date is erronously months old), there is potential for havoc.

These changes deal with that situation.  Upon network connection, an NTP synchonization is forced.  If it is detected that a major time jump happened
(more than 1 hour), then the user is notified that the clock change requires
a reboot and the system restarts.

Other changes:
* use the new "system." message namespace
* add pause before the system.reboot during a WIPE, allowing reset to totally complete
*
2018-01-17 21:05:51 -06:00
Åke Forslund 6a977ac96b Update Speech recognition module to 3.8.1
As suggested by @turboproc this restores GoogleCloudSTT. For details on the change see https://github.com/Uberi/speech_recognition/releases

==== Fixed Issues ====
#1329

==== Environment Notes ====
SpeechRecognition updated to 3.8.1
2018-01-08 17:39:04 -06:00
Åke 742558046d Python 2/3 compatibility (#1259)
Add Python 2/3 compatibility

====  Tech Notes ====
This allows the main bus, skills and cli to be run in both python 2.7 and
3.5+.

Mainly trivial changes
- syntax for exceptions
- logic for importing correct Queue module
- .iteritems -> future.utils.iteritems when accessing dicts key value
pairs

* Allow audio service to be run in python 3
* Make speech client work with python 3
* Importing of Queue version dependent
* Exception syntax corrected
* Creating sound buffer is version dependant
- Adapt context use range from builtins
- Use compatible next() instead of .next() when walking the skill
directory

* Make CLI Python 3 Compatible
- Use compatible BytesIO instead of StringsIO
- Open files as text instead of binary
- Make sure integer divisions are used

* Make messagebus send compatible
* Fix failing travis

Re-add future 0.16.0

* Make string checks compatible
* basestring doesn't exist in python 3 so it's imported from the "past"
* Fix latest compatibility issues in speech client
- handle urllib
- handle encoding before calling md5

* Make Api.build_json() python 2/3 compatible
2017-12-18 17:24:21 -06:00
Matthew D. Scholefield 2c48610650
Fix FANN dependency by locking to version 2017-12-08 16:50:18 -06:00
Åke 421c37f572
Merge pull request #1226 from ahayworth/feature-replace-google-tts-with-cloud-speech
Add Google Cloud Speech API STT
2017-11-20 09:53:00 +01:00
Matthew D. Scholefield b4226ff27b Remove pystache
On certain platforms it escapes quotes which causes problems. Since we only use it for something as simple as key value replacements, it doesn't make sense to include it as a dependency
2017-11-17 01:36:40 -06:00
Andrew Hayworth 6325c7ae7b Add replacment for Google TTS via Google Cloud Speech API
As noted on the Chromium Dev How-to [1] and on the
SpeechRecognition library docs [2], the Google TTS API
is really not the right API to call. While it's simple,
and allows you to authenticate via a simple token, it is
also limited to a max of *50* requests per day.

That's not a lot. I don't think many people will find that
useful, outside of quick testing (if they can even get an
API key - I couldn't figure out how to generate one that
worked correctly).

This commit introduces a new STT backend, google_cloud, so that
the Google STT backend can be deprecated eventually. To do so, we
needed to:
- Install the Google API Client Library
- Create a new STT class which knows how to turn a provided Google
  JSON credentials file into a string (the SpeechRecognition library
  expects you to pass in the JSON string, not a file path, nor an object).

Any person wishing to use this will need to:
- Enable the Cloud Speech API on the Google Cloud Platform console
- Create a new Service Account Key, and download the credentials to
  a secure location
- Configure that location in mycroft.conf, like so:

  "stt": {
    "google_cloud": {
      "credential" {
        "json": { contents of downloaded credentials }
      }
    }
  }

It's worth noting that the Cloud Speech API has a free quota of
60 minutes per month, which would probably stretch further than 50
individual requests. So for hobbyists, it should be nothing but
a net benefit.

[1] http://www.chromium.org/developers/how-tos/api-keys
[2] https://github.com/Uberi/speech_recognition/blob/master/reference/library-reference.rst#recognizer_instancerecognize_googleaudio_data-key--none-language--en-us-show_all--false
2017-11-15 22:10:00 -06:00
Arron Atchison 9a00ee258a
padatious==0.3.7 2017-11-02 17:07:06 -05:00
aatchison 4d2235692c removed default skills pip requirements from the requirements.txt 2017-11-02 17:03:27 -05:00
Matthew D. Scholefield 9d9d615904 Increment Padatious version to 0.3.7 2017-11-02 15:21:47 -05:00
Matthew D. Scholefield 8dc1dd5ab4 Increment Padatious to 0.3.6
Fixes issue registering entities
2017-10-26 18:59:17 -04:00
Matthew D. Scholefield ef1a6e24c3 Upgrade padatious to fix travis build 2017-10-06 00:06:08 -05:00
Matthew D. Scholefield b6bc4ee482 Increment padatious version number to 0.3.3
This adds a bugfix for empty containers
2017-10-04 21:50:54 -05:00
Matthew D. Scholefield 403aeb9360 Upgrade Padatious to 0.3.2 which brings in entity support 2017-10-03 12:17:02 -05:00
Matthew D. Scholefield a6709033d4 Remove wifi setup 2017-09-29 15:12:47 +09:00
Ethan Ward 1d67b17f00 Update requirements.txt (#1097) 2017-09-18 16:50:24 -05:00