Make it possible to disable the TTS from within the interface
This commit is contained in:
@@ -6,6 +6,7 @@ import torch
|
|||||||
torch._C._jit_set_profiling_mode(False)
|
torch._C._jit_set_profiling_mode(False)
|
||||||
|
|
||||||
params = {
|
params = {
|
||||||
|
'activate': True,
|
||||||
'speaker': 'en_56',
|
'speaker': 'en_56',
|
||||||
'language': 'en',
|
'language': 'en',
|
||||||
'model_id': 'v3_en',
|
'model_id': 'v3_en',
|
||||||
@@ -52,6 +53,9 @@ def output_modifier(string):
|
|||||||
current_params = params.copy()
|
current_params = params.copy()
|
||||||
break
|
break
|
||||||
|
|
||||||
|
if params['activate'] == False:
|
||||||
|
return string
|
||||||
|
|
||||||
string = remove_surrounded_chars(string)
|
string = remove_surrounded_chars(string)
|
||||||
string = string.replace('"', '')
|
string = string.replace('"', '')
|
||||||
string = string.replace('“', '')
|
string = string.replace('“', '')
|
||||||
|
|||||||
Reference in New Issue
Block a user