Commit Graph

816 Commits (23c445a904b0390657e02c11e7dee4091a71ca3c)

Author SHA1 Message Date
penrods 23c445a904 This fixes several issues related to wake-up words and audio recording, including #595.
* The wake up sound is now played synchronously, thus not included in the recorded audio
* The minimum recorded phrase must be at least 0.5 seconds (instead of 0.1), and must be continuously quiet for that duration
* The silence threshold is reset every time we begin listening for a wakeword
* The silence threshold adjusts upward to just above the ambient sound while waiting for the wake-word
* Reformatted some comments to use Google-style docstrings, and added more comments
2017-04-13 19:08:07 -05:00
kfezer 0036f404b5 Merge pull request #654 from MycroftAI/feature/issue-653
The configuration values were poorly documented.  See issue #653
2017-04-13 20:26:54 +00:00
Augusto Monteiro e3e3a89aaa Merge pull request #649 from MycroftAI/feature/issue-648
Several command line interface (CLI) improvements
2017-04-13 12:48:38 -07:00
penrods 00eeadd9df Curse you pep8! :) 2017-04-13 12:43:19 -07:00
penrods 220043cd4e Fixing PEP8 errors 2017-04-13 09:07:22 -07:00
penrods 35a213d4db The configuration values were poorly documented. See issue #653
This addresses this in several ways:
* Created mechanism to load 'commented' JSON (using '//' or '#' comments on a single line)
* Embedded comments into the mycroft.conf, indicating use, legal values, and where they get overridden
* Create ConfigurationManager.instance() static method to replace ConfigurationManager.get().  This produces more readable code like:
  ConfigurationManager.instance().get("value") instead of ConfigurationManager.get().get("value")
* Made _ConfigurationListener 'private'
* docstring'ed things
2017-04-13 01:09:50 -07:00
penrods a2053712ee More CLI fixes/enhancements for #648
* Added log filtering commands to the CLI.  So you can do things within the CLI like:
   :filter DEBUG  (filters out any lines containing "DEBUG")
   :filter remove DEBUG (stop filtering "DEBUG")
   :filter "not this" (filters out any log lines containing "not this")
   :filter list (displays active filters)
   :filter clear (removes all filters)
* Added a ~/.mycroft-cli.conf configuration file.  It currently contains the last-used filters.
* The mycroft.sh scripts were firing up the "fancy" CLI in the background and logging it constantly.  This resulted in huge log files because of the constantly updated microphone level indicator.
2017-04-12 00:15:37 -07:00
Augusto Monteiro 787af8ae64 Merge pull request #652 from JarbasAI/patch-9
change loading order
2017-04-11 09:25:45 -07:00
JarbasAI 805aefc0d7 pep8 2017-04-11 16:24:14 +01:00
JarbasAI faf2e9f3b3 change loading order
load_order = [DEFAULT_CONFIG, REMOTE_CONFIG, SYSTEM_CONFIG, USER_CONFIG]
2017-04-10 20:29:54 +01:00
Steve Penrod 6b496662f4 Google-style docstrings and other minor details 2017-04-10 00:19:55 -07:00
Åke Forslund f4c1f4d2e5 Convert unicode string to bytes before hashing
Ignore flag set for extra safety.
2017-04-09 23:50:26 -07:00
Åke Forslund 7b0703f72b Catch and show errors in mute_and_speak() 2017-04-09 23:50:26 -07:00
penrods 16c9fa9f83 Several command line interface (CLI) improvements:
* The chat history section now wraps long text strings
* Redesigned the section title to combine the header and underscore lines into a single line to save screen space
* Recolored several screen elements to make more sense.  The query and the chat history now retain the cyan color, etc.
* The screen fully refreshes periodically, cleaning up garbage that might have accumulated from outside text being written to the terminal
* The mic meter no longer wraps around the screen when level numbers are too long
2017-04-09 18:16:45 -07:00
Augusto Monteiro f758c12da3 Merge pull request #645 from forslund/bugfix/issue-644
Update skill container to use Intent class
2017-04-08 03:18:52 -07:00
Åke Forslund e9c94d0305 Update skill container to use Intent class
the command line to enable the intent parsing is now --enable-intent
2017-04-08 11:41:31 +02:00
Augusto Monteiro 6e5f060257 Merge pull request #646 from forslund/pep-8-fix
Fix PEP-8 issues in dev branch
2017-04-08 02:22:17 -07:00
Åke Forslund 95641451fa Fix PEP-8 issues 2017-04-08 11:08:13 +02:00
DMendyke ed21c1471c Merge pull request #638 from MycroftAI/dmendyke.service.instance
Code to prevent multiple instances of a service
2017-04-07 15:40:26 -07:00
Augusto Monteiro 770c84d9bc Merge pull request #643 from cincodenada/fix-setup
Fix creation of /opt/mycroft/skills
2017-04-07 14:41:51 -07:00
Joel Bradshaw 5e55a117c8 Fix creation of /opt/mycroft/skills 2017-04-07 21:20:34 +01:00
Augusto Monteiro 36045fd44e Merge pull request #639 from MycroftAI/feature/issue-636
#636 - Removing reference to older skills folders
2017-04-07 12:25:57 -07:00
Augusto Monteiro f4c5af0cd8 Merge pull request #641 from CloneMMDDCVII/patch-1
corrected the "stop" process
2017-04-07 10:03:14 -07:00
BrokenClock 2833104a3e corrected the "stop" process
changed start-mycroft voice (surely a typo) to stop-mycroft-voice
2017-04-07 18:52:15 +02:00
Augusto Monteiro 'Sparky 621c7c4437 #636 - Fixing pep8 2017-04-06 17:14:18 -07:00
Augusto Monteiro 'Sparky 1087d0e3b4 #636 - Adding loglevel 2017-04-06 17:14:18 -07:00
Augusto Monteiro 'Sparky b35c012692 #636 - Adding ignore logs 2017-04-06 17:14:18 -07:00
Augusto Monteiro 'Sparky 13fe3fe12a #636 - Removing old skills folder 2017-04-06 17:14:18 -07:00
Augusto Monteiro b995404739 Merge pull request #635 from MycroftAI/feature/issue-546
#546 - Removing Skills from core and installing using msm
2017-04-06 17:03:07 -07:00
Augusto Monteiro 'Sparky 54db8c6c33 #546 - Fixing pep8 2017-04-06 16:55:09 -07:00
Augusto Monteiro 'Sparky 18f4ff3e90 #546 - Fixing pep8 2017-04-06 16:42:43 -07:00
Augusto Monteiro 'Sparky 2e172433aa #546 - Adding feedback to user that mycroft is updating 2017-04-06 16:30:58 -07:00
Augusto Monteiro 'Sparky f708a1e15c #546 - Using events 2017-04-06 16:08:23 -07:00
dmendyke 0bfbe58467 pep8 2017-04-06 15:57:34 -07:00
dmendyke c47bc55bc1 Pep8 2017-04-06 15:56:34 -07:00
dmendyke c7645be49c Added PID locking to both 'voice' and 'service' services. 2017-04-06 12:59:31 -07:00
Augusto Monteiro 'Sparky b5aeca02ac #546 - Removing unsed import 2017-04-05 17:11:20 -07:00
Augusto Monteiro 'Sparky aeb73054da #546 - Installing Default Skills 2017-04-05 16:46:54 -07:00
Augusto Monteiro 'Sparky 1f59c50df5 #546 - Removing Skills 2017-04-05 16:23:42 -07:00
dmendyke f81d5b1249 Added locking PID file creation to 'skills' service 2017-04-05 15:16:32 -07:00
Augusto Monteiro 'Sparky 9728e645bc #546 - Adding Skill Install 2017-04-05 15:11:45 -07:00
Augusto Monteiro 'Sparky f76685d46d #546 - Removing prioritary skills loading 2017-04-04 17:11:33 -07:00
Augusto Monteiro 'Sparky 1150fc9a54 #546 - Making Intent a class instead of skill 2017-04-04 16:48:40 -07:00
Augusto Monteiro 'Sparky b89ffcfd37 #546 - Removing skills 2017-04-04 11:12:11 -07:00
Augusto Monteiro 02cccc1c8a Merge pull request #631 from MycroftAI/feature/issue-630
#630 - Fixing SkillInstaller, using text to match instead of exit code
2017-04-03 15:21:46 -07:00
Arron Atchison 729401fd80 increment version to 0.8.8 2017-04-03 14:28:27 -07:00
Arron Atchison ff01f929eb Added variable in travis.yml and a check in install-msm.sh to disable creating opt/mycroft/skills 2017-04-03 13:33:28 -07:00
Arron Atchison c8c3b3d67f checking to see if opt/mycroft/skills exists and is writable 2017-04-03 12:30:47 -07:00
Augusto Monteiro 'Sparky 4d8f7f6e13 #630 - Updating msm install script 2017-04-03 11:45:26 -07:00
Augusto Monteiro 'Sparky 12620694b3 #630 - Fixing SkillInstaller, using text to match instead of exit code 2017-04-03 11:18:56 -07:00