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'
output_mixer: 'PCM'
input_volume: 90
output_volume: 60
output_volume: 40
file_address: "http://hugveycmd.local:8888"
output_driver: pulseaudio

View File

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