Commit Graph

1864 Commits (bfa26e69166911886dd0e7e6884ba3dc017db443)

Author SHA1 Message Date
Åke Forslund bfa26e6916 Fix issues reported by codacy 2017-11-10 10:24:59 +01:00
Åke Forslund 8527074ee3 Refactor audio service
====  Tech Notes ====
- Encapsulate the audio service into a class to reduce the number of
global variable.
- Remove redundant code
2017-11-10 10:24:59 +01:00
Åke Forslund 441436adbf Add queue command to audio service
==== Tech Notes ====
queue command will start playback if no playback is running.
mpg123 and vlc services updated support queueing tracks while playing

==== Protocol Notes ====
mycroft.audio.service.queue message added
2017-11-10 10:24:59 +01:00
devs-mycroft fda6b98fd5 Version bump from 0.9.4 to 0.9.5 2017-11-10 05:46:21 +00:00
penrods a4db13a640 Remove one more subshell 2017-11-09 15:55:00 -06:00
penrods 4c9bbee680 Remove usage of bash subshell in MSM
Remove usage of bash subshell in MSM for invocation of the
mycroft.message.send module.  The virtualenv wouldn't be created in that
subshell, breaking Github-style installs of Mycroft.
2017-11-09 15:55:00 -06:00
penrods 38d7a99b93 Remove offensive spaces
Bash likes "rc=$?", not "rc = $?"
2017-11-09 15:55:00 -06:00
Åke 01d47fb849
Merge pull request #1199 from MycroftAI/feature/precise
Precise Wake Word Listener
2017-11-09 21:27:46 +01:00
Matthew D. Scholefield ec223dcec9 Add wake word module hash to filename 2017-11-09 13:58:44 -06:00
Åke Forslund bcd88c07ce Move session config from global scope
====  Tech Notes ====
As soon as mycroft, mycroft.api or mycroft.skills.core were imported the
configuration was loaded (including reaching out to the web config).
This will reduce unneccessary configuration loadings and make it easier
to handle configuration in the tests.
2017-11-09 13:55:38 -06:00
Åke Forslund b08cf2bf42 Add tests for creating pocketsphinx hotwords
Default to pocketsphinx when hotword config doesn't hit a predefined
hotword config
2017-11-09 13:54:48 -06:00
Matthew D. Scholefield ed1deeb259 Make bool assignment more concise 2017-11-09 13:36:03 -06:00
Matthew D. Scholefield 5694b7f645 Extract precise server settings into config file
This allows changing the server in the future without an upgrade
2017-11-09 13:36:03 -06:00
Matthew D. Scholefield 788dc5d492 Fix downloading precise every startup 2017-11-09 13:36:03 -06:00
Matthew D. Scholefield b3f11d849a Add Precise hotword engine 2017-11-09 13:36:03 -06:00
mycroft-developers 558179a1bd
Merge pull request #1215 from MycroftAI/feature/fix-requirements
MSM rerun of skill requirements.txt once per session
2017-11-09 13:16:17 -06:00
penrods 8a1500f76a MSM rerun of skill requirements.txt once per session
A recent PR (#1192) eliminated the requirements that only applied to default
skills, not to the core itself.  However this caused problems for skills that
were previously installed and had their PIP requirements satisfied by the
packages that came along with the mycroft-core Debian package previously.

As a hackinfix, we now re-run PIP on each skill during the MSM update, but
to limit the performance impact this only happens once per session.  We
shouldn't to removing packages again in the future, so this should be a
one-time act that gets removed from MSM in the future (like at 18.02).
2017-11-09 13:06:37 -06:00
Åke Forslund 9bb1d18161 Use autoremove when removing mycroft-mark-1
remove will only remove the meta package, autoremove will remove the
meta package and all packages installed as dependencies for that
package.
2017-11-09 12:52:40 -06:00
Åke 15c4c94a71
Merge pull request #1207 from MycroftAI/bugfix/record-length
Fix wake word record length
2017-11-09 19:38:22 +01:00
Matthew D. Scholefield 0dc3dc1eab Fix sec_to_bytes 2017-11-09 11:30:30 -06:00
Matthew D. Scholefield d67f8b4bcf Change unit back to milliseconds and length back to 120ms 2017-11-09 11:30:30 -06:00
Matthew D. Scholefield 18690d358e Add user id to wake word upload
This is used to remove data retroactively from dataset
2017-11-09 11:30:26 -06:00
Åke Forslund d6c5c5c30e Add "all" option to stop-mycroft.sh
Adding the "all" option makes the syntax for stop-mycroft.sh mirror the syntax
for start-mycroft.sh
2017-11-09 10:41:24 -06:00
Åke b75d6d2539
Merge pull request #1211 from MycroftAI/feature/skill-announcement
Add optional skill announcement message

==== Tech Notes ====
- A Skill can now implement the get_intro_message() method, which can return a
string to be spoken the very first time a skill is run.  This is intended to
be an announcement, such as further steps necessary to setup the skill.

- Stopped generation of the Error message when the expected StopIteration
occurs on a intent failure.  This confused new developers and poluted the logs.
2017-11-09 13:58:55 +01:00
Åke Forslund 7699da9b84 Minor corrections of settings docstrings 2017-11-09 13:43:04 +01:00
Åke Forslund 8da1589ce2 Fix pep8 issues 2017-11-09 13:24:42 +01:00
penrods bf61cae4de Add optional skill announcement message
A Skill can now implement the get_intro_message() method, which can return a
string to be spoken the very first time a skill is run.  This is intended to
be an announcement, such as further steps necessary to setup the skill.

Also stopped generation of the Error message when the expected StopIteration
occurs on a intent failure.  This confused new developers and poluted the logs.

Finally, corrected some documentation typos.
2017-11-09 04:34:00 -06:00
Matthew D. Scholefield dba2c540af Fix wake word record length 2017-11-08 14:21:07 -06:00
Åke 363372cd26
Merge pull request #1201 from theCalcaholic/feature/msm-improvements
Minor improvements to the msm tool

==== Tech Notes ====
Add `msm list` and `msm info` commands
2017-11-08 19:28:23 +01:00
Åke a6cbe4539e
Merge pull request #1195 from akailash/dev
Adding a stop() function to audioservice.py
2017-11-08 00:02:37 +01:00
Michael Nguyen 2771e71e83
Merge pull request #1182 from MycroftAI/feature/improve-mycroft-use
Add 'home' and 'home-test' to mycroft-use.sh
2017-11-07 16:39:36 -06:00
Michael Nguyen 864128c9c4
Merge pull request #1196 from forslund/bugfix/missing-config-import
Configuration system corrections
2017-11-07 16:32:47 -06:00
Michael Nguyen 15ea88a8ea
Merge pull request #1189 from forslund/test/event-scheduler
Test/event scheduler
2017-11-07 16:17:54 -06:00
Tobias Knöppler 255acb4b58 Issues-1202 - Color `msm list` output 2017-11-07 19:12:32 +00:00
Tobias Knöppler (3knoeppl) e1212ceb1e Print message if no readme was found. 2017-11-07 17:37:20 +01:00
Tobias Knöppler (3knoeppl) 986797ac09 Fix readme not resolved correctly for some skills. 2017-11-07 17:33:38 +01:00
Åke Forslund 9ce3c32688 Allow loading config directly from strings
====  Tech Notes ====
Before the refactoring of the configuration system the
ConfigurationManager allowed loading config files directly from strings.
This commit restores that functionality
2017-11-07 13:28:46 +01:00
Tobias Knöppler b121e3ce37 Add missing msm command to `msm help` output. 2017-11-07 05:17:08 +00:00
Tobias Knöppler ba45efe957 Add `msm info <skill>` command which displays information about a skill. 2017-11-07 05:16:32 +00:00
Tobias Knöppler 9a1de05785 Indicate which skills are installed when executing `msm list`. 2017-11-07 05:15:53 +00:00
Åke 096ffeeb4e
Merge pull request #1192 from MycroftAI/remove-default-skills-deps
Removing default skill pip dependencies
2017-11-06 15:51:23 +01:00
Åke Forslund 9e67ba5614 Fix incorrect reference in patch 2017-11-03 09:38:09 +01:00
Åke Forslund baa5fbeff4 Fix file docstring. 2017-11-03 08:10:12 +01:00
Åke Forslund 6e4d91578b Add test for sending event 2017-11-03 08:10:12 +01:00
Åke Forslund 82b1e48571 Mock loading scheduler data 2017-11-03 08:10:12 +01:00
Åke Forslund 9050bad696 Add some more docstrings 2017-11-03 08:10:12 +01:00
Åke Forslund 3004aada98 Add test cases for EventScheduler class
====  Tech Notes ====
- Add test cases
- Slight refactoring of EventScheduler class to make it easier to test
2017-11-03 08:10:12 +01: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
Michael Nguyen 28e0ae9200
Merge pull request #1198 from MycroftAI/bugfix/active-skills
Fix Padatious problems
2017-11-02 16:56:35 -05:00