SYMBOL INDEX (218 symbols across 38 files) FILE: ChatTTS/config/config.py class Path (line 5) | class Path: class Decoder (line 14) | class Decoder: class VQ (line 23) | class VQ: class DVAE (line 31) | class DVAE: class GPT (line 50) | class GPT: class FeatureExtractorInitArgs (line 65) | class FeatureExtractorInitArgs: class FeatureExtractor (line 74) | class FeatureExtractor: class BackboneInitArgs (line 80) | class BackboneInitArgs: class Backbone (line 88) | class Backbone: class FourierHeadInitArgs (line 94) | class FourierHeadInitArgs: class FourierHead (line 102) | class FourierHead: class Vocos (line 108) | class Vocos: class Config (line 115) | class Config: FILE: ChatTTS/core.py class Chat (line 31) | class Chat: method __init__ (line 32) | def __init__(self, logger=logging.getLogger(__name__)): method has_loaded (line 50) | def has_loaded(self, use_decoder=False): method download_models (line 69) | def download_models( method load (line 125) | def load( method unload (line 149) | def unload(self): method sample_random_speaker (line 160) | def sample_random_speaker(self) -> str: method sample_audio_speaker (line 164) | def sample_audio_speaker(self, wav: Union[np.ndarray, torch.Tensor]) -... method _sample_random_speaker (line 170) | def _sample_random_speaker(self) -> torch.Tensor: class RefineTextParams (line 180) | class RefineTextParams: class InferCodeParams (line 192) | class InferCodeParams(RefineTextParams): method infer (line 204) | def infer( method interrupt (line 235) | def interrupt(self): method _load (line 239) | def _load( method _infer (line 340) | def _infer( method _encode_spk_emb (line 421) | def _encode_spk_emb(spk_emb: torch.Tensor) -> str: method _vocos_decode (line 434) | def _vocos_decode(self, spec: torch.Tensor) -> np.ndarray: method _decode_to_wavs (line 441) | def _decode_to_wavs( method _infer_code (line 470) | def _infer_code( method _refine_text (line 562) | def _refine_text( FILE: ChatTTS/experimental/llm.py class llm_api (line 25) | class llm_api: method __init__ (line 26) | def __init__(self, api_key, base_url, model): method call (line 32) | def call(self, user_question, temperature = 0.3, prompt_version='kimi'... FILE: ChatTTS/infer/api.py function infer_code (line 7) | def infer_code( function refine_text (line 77) | def refine_text( FILE: ChatTTS/model/cuda/patch.py class LlamaRMSNorm (line 4) | class LlamaRMSNorm(torch.nn.Module): method __init__ (line 5) | def __init__(self, hidden_size, eps=1e-6): method forward (line 13) | def forward(self, hidden_states: torch.Tensor): FILE: ChatTTS/model/cuda/te_llama.py function replace_decoder (line 29) | def replace_decoder(te_decoder_cls, llama_rms_norm_cls): class TELlamaDecoderLayer (line 50) | class TELlamaDecoderLayer(te.pytorch.TransformerLayer): method __init__ (line 61) | def __init__(self, config, *args, **kwargs): method forward (line 81) | def forward(self, hidden_states, *args, attention_mask, **kwargs): class TELlamaModel (line 96) | class TELlamaModel: method __new__ (line 106) | def __new__(cls, config: LlamaConfig): method from_state_dict (line 114) | def from_state_dict( function _replace_params (line 134) | def _replace_params(hf_state_dict, te_state_dict, config): FILE: ChatTTS/model/dvae.py class ConvNeXtBlock (line 13) | class ConvNeXtBlock(nn.Module): method __init__ (line 14) | def __init__( method forward (line 45) | def forward(self, x: torch.Tensor, cond=None) -> torch.Tensor: class GFSQ (line 68) | class GFSQ(nn.Module): method __init__ (line 70) | def __init__( method _embed (line 86) | def _embed(self, x: torch.Tensor): method __call__ (line 98) | def __call__(self, x: torch.Tensor) -> torch.Tensor: method forward (line 101) | def forward(self, x: torch.Tensor) -> torch.Tensor: class DVAEDecoder (line 130) | class DVAEDecoder(nn.Module): method __init__ (line 131) | def __init__( method forward (line 162) | def forward(self, x: torch.Tensor, conditioning=None) -> torch.Tensor: class MelSpectrogramFeatures (line 174) | class MelSpectrogramFeatures(torch.nn.Module): method __init__ (line 175) | def __init__( method __call__ (line 196) | def __call__(self, audio: torch.Tensor) -> torch.Tensor: method forward (line 199) | def forward(self, audio: torch.Tensor) -> torch.Tensor: class DVAE (line 205) | class DVAE(nn.Module): method __init__ (line 206) | def __init__( method __repr__ (line 240) | def __repr__(self) -> str: method __call__ (line 245) | def __call__( method forward (line 251) | def forward( FILE: ChatTTS/model/gpt.py class GPT (line 22) | class GPT(nn.Module): method __init__ (line 23) | def __init__( method from_pretrained (line 86) | def from_pretrained(self, file_path: str): class Context (line 109) | class Context: method __init__ (line 110) | def __init__(self): method set (line 113) | def set(self, v: bool): method get (line 116) | def get(self) -> bool: method _build_llama (line 119) | def _build_llama( method prepare (line 141) | def prepare(self, compile=False): method __call__ (line 151) | def __call__( method forward (line 159) | def forward(self, input_ids: torch.Tensor, text_mask: torch.Tensor) ->... class _GenerationInputs (line 189) | class _GenerationInputs: method to (line 198) | def to(self, device: torch.device, dtype: torch.dtype): method _prepare_generation_inputs (line 208) | def _prepare_generation_inputs( class GenerationOutputs (line 318) | class GenerationOutputs: method destroy (line 323) | def destroy(self): method _prepare_generation_outputs (line 328) | def _prepare_generation_outputs( method generate (line 356) | def generate( FILE: ChatTTS/model/processors.py class CustomRepetitionPenaltyLogitsProcessorRepeat (line 6) | class CustomRepetitionPenaltyLogitsProcessorRepeat: method __init__ (line 8) | def __init__(self, penalty: float, max_input_ids: int, past_window: int): method __call__ (line 18) | def __call__( function gen_logits (line 38) | def gen_logits( FILE: ChatTTS/model/tokenizer.py class Tokenizer (line 20) | class Tokenizer: method __init__ (line 21) | def __init__( method encode (line 37) | def encode( method _decode_spk_emb (line 132) | def _decode_spk_emb(spk_emb: str) -> np.ndarray: method apply_spk_emb (line 143) | def apply_spk_emb( method _decode_prompt (line 171) | def _decode_prompt(prompt: str) -> torch.Tensor: method _encode_prompt (line 187) | def _encode_prompt(prompt: torch.Tensor) -> str: method _encode_spk_emb (line 204) | def _encode_spk_emb(spk_emb: torch.Tensor) -> str: FILE: ChatTTS/norm.py function _find_index (line 14) | def _find_index(table: np.ndarray, val: np.uint16): function _fast_replace (line 22) | def _fast_replace( class Normalizer (line 37) | class Normalizer: method __init__ (line 38) | def __init__(self, map_file_path: str, logger=logging.getLogger(__name... method __call__ (line 129) | def __call__( method register (line 159) | def register(self, name: str, normalizer: Callable[[str], str]) -> bool: method unregister (line 174) | def unregister(self, name: str): method destroy (line 178) | def destroy(self): method _load_homophones_map (line 182) | def _load_homophones_map(self, map_file_path: str) -> np.ndarray: method _count_invalid_characters (line 191) | def _count_invalid_characters(self, s: str): method _apply_half2full_map (line 196) | def _apply_half2full_map(self, text: str) -> str: method _apply_character_map (line 199) | def _apply_character_map(self, text: str) -> str: method _detect_language (line 202) | def _detect_language(self, sentence: str) -> Literal["zh", "en"]: FILE: ChatTTS/utils/dl.py function sha256 (line 12) | def sha256(fileno: int) -> str: function check_model (line 19) | def check_model( function check_all_assets (line 46) | def check_all_assets(base_dir: Path, sha256_map: Dict[str, str], update=... function download_and_extract_tar_gz (line 68) | def download_and_extract_tar_gz(url: str, folder: str): function download_and_extract_zip (line 82) | def download_and_extract_zip(url: str, folder: str): function download_dns_yaml (line 96) | def download_dns_yaml(url: str, folder: str): function download_all_assets (line 104) | def download_all_assets(tmpdir: str, version="0.2.6"): FILE: ChatTTS/utils/download.py function sha256 (line 11) | def sha256(f) -> str: function check_model (line 19) | def check_model( function check_all_assets (line 47) | def check_all_assets(update=False) -> bool: function download_and_extract_tar_gz (line 87) | def download_and_extract_tar_gz(url: str, folder: str): function download_and_extract_zip (line 101) | def download_and_extract_zip(url: str, folder: str): function download_dns_yaml (line 115) | def download_dns_yaml(url: str, folder: str): function download_all_assets (line 123) | def download_all_assets(tmpdir: str, version="0.2.5"): FILE: ChatTTS/utils/gpu.py function select_device (line 6) | def select_device(min_memory=2047, experimental=False): FILE: ChatTTS/utils/gpu_utils.py function select_device (line 5) | def select_device(min_memory=2048): FILE: ChatTTS/utils/infer_utils.py class CustomRepetitionPenaltyLogitsProcessorRepeat (line 9) | class CustomRepetitionPenaltyLogitsProcessorRepeat(): method __init__ (line 11) | def __init__(self, penalty: float, max_input_ids, past_window): method __call__ (line 19) | def __call__(self, input_ids: torch.LongTensor, scores: torch.FloatTen... class CustomRepetitionPenaltyLogitsProcessor (line 30) | class CustomRepetitionPenaltyLogitsProcessor(): method __init__ (line 32) | def __init__(self, penalty: float, max_input_ids, past_window): method __call__ (line 40) | def __call__(self, input_ids: torch.LongTensor, scores: torch.FloatTen... class HomophonesReplacer (line 51) | class HomophonesReplacer: method __init__ (line 69) | def __init__(self, map_file_path): method load_homophones_map (line 72) | def load_homophones_map(self, map_file_path): method replace (line 77) | def replace(self, text): function count_invalid_characters (line 86) | def count_invalid_characters(s): function detect_language (line 93) | def detect_language(sentence): function apply_half2full_map (line 173) | def apply_half2full_map(text): function apply_character_map (line 177) | def apply_character_map(text): FILE: ChatTTS/utils/io.py function get_latest_modified_file (line 9) | def get_latest_modified_file(directory): function del_all (line 22) | def del_all(d: Union[dict, list]): FILE: ChatTTS/utils/io_utils.py function get_latest_modified_file (line 5) | def get_latest_modified_file(directory): FILE: ChatTTS/utils/log.py class Logger (line 5) | class Logger: method __init__ (line 6) | def __init__(self, logger=logging.getLogger(Path(__file__).parent.name)): method set_logger (line 9) | def set_logger(self, logger: logging.Logger): method get_logger (line 12) | def get_logger(self) -> logging.Logger: FILE: app.py function static_files (line 122) | def static_files(filename): function index (line 127) | def index(): function tts (line 156) | def tts(): function clear_wavs (line 391) | def clear_wavs(): FILE: run.py function save_wav_file (line 17) | def save_wav_file(wav, index): function main (line 28) | def main(): FILE: static/js/layer/layer.js function e (line 2) | function e(){var e=a.cancel&&a.cancel(t.index,n);e===!1||r.close(t.index)} function o (line 2) | function o(e,t,i){var n=new Image;return n.src=e,n.complete?t(n):(n.onlo... FILE: tools/audio/np.py function unsafe_float_to_int16 (line 6) | def unsafe_float_to_int16(audio: np.ndarray) -> np.ndarray: FILE: tools/checksum/main.go function main (line 11) | func main() { FILE: tools/checksum/tmpl.go constant jsontmpl (line 18) | jsontmpl = `{ FILE: tools/llm/llm.py class ChatOpenAI (line 55) | class ChatOpenAI: method __init__ (line 56) | def __init__(self, api_key, base_url, model): method call (line 63) | def call(self, user_question, temperature=0.3, prompt_version="kimi", ... FILE: tools/logger/log.py class Formatter (line 37) | class Formatter(logging.Formatter): method __init__ (line 38) | def __init__(self, color=platform.system().lower() != "windows"): method format (line 43) | def format(self, record: logging.LogRecord): function get_logger (line 55) | def get_logger(name: str, lv=logging.INFO, remove_exist=False, format_ro... FILE: tools/normalizer/en.py function normalizer_en_nemo_text (line 5) | def normalizer_en_nemo_text() -> Callable[[str], str]: FILE: tools/normalizer/zh.py function normalizer_zh_tn (line 4) | def normalizer_zh_tn() -> Callable[[str], str]: FILE: tools/seeder/ctx.py class TorchSeedContext (line 4) | class TorchSeedContext: method __init__ (line 5) | def __init__(self, seed): method __enter__ (line 9) | def __enter__(self): method __exit__ (line 13) | def __exit__(self, type, value, traceback): FILE: uilib/cfg.py function get_executable_path (line 5) | def get_executable_path(): FILE: uilib/utils.py function openweb (line 13) | def openweb(url): function get_parameter (line 20) | def get_parameter(request, param, default, cast_type): function num_to_english (line 33) | def num_to_english(num): function get_lang (line 96) | def get_lang(text): function fraction_to_words (line 104) | def fraction_to_words(match): function num2text (line 113) | def num2text(text): function remove_brackets (line 141) | def remove_brackets(text): function split_text (line 151) | def split_text(text_list): function split_text_by_punctuation (line 183) | def split_text_by_punctuation(text): function ClearWav (line 216) | def ClearWav(directory): function load_speaker (line 239) | def load_speaker(name): function get_speakers (line 254) | def get_speakers(): function is_network (line 262) | def is_network(): function is_chinese_os (line 274) | def is_chinese_os(): function modelscope_status (line 305) | def modelscope_status(): FILE: uilib/zh_normalization/char_convert.py function tranditional_to_simplified (line 30) | def tranditional_to_simplified(text: str) -> str: function simplified_to_traditional (line 35) | def simplified_to_traditional(text: str) -> str: FILE: uilib/zh_normalization/chronology.py function _time_num2str (line 22) | def _time_num2str(num_string: str) -> str: function replace_time (line 45) | def replace_time(match) -> str: function replace_date (line 92) | def replace_date(match) -> str: function replace_date2 (line 117) | def replace_date2(match) -> str: FILE: uilib/zh_normalization/num.py function replace_frac (line 37) | def replace_frac(match) -> str: function replace_percentage (line 58) | def replace_percentage(match) -> str: function replace_negative_num (line 78) | def replace_negative_num(match) -> str: function replace_default_num (line 98) | def replace_default_num(match): function replace_positive_quantifier (line 117) | def replace_positive_quantifier(match) -> str: function replace_number (line 135) | def replace_number(match) -> str: function replace_range (line 161) | def replace_range(match) -> str: function _get_value (line 175) | def _get_value(value_string: str, use_zero: bool=True) -> List[str]: function verbalize_cardinal (line 193) | def verbalize_cardinal(value_string: str) -> str: function verbalize_digit (line 210) | def verbalize_digit(value_string: str, alt_one=False) -> str: function num2str (line 218) | def num2str(value_string: str) -> str: FILE: uilib/zh_normalization/phonecode.py function phone2str (line 33) | def phone2str(phone_string: str, mobile=True) -> str: function replace_phone (line 46) | def replace_phone(match) -> str: function replace_mobile (line 56) | def replace_mobile(match) -> str: FILE: uilib/zh_normalization/quantifier.py function replace_temperature (line 42) | def replace_temperature(match) -> str: function replace_measure (line 59) | def replace_measure(sentence) -> str: FILE: uilib/zh_normalization/text_normlization.py class TextNormalizer (line 53) | class TextNormalizer(): method __init__ (line 54) | def __init__(self): method _split (line 57) | def _split(self, text: str, lang="zh") -> List[str]: method _post_replace (line 107) | def _post_replace(self, sentence: str) -> str: method num_to_chinese (line 156) | def num_to_chinese(self,num): method normalize_sentence (line 200) | def normalize_sentence(self, sentence: str) -> str: method normalize (line 265) | def normalize(self, text: str) -> List[str]: