This commit is contained in:
lufton
2019-05-05 19:33:47 +03:00
parent 0fb51afdc1
commit e0274df41c

View File

@@ -129,7 +129,7 @@ class GoogleCloudTTSProvider(Provider):
speed=1.0, speed=1.0,
pitch=0, pitch=0,
gain=0, gain=0,
profiles=[] profiles=None
): ):
"""Init Google Cloud TTS service.""" """Init Google Cloud TTS service."""
self.hass = hass self.hass = hass
@@ -215,7 +215,7 @@ class GoogleCloudTTSProvider(Provider):
speaking_rate=max(min(_speed, MAX_SPEED), MIN_SPEED), speaking_rate=max(min(_speed, MAX_SPEED), MIN_SPEED),
pitch=max(min(_pitch, MAX_PITCH), MIN_PITCH), pitch=max(min(_pitch, MAX_PITCH), MIN_PITCH),
volume_gain_db=max(min(_gain, MAX_GAIN), MIN_GAIN), volume_gain_db=max(min(_gain, MAX_GAIN), MIN_GAIN),
effects_profile_id=_profiles, effects_profile_id=_profiles or [],
) )
# pylint: enable=no-member # pylint: enable=no-member