Functionexpand_by_repeat_times source_encoding: [T, C] lengths, list of int, [T,], how many times each token should repeat return: expanded_encoding: [T_expand,
tts/modules/ar_dur/commons/seq_utils.py:321
Methodforward x : torch.LongTensor, shape = (batch_size, <= n_ctx) the text tokens xa : torch.Tensor, shape = (batch_size, n_audio_ctx,
tts/modules/aligner/whisper_small.py:220
Methodforward(self, txt_tokens, ling_feas, char_tokens, ph2char, bert_embed,
prev_code, spk_id=None, spk_em
tts/modules/ar_dur/ar_dur_predictor.py:190
Methodforward Example (no batch dim version): 1. dur = [2,2,3] 2. token_idx = [[1],[2],[3]], dur_cumsum = [2,4,7], dur_cumsum_prev
tts/modules/ar_dur/commons/nar_tts_modules.py:28
Functiongroup_hidden_by_segs :param h: [B, T, H] :param seg_ids: [B, T] :return: h_ph: [B, T_ph, H]
tts/modules/ar_dur/commons/seq_utils.py:305
Functionmain(inp_audio, inp_npy, inp_text, infer_timestep, p_w, t_w, processes, input_queue, output_queue)
tts/gradio_api.py:51
Functionspec_to_figure(spec, vmin=None, vmax=None, title='', f0s=None, dur_info=None, figsize=(12, 6))
tts/utils/audio_utils/plot.py:25
Methodstreaming_infer(self, txt_tokens, ling_feas, char_tokens, ph2char, bert_embed,
spk_id=None, spk_embed
tts/modules/ar_dur/ar_dur_predictor.py:322