add autoReadIncomming, add sound volume, convert volume to 0.0 - 1.0 factor for unification

This commit is contained in:
chrys
2016-08-08 09:34:57 +02:00
parent 152453c232
commit 0e973b6f1d
10 changed files with 27 additions and 12 deletions

View File

@ -62,7 +62,7 @@ class speech():
def setVolume(self, volume):
if not self._isInitialized:
return False
return self._es.set_parameter(self._es.Parameter().Volume, volume)
return self._es.set_parameter(self._es.Parameter().Volume, int(volume * 200))
def shutdown(self):
pass

View File

@ -79,7 +79,7 @@ class speech():
def setVolume(self, volume):
if not self._isInitialized:
return False
self._sd.set_volume(volume)
self._sd.set_volume(int(-100 + volume * 200))
def shutdown(self):
if not self._isInitialized: