silence sphinx a bit
authorRalf Jung <post@ralfj.de>
Wed, 5 Mar 2014 18:08:57 +0000 (19:08 +0100)
committerRalf Jung <post@ralfj.de>
Wed, 5 Mar 2014 18:08:57 +0000 (19:08 +0100)
statemachine.py

index 645737c649f33a1745013de31d3cbfb5c363e1d8..cb1e4c86b156c94cc15aed4cab418d7345949291 100644 (file)
@@ -12,7 +12,7 @@ def play_sound (what):
                return
        soundfile = SOUNDS_DIRECTORY + what + '/' + random.choice(soundfiles)
        hour = datetime.datetime.time(datetime.datetime.now()).hour
                return
        soundfile = SOUNDS_DIRECTORY + what + '/' + random.choice(soundfiles)
        hour = datetime.datetime.time(datetime.datetime.now()).hour
-       volume = 60 if hour >= 22 or hour <= 6 else 95
+       volume = 60 if hour >= 22 or hour <= 6 else 90
        fire_and_forget_cmd ([SOUNDS_PLAYER, "-volume", str(volume), soundfile], "StateMachine: ")
 
 # convert an absolute nervlist to a relative one
        fire_and_forget_cmd ([SOUNDS_PLAYER, "-volume", str(volume), soundfile], "StateMachine: ")
 
 # convert an absolute nervlist to a relative one