SYMBOL INDEX (402 symbols across 49 files) FILE: melo/api.py class TTS (line 20) | class TTS(nn.Module): method __init__ (line 21) | def __init__(self, method audio_numpy_concat (line 66) | def audio_numpy_concat(segment_data_list, sr, speed=1.): method split_sentences_into_pieces (line 75) | def split_sentences_into_pieces(text, language, quiet=False): method tts_to_file (line 83) | def tts_to_file(self, text, speaker_id, output_path=None, sdp_ratio=0.... FILE: melo/app.py function synthesize (line 31) | def synthesize(speaker, text, speed, language, progress=gr.Progress()): function load_speakers (line 35) | def load_speakers(language, text): function main (line 57) | def main(share, host, port): FILE: melo/attentions.py class LayerNorm (line 12) | class LayerNorm(nn.Module): method __init__ (line 13) | def __init__(self, channels, eps=1e-5): method forward (line 21) | def forward(self, x): function fused_add_tanh_sigmoid_multiply (line 28) | def fused_add_tanh_sigmoid_multiply(input_a, input_b, n_channels): class Encoder (line 37) | class Encoder(nn.Module): method __init__ (line 38) | def __init__( method forward (line 98) | def forward(self, x, x_mask, g=None): class Decoder (line 118) | class Decoder(nn.Module): method __init__ (line 119) | def __init__( method forward (line 178) | def forward(self, x, x_mask, h, h_mask): class MultiHeadAttention (line 204) | class MultiHeadAttention(nn.Module): method __init__ (line 205) | def __init__( method forward (line 258) | def forward(self, x, c, attn_mask=None): method attention (line 268) | def attention(self, query, key, value, mask=None): method _matmul_with_relative_values (line 319) | def _matmul_with_relative_values(self, x, y): method _matmul_with_relative_keys (line 328) | def _matmul_with_relative_keys(self, x, y): method _get_relative_embeddings (line 337) | def _get_relative_embeddings(self, relative_embeddings, length): method _relative_position_to_absolute_position (line 355) | def _relative_position_to_absolute_position(self, x): method _absolute_position_to_relative_position (line 376) | def _absolute_position_to_relative_position(self, x): method _attention_bias_proximal (line 392) | def _attention_bias_proximal(self, length): class FFN (line 404) | class FFN(nn.Module): method __init__ (line 405) | def __init__( method forward (line 433) | def forward(self, x, x_mask): method _causal_padding (line 443) | def _causal_padding(self, x): method _same_padding (line 452) | def _same_padding(self, x): FILE: melo/commons.py function init_weights (line 6) | def init_weights(m, mean=0.0, std=0.01): function get_padding (line 12) | def get_padding(kernel_size, dilation=1): function convert_pad_shape (line 16) | def convert_pad_shape(pad_shape): function intersperse (line 22) | def intersperse(lst, item): function kl_divergence (line 28) | def kl_divergence(m_p, logs_p, m_q, logs_q): function rand_gumbel (line 37) | def rand_gumbel(shape): function rand_gumbel_like (line 43) | def rand_gumbel_like(x): function slice_segments (line 48) | def slice_segments(x, ids_str, segment_size=4): function rand_slice_segments (line 57) | def rand_slice_segments(x, x_lengths=None, segment_size=4): function get_timing_signal_1d (line 67) | def get_timing_signal_1d(length, channels, min_timescale=1.0, max_timesc... function add_timing_signal_1d (line 83) | def add_timing_signal_1d(x, min_timescale=1.0, max_timescale=1.0e4): function cat_timing_signal_1d (line 89) | def cat_timing_signal_1d(x, min_timescale=1.0, max_timescale=1.0e4, axis... function subsequent_mask (line 95) | def subsequent_mask(length): function fused_add_tanh_sigmoid_multiply (line 101) | def fused_add_tanh_sigmoid_multiply(input_a, input_b, n_channels): function convert_pad_shape (line 110) | def convert_pad_shape(pad_shape): function shift_1d (line 116) | def shift_1d(x): function sequence_mask (line 121) | def sequence_mask(length, max_length=None): function generate_path (line 128) | def generate_path(duration, mask): function clip_grad_value_ (line 145) | def clip_grad_value_(parameters, clip_value, norm_type=2): FILE: melo/data_utils.py class TextAudioSpeakerLoader (line 17) | class TextAudioSpeakerLoader(torch.utils.data.Dataset): method __init__ (line 24) | def __init__(self, audiopaths_sid_text, hparams): method _filter (line 53) | def _filter(self): method get_audio_text_speaker_pair (line 94) | def get_audio_text_speaker_pair(self, audiopath_sid_text): method get_audio (line 107) | def get_audio(self, filename): method get_text (line 150) | def get_text(self, text, word2ph, phone, tone, language_str, wav_path): method get_sid (line 189) | def get_sid(self, sid): method __getitem__ (line 193) | def __getitem__(self, index): method __len__ (line 196) | def __len__(self): class TextAudioSpeakerCollate (line 200) | class TextAudioSpeakerCollate: method __init__ (line 203) | def __init__(self, return_ids=False): method __call__ (line 206) | def __call__(self, batch): class DistributedBucketSampler (line 285) | class DistributedBucketSampler(torch.utils.data.distributed.DistributedS... method __init__ (line 295) | def __init__( method _create_buckets (line 314) | def _create_buckets(self): method __iter__ (line 346) | def __iter__(self): method _bisect (line 397) | def _bisect(self, x, lo=0, hi=None): method __len__ (line 412) | def __len__(self): FILE: melo/download_utils.py function load_or_download_config (line 44) | def load_or_download_config(locale, use_hf=True, config_path=None): function load_or_download_model (line 55) | def load_or_download_model(locale, device, use_hf=True, ckpt_path=None): function load_pretrain_model (line 66) | def load_pretrain_model(): FILE: melo/infer.py function main (line 12) | def main(ckpt_path, text, language, output_dir): FILE: melo/losses.py function feature_loss (line 4) | def feature_loss(fmap_r, fmap_g): function discriminator_loss (line 15) | def discriminator_loss(disc_real_outputs, disc_generated_outputs): function generator_loss (line 31) | def generator_loss(disc_outputs): function kl_loss (line 43) | def kl_loss(z_p, logs_q, m_p, logs_p, z_mask): FILE: melo/main.py function main (line 14) | def main(text, file, output_path, language, speaker, speed, device): FILE: melo/mel_processing.py function dynamic_range_compression_torch (line 9) | def dynamic_range_compression_torch(x, C=1, clip_val=1e-5): function dynamic_range_decompression_torch (line 18) | def dynamic_range_decompression_torch(x, C=1): function spectral_normalize_torch (line 27) | def spectral_normalize_torch(magnitudes): function spectral_de_normalize_torch (line 32) | def spectral_de_normalize_torch(magnitudes): function spectrogram_torch (line 41) | def spectrogram_torch(y, n_fft, sampling_rate, hop_size, win_size, cente... function spectrogram_torch_conv (line 79) | def spectrogram_torch_conv(y, n_fft, sampling_rate, hop_size, win_size, ... function spec_to_mel_torch (line 118) | def spec_to_mel_torch(spec, n_fft, num_mels, sampling_rate, fmin, fmax): function mel_spectrogram_torch (line 132) | def mel_spectrogram_torch( FILE: melo/models.py class DurationDiscriminator (line 17) | class DurationDiscriminator(nn.Module): # vits2 method __init__ (line 18) | def __init__( method forward_probability (line 53) | def forward_probability(self, x, x_mask, dur, g=None): method forward (line 69) | def forward(self, x, x_mask, dur_r, dur_hat, g=None): class TransformerCouplingBlock (line 91) | class TransformerCouplingBlock(nn.Module): method __init__ (line 92) | def __init__( method forward (line 147) | def forward(self, x, x_mask, g=None, reverse=False): class StochasticDurationPredictor (line 157) | class StochasticDurationPredictor(nn.Module): method __init__ (line 158) | def __init__( method forward (line 206) | def forward(self, x, x_mask, w=None, g=None, reverse=False, noise_scal... class DurationPredictor (line 268) | class DurationPredictor(nn.Module): method __init__ (line 269) | def __init__( method forward (line 294) | def forward(self, x, x_mask, g=None): class TextEncoder (line 311) | class TextEncoder(nn.Module): method __init__ (line 312) | def __init__( method forward (line 360) | def forward(self, x, x_lengths, tone, language, bert, ja_bert, g=None): class ResidualCouplingBlock (line 384) | class ResidualCouplingBlock(nn.Module): method __init__ (line 385) | def __init__( method forward (line 419) | def forward(self, x, x_mask, g=None, reverse=False): class PosteriorEncoder (line 429) | class PosteriorEncoder(nn.Module): method __init__ (line 430) | def __init__( method forward (line 459) | def forward(self, x, x_lengths, g=None, tau=1.0): class Generator (line 471) | class Generator(torch.nn.Module): method __init__ (line 472) | def __init__( method forward (line 519) | def forward(self, x, g=None): method remove_weight_norm (line 540) | def remove_weight_norm(self): class DiscriminatorP (line 548) | class DiscriminatorP(torch.nn.Module): method __init__ (line 549) | def __init__(self, period, kernel_size=5, stride=3, use_spectral_norm=... method forward (line 605) | def forward(self, x): class DiscriminatorS (line 627) | class DiscriminatorS(torch.nn.Module): method __init__ (line 628) | def __init__(self, use_spectral_norm=False): method forward (line 643) | def forward(self, x): class MultiPeriodDiscriminator (line 657) | class MultiPeriodDiscriminator(torch.nn.Module): method __init__ (line 658) | def __init__(self, use_spectral_norm=False): method forward (line 668) | def forward(self, y, y_hat): class ReferenceEncoder (line 684) | class ReferenceEncoder(nn.Module): method __init__ (line 690) | def __init__(self, spec_channels, gin_channels=0, layernorm=False): method forward (line 724) | def forward(self, inputs, mask=None): method calculate_channels (line 746) | def calculate_channels(self, L, kernel_size, stride, pad, n_convs): class SynthesizerTrn (line 752) | class SynthesizerTrn(nn.Module): method __init__ (line 757) | def __init__( method forward (line 888) | def forward(self, x, x_lengths, y, y_lengths, sid, tone, language, ber... method infer (line 966) | def infer( method voice_conversion (line 1023) | def voice_conversion(self, y, y_lengths, sid_src, sid_tgt, tau=1.0): FILE: melo/modules.py class LayerNorm (line 17) | class LayerNorm(nn.Module): method __init__ (line 18) | def __init__(self, channels, eps=1e-5): method forward (line 26) | def forward(self, x): class ConvReluNorm (line 32) | class ConvReluNorm(nn.Module): method __init__ (line 33) | def __init__( method forward (line 74) | def forward(self, x, x_mask): class DDSConv (line 84) | class DDSConv(nn.Module): method __init__ (line 89) | def __init__(self, channels, kernel_size, n_layers, p_dropout=0.0): method forward (line 118) | def forward(self, x, x_mask, g=None): class WN (line 133) | class WN(torch.nn.Module): method __init__ (line 134) | def __init__( method forward (line 185) | def forward(self, x, x_mask, g=None, **kwargs): method remove_weight_norm (line 212) | def remove_weight_norm(self): class ResBlock1 (line 221) | class ResBlock1(torch.nn.Module): method __init__ (line 222) | def __init__(self, channels, kernel_size=3, dilation=(1, 3, 5)): method forward (line 296) | def forward(self, x, x_mask=None): method remove_weight_norm (line 311) | def remove_weight_norm(self): class ResBlock2 (line 318) | class ResBlock2(torch.nn.Module): method __init__ (line 319) | def __init__(self, channels, kernel_size=3, dilation=(1, 3)): method forward (line 347) | def forward(self, x, x_mask=None): method remove_weight_norm (line 358) | def remove_weight_norm(self): class Log (line 363) | class Log(nn.Module): method forward (line 364) | def forward(self, x, x_mask, reverse=False, **kwargs): class Flip (line 374) | class Flip(nn.Module): method forward (line 375) | def forward(self, x, *args, reverse=False, **kwargs): class ElementwiseAffine (line 384) | class ElementwiseAffine(nn.Module): method __init__ (line 385) | def __init__(self, channels): method forward (line 391) | def forward(self, x, x_mask, reverse=False, **kwargs): class ResidualCouplingLayer (line 402) | class ResidualCouplingLayer(nn.Module): method __init__ (line 403) | def __init__( method forward (line 437) | def forward(self, x, x_mask, g=None, reverse=False): class ConvFlow (line 459) | class ConvFlow(nn.Module): method __init__ (line 460) | def __init__( method forward (line 486) | def forward(self, x, x_mask, g=None, reverse=False): class TransformerCouplingLayer (line 519) | class TransformerCouplingLayer(nn.Module): method __init__ (line 520) | def __init__( method forward (line 562) | def forward(self, x, x_mask, g=None, reverse=False): FILE: melo/monotonic_align/__init__.py function maximum_path (line 7) | def maximum_path(neg_cent, mask): FILE: melo/monotonic_align/core.py function maximum_path_jit (line 14) | def maximum_path_jit(paths, values, t_ys, t_xs): FILE: melo/preprocess_text.py function main (line 30) | def main( FILE: melo/split_utils.py function split_sentence (line 9) | def split_sentence(text, min_len=10, language_str='EN'): function split_sentences_latin (line 17) | def split_sentences_latin(text, min_len=10): function split_sentences_zh (line 26) | def split_sentences_zh(text, min_len=10): function merge_short_sentences_en (line 51) | def merge_short_sentences_en(sens): function merge_short_sentences_zh (line 77) | def merge_short_sentences_zh(sens): function txtsplit (line 105) | def txtsplit(text, desired_length=100, max_length=200): FILE: melo/text/__init__.py function cleaned_text_to_sequence (line 7) | def cleaned_text_to_sequence(cleaned_text, tones, language, symbol_to_id... function get_bert (line 23) | def get_bert(norm_text, word2ph, language, device): FILE: melo/text/chinese.py function replace_punctuation (line 55) | def replace_punctuation(text): function g2p (line 68) | def g2p(text): function _get_initials_finals (line 80) | def _get_initials_finals(word): function _g2p (line 93) | def _g2p(segments): function text_normalize (line 171) | def text_normalize(text): function get_bert_feature (line 179) | def get_bert_feature(text, word2ph, device=None): FILE: melo/text/chinese_bert.py function get_bert_feature (line 13) | def get_bert_feature(text, word2ph, device=None, model_id='hfl/chinese-r... FILE: melo/text/chinese_mix.py function replace_punctuation (line 59) | def replace_punctuation(text): function g2p (line 69) | def g2p(text, impl='v2'): function _get_initials_finals (line 87) | def _get_initials_finals(word): function _g2p (line 101) | def _g2p(segments): function text_normalize (line 189) | def text_normalize(text): function get_bert_feature (line 197) | def get_bert_feature(text, word2ph, device): function _g2p_v2 (line 202) | def _g2p_v2(segments): FILE: melo/text/cleaner.py function clean_text (line 9) | def clean_text(text, language): function clean_text_bert (line 16) | def clean_text_bert(text, language, device=None): function text_to_sequence (line 30) | def text_to_sequence(text, language): FILE: melo/text/cleaner_multiling.py function replace_punctuation (line 43) | def replace_punctuation(text): function lowercase (line 48) | def lowercase(text): function collapse_whitespace (line 52) | def collapse_whitespace(text): function remove_punctuation_at_begin (line 55) | def remove_punctuation_at_begin(text): function remove_aux_symbols (line 58) | def remove_aux_symbols(text): function replace_symbols (line 63) | def replace_symbols(text, lang="en"): function unicleaners (line 98) | def unicleaners(text, cased=False, lang='en'): FILE: melo/text/english.py function post_replace_ph (line 95) | def post_replace_ph(ph): function read_dict (line 118) | def read_dict(): function cache_dict (line 142) | def cache_dict(g2p_dict, file_path): function get_dict (line 147) | def get_dict(): function refine_ph (line 161) | def refine_ph(phn): function refine_syllables (line 169) | def refine_syllables(syllables): function text_normalize (line 181) | def text_normalize(text): function g2p_old (line 190) | def g2p_old(text): function g2p (line 217) | def g2p(text, pad_start_end=True, tokenized=None): function get_bert_feature (line 262) | def get_bert_feature(text, word2ph, device=None): FILE: melo/text/english_bert.py function get_bert_feature (line 9) | def get_bert_feature(text, word2ph, device=None): FILE: melo/text/english_utils/abbreviations.py function expand_abbreviations (line 28) | def expand_abbreviations(text, lang="en"): FILE: melo/text/english_utils/number_norm.py function _remove_commas (line 16) | def _remove_commas(m): function _expand_decimal_point (line 20) | def _expand_decimal_point(m): function __expand_currency (line 24) | def __expand_currency(value: str, inflection: Dict[float, str]) -> str: function _expand_currency (line 42) | def _expand_currency(m: "re.Match") -> str: function _expand_ordinal (line 74) | def _expand_ordinal(m): function _expand_number (line 78) | def _expand_number(m): function normalize_numbers (line 91) | def normalize_numbers(text): FILE: melo/text/english_utils/time_norm.py function _expand_num (line 18) | def _expand_num(n: int) -> str: function _expand_time_english (line 22) | def _expand_time_english(match: "re.Match") -> str: function expand_time_english (line 46) | def expand_time_english(text: str) -> str: FILE: melo/text/es_phonemizer/base.py class BasePhonemizer (line 7) | class BasePhonemizer(abc.ABC): method __init__ (line 34) | def __init__(self, language, punctuations=Punctuation.default_puncs(),... method _init_language (line 46) | def _init_language(self, language): method language (line 57) | def language(self): method name (line 63) | def name(): method is_available (line 69) | def is_available(cls): method version (line 75) | def version(cls): method supported_languages (line 81) | def supported_languages(): method is_supported_language (line 85) | def is_supported_language(self, language): method _phonemize (line 90) | def _phonemize(self, text, separator): method _phonemize_preprocess (line 93) | def _phonemize_preprocess(self, text) -> Tuple[List[str], List]: method _phonemize_postprocess (line 107) | def _phonemize_postprocess(self, phonemized, punctuations) -> str: method phonemize (line 116) | def phonemize(self, text: str, separator="|", language: str = None) ->... method print_logs (line 137) | def print_logs(self, level: int = 0): FILE: melo/text/es_phonemizer/cleaner.py function replace_punctuation (line 43) | def replace_punctuation(text): function lowercase (line 48) | def lowercase(text): function collapse_whitespace (line 52) | def collapse_whitespace(text): function remove_punctuation_at_begin (line 55) | def remove_punctuation_at_begin(text): function remove_aux_symbols (line 58) | def remove_aux_symbols(text): function replace_symbols (line 63) | def replace_symbols(text, lang="en"): function spanish_cleaners (line 98) | def spanish_cleaners(text): FILE: melo/text/es_phonemizer/es_to_ipa.py function es2ipa (line 4) | def es2ipa(text): FILE: melo/text/es_phonemizer/gruut_wrapper.py class Gruut (line 14) | class Gruut(BasePhonemizer): method __init__ (line 41) | def __init__( method name (line 54) | def name(): method phonemize_gruut (line 57) | def phonemize_gruut(self, text: str, separator: str = "|", tie=False) ... method _phonemize (line 109) | def _phonemize(self, text, separator): method is_supported_language (line 112) | def is_supported_language(self, language): method supported_languages (line 117) | def supported_languages() -> List: method version (line 125) | def version(self): method is_available (line 134) | def is_available(cls): FILE: melo/text/es_phonemizer/punctuation.py class PuncPosition (line 12) | class PuncPosition(Enum): class Punctuation (line 21) | class Punctuation: method __init__ (line 43) | def __init__(self, puncs: str = _DEF_PUNCS): method default_puncs (line 47) | def default_puncs(): method puncs (line 52) | def puncs(self): method puncs (line 56) | def puncs(self, value): method strip (line 62) | def strip(self, text): method strip_to_restore (line 74) | def strip_to_restore(self, text): method _strip_to_restore (line 88) | def _strip_to_restore(self, text): method restore (line 120) | def restore(cls, text, puncs): method _restore (line 135) | def _restore(cls, text, puncs, num): # pylint: disable=too-many-retur... FILE: melo/text/fr_phonemizer/base.py class BasePhonemizer (line 7) | class BasePhonemizer(abc.ABC): method __init__ (line 34) | def __init__(self, language, punctuations=Punctuation.default_puncs(),... method _init_language (line 46) | def _init_language(self, language): method language (line 57) | def language(self): method name (line 63) | def name(): method is_available (line 69) | def is_available(cls): method version (line 75) | def version(cls): method supported_languages (line 81) | def supported_languages(): method is_supported_language (line 85) | def is_supported_language(self, language): method _phonemize (line 90) | def _phonemize(self, text, separator): method _phonemize_preprocess (line 93) | def _phonemize_preprocess(self, text) -> Tuple[List[str], List]: method _phonemize_postprocess (line 107) | def _phonemize_postprocess(self, phonemized, punctuations) -> str: method phonemize (line 116) | def phonemize(self, text: str, separator="|", language: str = None) ->... method print_logs (line 137) | def print_logs(self, level: int = 0): FILE: melo/text/fr_phonemizer/cleaner.py function replace_punctuation (line 48) | def replace_punctuation(text): function expand_abbreviations (line 53) | def expand_abbreviations(text, lang="fr"): function lowercase (line 61) | def lowercase(text): function collapse_whitespace (line 65) | def collapse_whitespace(text): function remove_punctuation_at_begin (line 68) | def remove_punctuation_at_begin(text): function remove_aux_symbols (line 71) | def remove_aux_symbols(text): function replace_symbols (line 76) | def replace_symbols(text, lang="en"): function french_cleaners (line 111) | def french_cleaners(text): FILE: melo/text/fr_phonemizer/fr_to_ipa.py function remove_consecutive_t (line 5) | def remove_consecutive_t(input_str): function fr2ipa (line 23) | def fr2ipa(text): FILE: melo/text/fr_phonemizer/gruut_wrapper.py class Gruut (line 14) | class Gruut(BasePhonemizer): method __init__ (line 41) | def __init__( method name (line 54) | def name(): method phonemize_gruut (line 57) | def phonemize_gruut(self, text: str, separator: str = "|", tie=False) ... method _phonemize (line 109) | def _phonemize(self, text, separator): method is_supported_language (line 112) | def is_supported_language(self, language): method supported_languages (line 117) | def supported_languages() -> List: method version (line 125) | def version(self): method is_available (line 134) | def is_available(cls): FILE: melo/text/fr_phonemizer/punctuation.py class PuncPosition (line 12) | class PuncPosition(Enum): class Punctuation (line 21) | class Punctuation: method __init__ (line 43) | def __init__(self, puncs: str = _DEF_PUNCS): method default_puncs (line 47) | def default_puncs(): method puncs (line 52) | def puncs(self): method puncs (line 56) | def puncs(self, value): method strip (line 62) | def strip(self, text): method strip_to_restore (line 74) | def strip_to_restore(self, text): method _strip_to_restore (line 88) | def _strip_to_restore(self, text): method restore (line 118) | def restore(cls, text, puncs): method _restore (line 133) | def _restore(cls, text, puncs, num): # pylint: disable=too-many-retur... FILE: melo/text/french.py function distribute_phone (line 11) | def distribute_phone(n_phone, n_word): function text_normalize (line 19) | def text_normalize(text): function g2p (line 26) | def g2p(text, pad_start_end=True, tokenized=None): function get_bert_feature (line 66) | def get_bert_feature(text, word2ph, device=None): function text_normalize (line 83) | def text_normalize(text): FILE: melo/text/french_bert.py function get_bert_feature (line 9) | def get_bert_feature(text, word2ph, device=None): FILE: melo/text/japanese.py function _makerulemap (line 325) | def _makerulemap(): function kata2phoneme (line 333) | def kata2phoneme(text: str) -> str: function hira2kata (line 360) | def hira2kata(text: str) -> str: function text2kata (line 370) | def text2kata(text: str) -> str: function japanese_convert_numbers_to_words (line 467) | def japanese_convert_numbers_to_words(text: str) -> str: function japanese_convert_alpha_symbols_to_words (line 474) | def japanese_convert_alpha_symbols_to_words(text: str) -> str: function japanese_text_to_phonemes (line 478) | def japanese_text_to_phonemes(text: str) -> str: function is_japanese_character (line 488) | def is_japanese_character(char): function replace_punctuation (line 524) | def replace_punctuation(text): function text_normalize (line 548) | def text_normalize(text): function distribute_phone (line 557) | def distribute_phone(n_phone, n_word): function g2p (line 571) | def g2p(norm_text): function get_bert_feature (line 614) | def get_bert_feature(text, word2ph, device): FILE: melo/text/japanese_bert.py function get_bert_feature (line 8) | def get_bert_feature(text, word2ph, device=None, model_id='tohoku-nlp/be... FILE: melo/text/korean.py function normalize (line 16) | def normalize(text): function normalize_with_dictionary (line 25) | def normalize_with_dictionary(text, dic): function normalize_english (line 32) | def normalize_english(text): function korean_text_to_phonemes (line 44) | def korean_text_to_phonemes(text, character: str = "hangeul") -> str: function text_normalize (line 73) | def text_normalize(text): function distribute_phone (line 82) | def distribute_phone(n_phone, n_word): function g2p (line 97) | def g2p(norm_text): function get_bert_feature (line 141) | def get_bert_feature(text, word2ph, device='cuda'): FILE: melo/text/spanish.py function distribute_phone (line 11) | def distribute_phone(n_phone, n_word): function text_normalize (line 19) | def text_normalize(text): function post_replace_ph (line 23) | def post_replace_ph(ph): function refine_ph (line 44) | def refine_ph(phn): function refine_syllables (line 52) | def refine_syllables(syllables): function g2p (line 68) | def g2p(text, pad_start_end=True, tokenized=None): function get_bert_feature (line 108) | def get_bert_feature(text, word2ph, device=None): FILE: melo/text/spanish_bert.py function get_bert_feature (line 9) | def get_bert_feature(text, word2ph, device=None): FILE: melo/text/tone_sandhi.py class ToneSandhi (line 22) | class ToneSandhi: method __init__ (line 23) | def __init__(self): method _neural_sandhi (line 466) | def _neural_sandhi(self, word: str, pos: str, finals: List[str]) -> Li... method _bu_sandhi (line 522) | def _bu_sandhi(self, word: str, finals: List[str]) -> List[str]: method _yi_sandhi (line 533) | def _yi_sandhi(self, word: str, finals: List[str]) -> List[str]: method _split_word (line 558) | def _split_word(self, word: str) -> List[str]: method _three_sandhi (line 571) | def _three_sandhi(self, word: str, finals: List[str]) -> List[str]: method _all_tone_three (line 611) | def _all_tone_three(self, finals: List[str]) -> bool: method _merge_bu (line 616) | def _merge_bu(self, seg: List[Tuple[str, str]]) -> List[Tuple[str, str]]: method _merge_yi (line 636) | def _merge_yi(self, seg: List[Tuple[str, str]]) -> List[Tuple[str, str]]: method _merge_continuous_three_tones (line 669) | def _merge_continuous_three_tones( method _is_reduplication (line 700) | def _is_reduplication(self, word: str) -> bool: method _merge_continuous_three_tones_2 (line 704) | def _merge_continuous_three_tones_2( method _merge_er (line 734) | def _merge_er(self, seg: List[Tuple[str, str]]) -> List[Tuple[str, str]]: method _merge_reduplication (line 743) | def _merge_reduplication(self, seg: List[Tuple[str, str]]) -> List[Tup... method pre_merge_for_modify (line 752) | def pre_merge_for_modify(self, seg: List[Tuple[str, str]]) -> List[Tup... method modified_tone (line 764) | def modified_tone(self, word: str, pos: str, finals: List[str]) -> Lis... FILE: melo/train.py function run (line 49) | def run(): function train_and_evaluate (line 291) | def train_and_evaluate( function evaluate (line 539) | def evaluate(hps, generator, eval_loader, writer_eval): FILE: melo/transforms.py function piecewise_rational_quadratic_transform (line 12) | def piecewise_rational_quadratic_transform( function searchsorted (line 45) | def searchsorted(bin_locations, inputs, eps=1e-6): function unconstrained_rational_quadratic_spline (line 50) | def unconstrained_rational_quadratic_spline( function rational_quadratic_spline (line 100) | def rational_quadratic_spline( FILE: melo/utils.py function get_text_for_tts_infer (line 22) | def get_text_for_tts_infer(text, language_str, hps, device, symbol_to_id... function load_checkpoint (line 60) | def load_checkpoint(checkpoint_path, model, optimizer=None, skip_optimiz... function save_checkpoint (line 119) | def save_checkpoint(model, optimizer, learning_rate, iteration, checkpoi... function summarize (line 140) | def summarize( function latest_checkpoint_path (line 159) | def latest_checkpoint_path(dir_path, regex="G_*.pth"): function plot_spectrogram_to_numpy (line 166) | def plot_spectrogram_to_numpy(spectrogram): function plot_alignment_to_numpy (line 192) | def plot_alignment_to_numpy(alignment, info=None): function load_wav_to_torch (line 223) | def load_wav_to_torch(full_path): function load_wav_to_torch_new (line 228) | def load_wav_to_torch_new(full_path): function load_wav_to_torch_librosa (line 233) | def load_wav_to_torch_librosa(full_path, sr): function load_filepaths_and_text (line 238) | def load_filepaths_and_text(filename, split="|"): function get_hparams (line 244) | def get_hparams(init=True): function clean_checkpoints (line 290) | def clean_checkpoints(path_to_models="logs/44k/", n_ckpts_to_keep=2, sor... function get_hparams_from_dir (line 335) | def get_hparams_from_dir(model_dir): function get_hparams_from_file (line 346) | def get_hparams_from_file(config_path): function check_git_hash (line 355) | def check_git_hash(model_dir): function get_logger (line 380) | def get_logger(model_dir, filename="train.log"): class HParams (line 395) | class HParams: method __init__ (line 396) | def __init__(self, **kwargs): method keys (line 402) | def keys(self): method items (line 405) | def items(self): method values (line 408) | def values(self): method __len__ (line 411) | def __len__(self): method __getitem__ (line 414) | def __getitem__(self, key): method __setitem__ (line 417) | def __setitem__(self, key, value): method __contains__ (line 420) | def __contains__(self, key): method __repr__ (line 423) | def __repr__(self): FILE: setup.py class PostInstallCommand (line 11) | class PostInstallCommand(install): method run (line 13) | def run(self): class PostDevelopCommand (line 18) | class PostDevelopCommand(develop): method run (line 20) | def run(self):