Skip to content

Commit d1e24ca

Browse files
committed
New Feature: Increase/Decrease the master speakers volume.
1 parent 4c891cb commit d1e24ca

File tree

2 files changed

+34
-6
lines changed

2 files changed

+34
-6
lines changed

src/jarvis/jarvis/skills/collection/info.py

+4-4
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@
2222

2323
from jarvis.skills.skill import AssistantSkill
2424
from jarvis.utils.mongoDB import db
25-
from jarvis.utils.console import add_dashes
25+
from jarvis.utils.console import headerize
2626

2727
basic_skills_format = """
2828
-----------------------------------------------------------------------
@@ -58,7 +58,7 @@ def assistant_check(cls, **kwargs):
5858
"""
5959
Responses that assistant can hear the user.
6060
"""
61-
cls.response('Yes, I hear you!')
61+
cls.response('Hey human!')
6262

6363
@classmethod
6464
def tell_the_skills(cls, **kwargs):
@@ -79,13 +79,13 @@ def assistant_help(cls, **kwargs):
7979
Assistant help prints valuable information about the application.
8080
8181
"""
82-
cls.console(add_dashes('Help'))
82+
cls.console(headerize('Help'))
8383
response_base = ''
8484
try:
8585
response = cls._create_skill_response(response_base)
8686
cls.console(response)
8787
except Exception as e:
88-
logging.error("Error with the execution of skill with message {0}".format(e))
88+
cls.console(error_log="Error with the execution of skill with message {0}".format(e))
8989
cls.response("Sorry I faced an issue")
9090

9191
@classmethod

src/jarvis/jarvis/skills/registry.py

+30-2
Original file line numberDiff line numberDiff line change
@@ -121,8 +121,8 @@
121121
{
122122
'enable': True,
123123
'func': AssistantInfoSkills.assistant_check,
124-
'tags': 'hear, hey, are you there',
125-
'description': 'Tells the current location'
124+
'tags': 'hey, hi',
125+
'description': 'User check if assistant works'
126126
},
127127

128128
{
@@ -280,6 +280,34 @@
280280
'description': 'Change the assistant setting values'
281281
},
282282

283+
{
284+
'enable': True,
285+
'func': UtilSkills.increase_master_volume,
286+
'tags': 'increase volume, volume up, speak louder',
287+
'description': 'Increases the speakers master volume'
288+
},
289+
290+
{
291+
'enable': True,
292+
'func': UtilSkills.reduce_master_volume,
293+
'tags': 'reduce volume, volume down',
294+
'description': 'Decreases the speakers master volume'
295+
},
296+
297+
{
298+
'enable': True,
299+
'func': UtilSkills.mute_master_volume,
300+
'tags': 'mute',
301+
'description': 'Mutes the speakers master volume'
302+
},
303+
304+
{
305+
'enable': True,
306+
'func': UtilSkills.max_master_volume,
307+
'tags': 'volume max',
308+
'description': 'Set max the speakers master volume'
309+
},
310+
283311
]
284312

285313
# Add name key in both BASIC_SKILLS and CONTROL_SKILLS

0 commit comments

Comments
 (0)