SYMBOL INDEX (186 symbols across 14 files) FILE: openvoice/api.py class OpenVoiceBaseClass (line 14) | class OpenVoiceBaseClass(object): method __init__ (line 15) | def __init__(self, method load_ckpt (line 35) | def load_ckpt(self, ckpt_path): class BaseSpeakerTTS (line 42) | class BaseSpeakerTTS(OpenVoiceBaseClass): method get_text (line 49) | def get_text(text, hps, is_symbol): method audio_numpy_concat (line 57) | def audio_numpy_concat(segment_data_list, sr, speed=1.): method split_sentences_into_pieces (line 66) | def split_sentences_into_pieces(text, language_str): method tts (line 73) | def tts(self, text, output_path, speaker, language='English', speed=1.0): class ToneColorConverter (line 101) | class ToneColorConverter(OpenVoiceBaseClass): method __init__ (line 102) | def __init__(self, *args, **kwargs): method extract_se (line 114) | def extract_se(self, ref_wav_list, se_save_path=None): method convert (line 141) | def convert(self, audio_src_path, src_se, tgt_se, output_path=None, ta... method add_watermark (line 162) | def add_watermark(self, audio, message): method detect_watermark (line 186) | def detect_watermark(self, audio, n_repeat): FILE: openvoice/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 104) | def forward(self, x, x_mask, g=None): class Decoder (line 124) | class Decoder(nn.Module): method __init__ (line 125) | def __init__( method forward (line 184) | def forward(self, x, x_mask, h, h_mask): class MultiHeadAttention (line 210) | class MultiHeadAttention(nn.Module): method __init__ (line 211) | def __init__( method forward (line 264) | def forward(self, x, c, attn_mask=None): method attention (line 274) | def attention(self, query, key, value, mask=None): method _matmul_with_relative_values (line 325) | def _matmul_with_relative_values(self, x, y): method _matmul_with_relative_keys (line 334) | def _matmul_with_relative_keys(self, x, y): method _get_relative_embeddings (line 343) | def _get_relative_embeddings(self, relative_embeddings, length): method _relative_position_to_absolute_position (line 361) | def _relative_position_to_absolute_position(self, x): method _absolute_position_to_relative_position (line 382) | def _absolute_position_to_relative_position(self, x): method _attention_bias_proximal (line 398) | def _attention_bias_proximal(self, length): class FFN (line 410) | class FFN(nn.Module): method __init__ (line 411) | def __init__( method forward (line 439) | def forward(self, x, x_mask): method _causal_padding (line 449) | def _causal_padding(self, x): method _same_padding (line 458) | def _same_padding(self, x): FILE: openvoice/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: openvoice/mel_processing.py function dynamic_range_compression_torch (line 8) | def dynamic_range_compression_torch(x, C=1, clip_val=1e-5): function dynamic_range_decompression_torch (line 17) | def dynamic_range_decompression_torch(x, C=1): function spectral_normalize_torch (line 26) | def spectral_normalize_torch(magnitudes): function spectral_de_normalize_torch (line 31) | def spectral_de_normalize_torch(magnitudes): function spectrogram_torch (line 40) | def spectrogram_torch(y, n_fft, sampling_rate, hop_size, win_size, cente... function spectrogram_torch_conv (line 78) | def spectrogram_torch_conv(y, n_fft, sampling_rate, hop_size, win_size, ... function spec_to_mel_torch (line 122) | def spec_to_mel_torch(spec, n_fft, num_mels, sampling_rate, fmin, fmax): function mel_spectrogram_torch (line 136) | def mel_spectrogram_torch( FILE: openvoice/models.py class TextEncoder (line 16) | class TextEncoder(nn.Module): method __init__ (line 17) | def __init__(self, method forward (line 48) | def forward(self, x, x_lengths): class DurationPredictor (line 60) | class DurationPredictor(nn.Module): method __init__ (line 61) | def __init__( method forward (line 86) | def forward(self, x, x_mask, g=None): class StochasticDurationPredictor (line 102) | class StochasticDurationPredictor(nn.Module): method __init__ (line 103) | def __init__(self, in_channels, filter_channels, kernel_size, p_dropou... method forward (line 135) | def forward(self, x, x_mask, w=None, g=None, reverse=False, noise_scal... class PosteriorEncoder (line 182) | class PosteriorEncoder(nn.Module): method __init__ (line 183) | def __init__( method forward (line 212) | def forward(self, x, x_lengths, g=None, tau=1.0): class Generator (line 224) | class Generator(torch.nn.Module): method __init__ (line 225) | def __init__( method forward (line 272) | def forward(self, x, g=None): method remove_weight_norm (line 293) | def remove_weight_norm(self): class ReferenceEncoder (line 301) | class ReferenceEncoder(nn.Module): method __init__ (line 307) | def __init__(self, spec_channels, gin_channels=0, layernorm=True): method forward (line 339) | def forward(self, inputs, mask=None): method calculate_channels (line 361) | def calculate_channels(self, L, kernel_size, stride, pad, n_convs): class ResidualCouplingBlock (line 367) | class ResidualCouplingBlock(nn.Module): method __init__ (line 368) | def __init__(self, method forward (line 390) | def forward(self, x, x_mask, g=None, reverse=False): class SynthesizerTrn (line 399) | class SynthesizerTrn(nn.Module): method __init__ (line 404) | def __init__( method infer (line 467) | def infer(self, x, x_lengths, sid=None, noise_scale=1, length_scale=1,... method voice_conversion (line 492) | def voice_conversion(self, y, y_lengths, sid_src, sid_tgt, tau=1.0): FILE: openvoice/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: openvoice/openvoice_app.py function predict (line 37) | def predict(prompt, style, audio_file_pth, agree): FILE: openvoice/se_extractor.py function split_audio_whisper (line 19) | def split_audio_whisper(audio_path, audio_name, target_dir='processed'): function split_audio_vad (line 77) | def split_audio_vad(audio_path, audio_name, target_dir, split_seconds=10... function hash_numpy_array (line 118) | def hash_numpy_array(audio_path): function get_se (line 129) | def get_se(audio_path, vc_model, target_dir='processed', vad=True): FILE: openvoice/text/__init__.py function text_to_sequence (line 11) | def text_to_sequence(text, symbols, cleaner_names): function cleaned_text_to_sequence (line 33) | def cleaned_text_to_sequence(cleaned_text, symbols): function cleaned_text_to_sequence_vits2 (line 47) | def cleaned_text_to_sequence_vits2(cleaned_text, tones, language, symbol... function sequence_to_text (line 64) | def sequence_to_text(sequence): function _clean_text (line 73) | def _clean_text(text, cleaner_names): FILE: openvoice/text/cleaners.py function cjke_cleaners2 (line 5) | def cjke_cleaners2(text): FILE: openvoice/text/english.py function expand_abbreviations (line 88) | def expand_abbreviations(text): function collapse_whitespace (line 94) | def collapse_whitespace(text): function _remove_commas (line 98) | def _remove_commas(m): function _expand_decimal_point (line 102) | def _expand_decimal_point(m): function _expand_dollars (line 106) | def _expand_dollars(m): function _expand_ordinal (line 127) | def _expand_ordinal(m): function _expand_number (line 131) | def _expand_number(m): function normalize_numbers (line 146) | def normalize_numbers(text): function mark_dark_l (line 156) | def mark_dark_l(text): function english_to_ipa (line 160) | def english_to_ipa(text): function english_to_lazy_ipa (line 169) | def english_to_lazy_ipa(text): function english_to_ipa2 (line 176) | def english_to_ipa2(text): function english_to_lazy_ipa2 (line 184) | def english_to_lazy_ipa2(text): FILE: openvoice/text/mandarin.py function number_to_chinese (line 236) | def number_to_chinese(text): function chinese_to_bopomofo (line 243) | def chinese_to_bopomofo(text): function latin_to_bopomofo (line 260) | def latin_to_bopomofo(text): function bopomofo_to_romaji (line 266) | def bopomofo_to_romaji(text): function bopomofo_to_ipa (line 272) | def bopomofo_to_ipa(text): function bopomofo_to_ipa2 (line 278) | def bopomofo_to_ipa2(text): function chinese_to_romaji (line 284) | def chinese_to_romaji(text): function chinese_to_lazy_ipa (line 297) | def chinese_to_lazy_ipa(text): function chinese_to_ipa (line 304) | def chinese_to_ipa(text): function chinese_to_ipa2 (line 317) | def chinese_to_ipa2(text): FILE: openvoice/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: openvoice/utils.py function get_hparams_from_file (line 6) | def get_hparams_from_file(config_path): class HParams (line 14) | class HParams: method __init__ (line 15) | def __init__(self, **kwargs): method keys (line 21) | def keys(self): method items (line 24) | def items(self): method values (line 27) | def values(self): method __len__ (line 30) | def __len__(self): method __getitem__ (line 33) | def __getitem__(self, key): method __setitem__ (line 36) | def __setitem__(self, key, value): method __contains__ (line 39) | def __contains__(self, key): method __repr__ (line 42) | def __repr__(self): function string_to_bits (line 46) | def string_to_bits(string, pad_len=8): function bits_to_string (line 65) | def bits_to_string(bits_array): function split_sentence (line 78) | def split_sentence(text, min_len=10, language_str='[EN]'): function split_sentences_latin (line 85) | def split_sentences_latin(text, min_len=10): function merge_short_sentences_latin (line 120) | def merge_short_sentences_latin(sens): function split_sentences_zh (line 145) | def split_sentences_zh(text, min_len=10): function merge_short_sentences_zh (line 170) | def merge_short_sentences_zh(sens):