add autoReadIncomming, add sound volume, convert volume to 0.0 - 1.0 factor for unification
This commit is contained in:
@ -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
|
||||
|
@ -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:
|
||||
|
Reference in New Issue
Block a user