zyingt commited on
Commit
8d06e90
1 Parent(s): 212c4a8

support timbre confusion

Browse files
Files changed (1) hide show
  1. inference.py +14 -2
inference.py CHANGED
@@ -66,10 +66,22 @@ def build_parser():
66
  default=None,
67
  )
68
  parser.add_argument(
69
- "--speaker_name",
70
  type=str,
71
  default=None,
72
- help="speaker name for multi-speaker synthesis, for single-sentence mode only",
 
 
 
 
 
 
 
 
 
 
 
 
73
  )
74
  parser.add_argument(
75
  "--text",
 
66
  default=None,
67
  )
68
  parser.add_argument(
69
+ "--speaker_name_1",
70
  type=str,
71
  default=None,
72
+ help="first speaker name for multi-speaker synthesis, for single-sentence mode only",
73
+ )
74
+ parser.add_argument(
75
+ "--speaker_name_2",
76
+ type=str,
77
+ default=None,
78
+ help="second speaker name for multi-speaker synthesis, for single-sentence mode only",
79
+ )
80
+ parser.add_argument(
81
+ "--alpha",
82
+ type=float,
83
+ default=0.5,
84
+ help="confusion degree, takes values within [0,1]",
85
  )
86
  parser.add_argument(
87
  "--text",