default noise_scale=0.0 (stable long-sequence decoding)
Browse files- python/infer_board.py +2 -2
python/infer_board.py
CHANGED
|
@@ -221,7 +221,7 @@ def compress_pauses(wav, sr=24000, min_pause_ms=90, target_ms=60):
|
|
| 221 |
return out
|
| 222 |
|
| 223 |
|
| 224 |
-
def synthesize(acoustic, vocoder, text, noise_scale=0.
|
| 225 |
sents = split_sentences(text)
|
| 226 |
pieces = []
|
| 227 |
for s in sents:
|
|
@@ -247,7 +247,7 @@ def main():
|
|
| 247 |
parser.add_argument("--acoustic", default="export/acoustic_female.onnx")
|
| 248 |
parser.add_argument("--vocoder", default="export/axmodel/bigvgan_base.axmodel")
|
| 249 |
parser.add_argument("--output", default="board_out.wav")
|
| 250 |
-
parser.add_argument("--noise_scale", type=float, default=0.
|
| 251 |
args = parser.parse_args()
|
| 252 |
|
| 253 |
import soundfile as sf
|
|
|
|
| 221 |
return out
|
| 222 |
|
| 223 |
|
| 224 |
+
def synthesize(acoustic, vocoder, text, noise_scale=0.0, seed=0):
|
| 225 |
sents = split_sentences(text)
|
| 226 |
pieces = []
|
| 227 |
for s in sents:
|
|
|
|
| 247 |
parser.add_argument("--acoustic", default="export/acoustic_female.onnx")
|
| 248 |
parser.add_argument("--vocoder", default="export/axmodel/bigvgan_base.axmodel")
|
| 249 |
parser.add_argument("--output", default="board_out.wav")
|
| 250 |
+
parser.add_argument("--noise_scale", type=float, default=0.0)
|
| 251 |
args = parser.parse_args()
|
| 252 |
|
| 253 |
import soundfile as sf
|