paddlespeech.t2s.exps.transformer_tts.preprocess module
- paddlespeech.t2s.exps.transformer_tts.preprocess.get_input_token(sentence, output_path)[source]
get phone set from training data and save it
- Args:
sentence (Dict): sentence: {'utt': ([char], str)} output_path (str or path): path to save phone_id_map
- paddlespeech.t2s.exps.transformer_tts.preprocess.get_lj_sentences(file_name, frontend)[source]
read MFA duration.txt
- Args:
file_name (str or Path)
- Returns:
Dict: sentence: {'utt': ([char], [int])}