Skip to content

Commit

Permalink
Compatibility path for Audio.
Browse files Browse the repository at this point in the history
  • Loading branch information
cfrancesco committed May 27, 2021
1 parent 0353a24 commit 4636e4d
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
6 changes: 3 additions & 3 deletions data/audio.py
Original file line number Diff line number Diff line change
Expand Up @@ -21,9 +21,9 @@ def __init__(self,
f_min: int,
f_max: int,
normalizer: str,
norm_wav: bool,
target_dBFS: int,
int16_max: int,
norm_wav: bool = None,
target_dBFS: int = None,
int16_max: int = None,
trim_long_silences: bool = None,
trim_silence: bool = None,
trim_silence_top_db: int = None,
Expand Down
2 changes: 1 addition & 1 deletion predict_tts.py
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@
outdir.mkdir(exist_ok=True, parents=True)
output_path = (outdir / file_name).with_suffix('.wav')
audio = Audio.from_config(model.config)
print(f'Output wav under {output_path}')
print(f'Output wav under {output_path.parent}')
wavs = []
for i, text_line in enumerate(text):
phons = model.text_pipeline.phonemizer(text_line)
Expand Down

0 comments on commit 4636e4d

Please sign in to comment.