Fix TTS options. #8375 (#8376)

pull/8343/head^2
Charles Blonde 2017-07-07 07:20:49 +02:00 committed by Paulus Schoutsen
parent aa28e6727d
commit 8682f21fc5
1 changed files with 3 additions and 1 deletions

View File

@ -280,7 +280,9 @@ class SpeechManager(object):
# Options
if provider.default_options and options:
options = provider.default_options.copy().update(options)
merged_options = provider.default_options.copy()
merged_options.update(options)
options = merged_options
options = options or provider.default_options
if options is not None:
invalid_opts = [opt_name for opt_name in options.keys()