Commit Graph

1449 Commits (a86f0478a49f722b7edb7b608da07dce104e136d)

Author SHA1 Message Date
Matthew D. Scholefield a86f0478a4 Add intent fallback system
Also removes multi utterence intent fail. Only makes sense to emit an intent_failure regardless of the amount of intents
2017-08-03 13:49:02 -05:00
Augusto Monteiro 4c1fbcb596 Merge pull request #961 from forslund/bugfix/issue-960
Catch exceptions in user provided stop() method
2017-08-03 12:03:50 -04:00
Åke Forslund db6127a0ed Catch exceptions in user provided stop() method
==== Fixed Issues ====
#960

====  Tech Notes ====
The messagebus handler for "mycroft.stop" halts and exits if an
exception occurs in any methods that are registered to that name. The
handler executes the stop() method that's provided by the user and is
not verified. To ensure that other skills are unaffected exceptions in
the user provided method are caught.

====  Documentation Notes ====
NONE - things like description of a new feature or notes on behavior
changes

==== Localization Notes ====
NONE - point out new strings, functions needing international versions,
etc.

==== Environment Notes ====
NONE - new package requirements, new files being written to disk,
etc.

==== Protocol Notes ====
NONE - message types added or changed, new signals, etc.
2017-08-03 14:14:31 +02:00
Åke Forslund a0ac65ac35 Fix rebase issues introduced with audio subsystem
util/signal.py add missing import time
move tts thread shutdown/clear to audio/speech.py
2017-08-02 16:53:48 -05:00
aatchison 5f5aeedd15 Commit headline -- not longer than this line (50)
Add entry point to mycroft base setup. This allows setuptools to
include it in the build.
==== Fixed Issues ====

====  Tech Notes ====
NONE - explain new algorithms in detail, tool changes, etc.

====  Documentation Notes ====
NONE - description of a new feature or notes on behavior changes

==== Localization Notes ====
NONE - point to new strings, language specific functions, etc.

==== Environment Notes ====
NONE - new package requirements, new files being written to disk, etc.

==== Protocol Notes ====
NONE - message types added or changed, new signals, APIs, etc.
2017-08-02 16:30:54 -05:00
Steve Penrod 8295821f09 Fix Github pull request doc link 2017-08-02 13:14:50 -05:00
penrods a3feed6f01 Add suggestion and examples of imperative text
Add grammar suggestions for consistent git messages.  Following the same
mood makes generation of release notes and working in Github in general
easier.

Based on comments found at:
http://tbaggery.com/2008/04/19/a-note-about-git-commit-messages.html
2017-08-02 12:54:44 -05:00
penrods 6ed479346c Adding commit template and dev_setup.sh support
The commit template provides a developer with a structure to follow
for communicating with others on the mycroft-core project.

====  Tech Notes ====
Please use this template from here on!
2017-08-02 12:54:44 -05:00
Michael Nguyen 58288b4c11 fixed permissions bug 2017-08-02 12:46:05 -05:00
aatchison 9887009240 Upgrage netifaces in requirements.txt to netifaces==0.10.6 2017-08-02 11:57:57 -05:00
aatchison 80d152a95f restricted mock==2.0.0 2017-08-02 11:42:21 -05:00
aatchison 4be137944e Altered prepare-msm.sh to change permissions to the correct user
Added a function to change ownership
Added an ownership check that is always run in the case of a botched run the first time
2017-08-02 10:46:28 -05:00
Michael Nguyen 07b123db89 Merge pull request #944 from forslund/bugfix/issue-943
Remove volume parameter from default wav play cmd
2017-08-02 10:06:39 -05:00
Åke 6a125cd155 Merge pull request #945 from el-tocino/Issue942
==== Fixed Issues ====
#942 

====  Tech Notes ==== 
Separate multiple skills found error from no skill found error.

- Multiple skills found = Err 301
- No skill found = Err 302
2017-08-02 12:25:40 +02:00
Åke e7c55aaa43 Merge pull request #933 from MycroftAI/feature/skill-configuration
Feature/skill configuration
2017-08-02 08:57:28 +02:00
el-tocino 98ee790d33 altered return codes for dupe/missing 2017-08-02 01:29:18 -05:00
Åke Forslund ddf0e3578e Remove volume parameter from default wav play cmd
==== Fixed Issues ====
#943
2017-08-02 08:08:42 +02:00
Augusto Monteiro 738849a30e Merge pull request #941 from MycroftAI/bugfix/issue-940
bugfix/issue-940 change LOGGER to logger
2017-08-01 17:52:39 -04:00
Michael Nguyen b68baf1d57 change LOGGER to logger 2017-08-01 16:39:13 -05:00
Michael Nguyen 12c7302ac7 changed logger to LOGGER 2017-08-01 16:22:49 -05:00
Michael Nguyen 48b26d1fbd added new test and put back is_stored property 2017-08-01 13:52:51 -05:00
vavrek acc3fde7bd Merge pull request #908 from augustnmonteiro/dev
Making Readme.md more contributor friendly
2017-08-01 20:34:46 +02:00
Åke e1a1751519 Merge pull request #433 from forslund/audio-service
Add audio service

==== Fixed Issues ====
NONE

====  Tech Notes ==== 
Adds a separate audio service process. This audio service handles queuing audio and adds the possibility to send audio to different backends (including mpg123, vlc, mopidy and chromecast)

TTS is moved from the clients to this process.

====  Documentation Notes ==== 
audio service skill API should be documented.

==== Localization Notes ==== 
NONE

==== Environment Notes ==== 
The audio service needs to be started together with the other parts of mycroft.
Ideally we should include vlc on the image to allow better control over the playback than mpg123/aplay allows

==== Protocol Notes ====
A bunch of audio control related message bus messages has been added:

mycroft.audio.service.play - start playing a playlist
mycroft.audio.service.pause - pause currently playing list
mycroft.audio.service.resume - resume paused playback
mycroft.audio.service.stop - stop playback
mycroft.audio.service.next - start playing next track
mycroft.audio.service.prev - start playing previous track
mycroft.audio.service.track_info - return information about the currently playing track
2017-08-01 13:23:00 +02:00
Åke Forslund df18f42ae0 Remove debug prints 2017-08-01 11:45:42 +02:00
Åke Forslund 9c49f97421 Audio service is_playing property 2017-07-31 13:37:18 +02:00
Åke Forslund 0e2029d9fe Add support for muting pulse audio streams
when the audio configuration option "pulseaudio" is set to mute running
audio streams will be muted while mycroft is speaking and while mycroft
is listening.
2017-07-31 13:37:18 +02:00
Åke Forslund 6f37d3c8f8 Fix bug in track_info_method
* import Message to allow audio service to reply info
* Add default message to audio service class
2017-07-31 13:37:18 +02:00
Åke Forslund 3aee40274a Fix pep8 issue introduced during rebase. 2017-07-31 13:37:18 +02:00
Åke Forslund 68506cb519 Add basic tests for audio service 2017-07-31 13:37:17 +02:00
Åke Forslund 93a9848a4c Move speech information methods to audio 2017-07-31 13:37:17 +02:00
Åke Forslund a2e0f31dd3 Add playback-control skill to defaults 2017-07-31 13:37:17 +02:00
Åke Forslund 769b4f900e Move text to speech to audio service 2017-07-31 13:37:17 +02:00
Åke Forslund 824503ae4d Volume is now changed in relation to current volume for vlc 2017-07-31 13:37:17 +02:00
Åke Forslund 8d4aabe6ca Correct resume handler 2017-07-31 13:37:17 +02:00
Åke Forslund e1eb61e9d8 Update default setting to new standard 2017-07-31 13:37:17 +02:00
Åke Forslund d012702bde Update control logic for mpg123 process
Removes the cases where the process keeps playing in the background
when a new track is started.
2017-07-31 13:37:17 +02:00
Åke Forslund 839803c958 Rename messages.
As requested by Augusto Monteiro
2017-07-31 13:37:17 +02:00
Åke Forslund 86a557e1ac Docstrings! 2017-07-31 13:37:17 +02:00
Åke Forslund e9a8eb01ca Handle file:// uri's in mpg123 backend 2017-07-31 13:37:17 +02:00
Åke Forslund c81ad57ebf Populate AudioService class with more methods
Pause, resume, next and previous added to the interface.
The play method was updated to add 'file://' to uri's lacking uri type.
2017-07-31 13:37:17 +02:00
Åke Forslund 5c874677cc Add check for valid type of tracks 2017-07-31 13:37:17 +02:00
Åke Forslund 581aafc3b6 Add pychromecast and python-vlc to requirements.txt 2017-07-31 13:37:17 +02:00
Åke Forslund 0749b3c088 Only display message bus messages related to audio service 2017-07-31 13:37:17 +02:00
Åke Forslund 44a7c5ec0c Fix playback_control skill 2017-07-31 13:37:17 +02:00
Åke Forslund 2270448fff Fix pep8 errors 2017-07-31 13:37:17 +02:00
Åke Forslund bddccad7b9 Make service loading more robust 2017-07-31 13:37:17 +02:00
Åke Forslund aab65d8178 Add docstrings. 2017-07-31 13:37:17 +02:00
Åke Forslund 177187bee6 Rename manual_load to load_service. 2017-07-31 13:37:17 +02:00
Åke Forslund bfc2d3eced Starup audio process together with mycroft 2017-07-31 13:37:17 +02:00
Åke Forslund bccc9f78d8 Handle stop 2017-07-31 13:37:17 +02:00