Commit 1 of 2, code refactor and cleanup.
This commit is contained in:
@ -57,7 +57,7 @@ class speechDriver():
|
||||
if not isinstance(pitch, float):
|
||||
return
|
||||
if pitch < 0.0:
|
||||
retrun
|
||||
return
|
||||
if pitch > 1.0:
|
||||
return
|
||||
self.pitch = pitch
|
||||
@ -67,7 +67,7 @@ class speechDriver():
|
||||
if not isinstance(rate, float):
|
||||
return
|
||||
if rate < 0.0:
|
||||
retrun
|
||||
return
|
||||
if rate > 1.0:
|
||||
return
|
||||
self.rate = rate
|
||||
@ -96,7 +96,7 @@ class speechDriver():
|
||||
if not isinstance(volume,float):
|
||||
return
|
||||
if volume < 0.0:
|
||||
retrun
|
||||
return
|
||||
if volume > 1.0:
|
||||
return
|
||||
self.volume = volume
|
||||
|
Reference in New Issue
Block a user