Change vol and fix critical output

This commit is contained in:
Ruben van de Ven 2019-04-26 18:49:30 +02:00
parent 1ccd3b194e
commit b087871471
2 changed files with 2 additions and 4 deletions

View file

@ -10,7 +10,7 @@ voice:
input_mixer: 'Mic' input_mixer: 'Mic'
output_mixer: 'PCM' output_mixer: 'PCM'
input_volume: 90 input_volume: 90
output_volume: 60 output_volume: 40
file_address: "http://hugveycmd.local:8888" file_address: "http://hugveycmd.local:8888"
output_driver: pulseaudio output_driver: pulseaudio

View file

@ -285,6 +285,7 @@ class CommandHandler(object):
duration = cmd['duration'] if 'duration' in cmd else None duration = cmd['duration'] if 'duration' in cmd else None
self.playingMsgId = msgId self.playingMsgId = msgId
err = None
if file is None and text is None: if file is None and text is None:
logger.critical("No file nor text given: {}".format(cmd)) logger.critical("No file nor text given: {}".format(cmd))
else: else:
@ -325,9 +326,6 @@ class CommandHandler(object):
returnCode = self.playPopen.returncode if self.playPopen else 0 returnCode = self.playPopen.returncode if self.playPopen else 0
logger.debug('finished') logger.debug('finished')
self.playPopen = None self.playPopen = None
logger.log(LOG_BS,out)
if len(err) > 0:
logger.critical(err)
if t is not None: if t is not None:
t.cancel() t.cancel()