|
Lines 243-252
class SpeechServer(speechserver.SpeechServer):
Link Here
|
| 243 |
elif acss_property == ACSS.AVERAGE_PITCH: |
243 |
elif acss_property == ACSS.AVERAGE_PITCH: |
| 244 |
method(5.0) |
244 |
method(5.0) |
| 245 |
current[acss_property] = 5.0 |
245 |
current[acss_property] = 5.0 |
| 246 |
elif acss_property == ACSS.FAMILY and current.get(acss_property) \ |
246 |
elif acss_property == ACSS.FAMILY \ |
| 247 |
and acss == settings.voices[settings.DEFAULT_VOICE]: |
247 |
and acss == settings.voices[settings.DEFAULT_VOICE]: |
| 248 |
# We need to explicitly reset (at least) the family. |
248 |
# We need to explicitly reset (at least) the family. |
| 249 |
# See bgo#626072. |
249 |
# See bgo#626072. |
|
|
250 |
# Moreover, reset it when there no family is currently |
| 251 |
# defined (i.e. current.get("family") is None). |
| 250 |
# |
252 |
# |
| 251 |
method({}) |
253 |
method({}) |
| 252 |
current[acss_property] = {} |
254 |
current[acss_property] = {} |