MCPcopy Create free account

hub / github.com/OpenMOSS/MOSS-TTS-Nano / functions

Functions370 in github.com/OpenMOSS/MOSS-TTS-Nano

↓ 80 callersMethodget
(self, stream_id: str)
app.py:428
↓ 15 callersMethodsnapshot
(self)
app.py:389
↓ 14 callersFunction_maybe_delete_file
(path_value: str | None)
app.py:592
↓ 9 callersMethod_session
(self, path_value: Path)
ort_cpu_runtime.py:379
↓ 9 callersFunctionapply_rotary_pos_emb
( hidden_states: torch.Tensor, cos: torch.Tensor, sin: torch.Tensor, )
onnx/export_moss_tts_browser_onnx.py:77
↓ 9 callersMethodreset
(self)
ort_cpu_runtime.py:271
↓ 8 callersMethod__init__
(self, model: nn.Module)
onnx/export_moss_tts_browser_onnx.py:553
↓ 8 callersMethod_split_heads
(self, tensor: torch.Tensor)
onnx/export_moss_tts_browser_onnx.py:328
↓ 7 callersMethod_build_text_rows
(self, token_ids: List[int])
finetuning/dataset.py:233
↓ 7 callersMethod_run_decode_step
( self, *, inputs_embeds: torch.Tensor, past_valid_lengths: torch.Tensor,
onnx/export_moss_tts_browser_onnx.py:502
↓ 7 callersFunction_warmup_status_text
(snapshot: WarmupSnapshot)
app.py:451
↓ 6 callersFunction_coerce_bool
(value: str | None, default: bool)
app.py:601
↓ 6 callersMethod_split_heads
(self, tensor: torch.Tensor)
onnx/export_moss_tts_browser_onnx.py:94
↓ 6 callersMethodcount_text_tokens
(self, text: str)
onnx_tts_runtime.py:323
↓ 6 callersFunctionencode_text
(tokenizer, text: str)
finetuning/dataset.py:25
↓ 6 callersFunctionnormalize_audio_codes
(value: Any, field_name: str)
finetuning/dataset.py:32
↓ 6 callersFunctionnormalize_tts_text
对 TTS 输入做鲁棒性正则化。
tts_robust_normalizer_single_script.py:98
↓ 6 callersMethodstart
(self)
app.py:168
↓ 5 callersMethod_discard_loaded_model_locked
(self, reason: str)
moss_tts_nano_runtime.py:266
↓ 5 callersMethod_load_model_locked
(self)
moss_tts_nano_runtime.py:346
↓ 5 callersMethod_set_state
( self, *, state: str | None = None, progress: float | None = None, me
app.py:196
↓ 5 callersFunction_text_normalization_status_text
(snapshot: SharedTextNormalizationSnapshot | None)
app.py:2258
↓ 5 callersFunctionexport_onnx
( *, module: nn.Module, output_path: Path, args: tuple[torch.Tensor, ...], input_names: li
onnx/export_moss_tts_browser_onnx.py:1053
↓ 5 callersFunctionformat_timestamp
()
finetuning/common.py:146
↓ 5 callersFunctionpatch_global_attention_graph
(output_path: Path)
onnx/export_moss_tts_browser_onnx.py:1077
↓ 4 callersFunction_concat_waveforms
(waveforms: list[np.ndarray])
onnx_tts_runtime.py:256
↓ 4 callersFunction_existing_local_model_path
(value: str)
moss_tts_nano_runtime.py:114
↓ 4 callersFunction_merge_audio_channels
(channel_arrays: list[np.ndarray])
onnx_tts_runtime.py:246
↓ 4 callersMethod_read_model_attention_implementation
(self, model)
moss_tts_nano_runtime.py:293
↓ 4 callersMethod_set_state
(self, *, state: str, message: str, error: str | None = None)
text_normalization_pipeline.py:51
↓ 4 callersMethodensure_ready
(self)
app.py:185
↓ 4 callersMethodget_voice_preset
(self, voice_name: Optional[str])
moss_tts_nano_runtime.py:425
↓ 4 callersMethodlist_builtin_voices
(self)
ort_cpu_runtime.py:419
↓ 4 callersMethodresolve_prompt_audio_path
( self, *, voice: Optional[str] = None, prompt_audio_path: Optional[str | Path
moss_tts_nano_runtime.py:430
↓ 4 callersMethodrun_frames
(self, frame_rows: list[list[int]])
ort_cpu_runtime.py:282
↓ 4 callersMethodrun_local_cached_step
( self, global_hidden: np.ndarray, *, text_token_id: int, audio_token_
ort_cpu_runtime.py:544
↓ 3 callersMethod_apply_model_attention_implementation
(model, *, global_attn: str, local_attn: str)
moss_tts_nano_runtime.py:222
↓ 3 callersFunction_contains_cjk
(text: str)
onnx_tts_runtime.py:176
↓ 3 callersFunction_extract_last_hidden
(hidden_states: np.ndarray)
ort_cpu_runtime.py:97
↓ 3 callersFunction_flatten3d_int32
(nested: list[list[list[int]]])
ort_cpu_runtime.py:61
↓ 3 callersFunction_flatten_past_key_values
(past_key_values: Iterable[tuple[torch.Tensor, torch.Tensor]])
onnx/export_moss_tts_browser_onnx.py:61
↓ 3 callersFunction_normalize_execution_provider
(raw_execution_provider: str | None)
ort_cpu_runtime.py:34
↓ 3 callersFunction_resolve_path
(path: str, base_dir: Optional[Path])
finetuning/common.py:154
↓ 3 callersMethod_resolve_request_attention_implementation
( self, requested: Optional[str], )
moss_tts_nano_runtime.py:197
↓ 3 callersMethod_resolve_sample_mode
(raw_sample_mode: str | None, *, do_sample: bool)
app_onnx.py:134
↓ 3 callersFunction_sample_audio_token
( audio_logits: np.ndarray, previous_token_ids: list[int], previous_token_set: set[int], gener
ort_cpu_runtime.py:207
↓ 3 callersFunctionapply_repetition_penalty_from_seen_mask
( logits: torch.Tensor, seen_mask_i32: torch.Tensor, repetition_penalty_f32: torch.Tensor, )
onnx/export_moss_tts_browser_onnx.py:701
↓ 3 callersMethodbuild_voice_clone_request_rows
(self, prompt_audio_codes: list[list[int]], text_token_ids: list[int])
ort_cpu_runtime.py:494
↓ 3 callersMethodencode_text
(self, text: str)
onnx_tts_runtime.py:320
↓ 3 callersMethodgenerate_audio_frames
( self, request_rows: dict[str, list[list[int]]], on_frame: Callable[[list[list[int]],
ort_cpu_runtime.py:659
↓ 3 callersFunctionnormalize_audio_path_list
( value: Any, field_name: str, *, allow_none: bool = False, base_dir: Optional[Path] = Non
finetuning/common.py:103
↓ 3 callersMethodresolve_manifest_relative_path
(self, relative_path: str | Path)
ort_cpu_runtime.py:363
↓ 3 callersMethodrun_local_decoder
(self, global_hidden: np.ndarray, text_token_id: int, frame_prefix: list[int])
ort_cpu_runtime.py:516
↓ 3 callersMethodslice_audio_channel_logits
(self, audio_logits: np.ndarray, channel_index: int)
ort_cpu_runtime.py:636
↓ 3 callersMethodsplit_voice_clone_text
(self, text: str, max_tokens: int = 75)
onnx_tts_runtime.py:387
↓ 3 callersFunctionwaveform_to_numpy
(waveform: torch.Tensor | np.ndarray)
moss_tts_nano_runtime.py:88
↓ 2 callersMethod_apply_generation_options
( self, *, sample_mode: str | None, max_new_frames: int, do_sample: bo
app_onnx.py:103
↓ 2 callersFunction_argmax
(values: np.ndarray)
ort_cpu_runtime.py:30
↓ 2 callersMethod_build_audio_rows
(self, audio_codes: torch.LongTensor, *, slot_token_id: int)
finetuning/dataset.py:243
↓ 2 callersMethod_build_inputs_embeds
(self, input_ids_i32: torch.Tensor)
onnx/export_moss_tts_browser_onnx.py:304
↓ 2 callersMethod_build_output_path
(self, prefix: str)
moss_tts_nano_runtime.py:468
↓ 2 callersMethod_build_position_ids
(attention_mask: torch.Tensor)
onnx/export_moss_tts_browser_onnx.py:337
↓ 2 callersMethod_can_use_flash_attention
(self)
moss_tts_nano_runtime.py:164
↓ 2 callersMethod_decode_step
( self, *, input_embed: torch.Tensor, present: tuple[tuple[torch.Tensor, torch
onnx/export_moss_tts_browser_onnx.py:871
↓ 2 callersFunction_directory_contains_all
(parent: Path, required_names: Sequence[str])
onnx_tts_runtime.py:72
↓ 2 callersMethod_discard_loaded_audio_tokenizer_locked
(self, reason: str)
moss_tts_nano_runtime.py:274
↓ 2 callersMethod_ensure_normalizers_loaded
(self)
text_normalization_pipeline.py:95
↓ 2 callersFunction_ensure_terminal_punctuation
(text: str)
tts_robust_normalizer_single_script.py:278
↓ 2 callersFunction_find_manifest_path
(model_dir: Path)
onnx_tts_runtime.py:64
↓ 2 callersFunction_flatten2d_int32
(nested: list[list[int]])
ort_cpu_runtime.py:75
↓ 2 callersMethod_format_result_payload
( self, *, waveform: np.ndarray, sample_rate: int, elapsed_seconds: fl
app_onnx.py:142
↓ 2 callersFunction_format_run_status
(result: dict[str, object])
app.py:460
↓ 2 callersFunction_format_stream_status
(snapshot: dict[str, object])
app.py:496
↓ 2 callersFunction_has_flash_attn
()
moss_tts_nano_runtime.py:122
↓ 2 callersFunction_is_external_tensor
(tensor: TensorProto)
onnx/export_hf_to_tts_onnx.py:83
↓ 2 callersMethod_load_audio_tokenizer_locked
(self, *, tts_attn_implementation: str)
moss_tts_nano_runtime.py:310
↓ 2 callersMethod_locked_runtime
(self, cpu_threads: int | None)
app_onnx.py:454
↓ 2 callersMethod_merge_heads
(self, tensor: torch.Tensor)
onnx/export_moss_tts_browser_onnx.py:98
↓ 2 callersMethod_merge_heads
(self, tensor: torch.Tensor)
onnx/export_moss_tts_browser_onnx.py:332
↓ 2 callersMethod_normalize_codes_to_model_width
( self, codes: torch.LongTensor, *, field_name: str, index: int, )
finetuning/dataset.py:254
↓ 2 callersFunction_normalize_download_layout
(target_dir: Path, required_names: Sequence[str])
onnx_tts_runtime.py:100
↓ 2 callersFunction_normalize_flow_arrows
(text: str)
tts_robust_normalizer_single_script.py:195
↓ 2 callersMethod_normalize_loaded_attn_implementation
(attn_implementation: object)
moss_tts_nano_runtime.py:191
↓ 2 callersFunction_normalize_sample_mode
(raw_sample_mode: str | None, raw_do_sample: bool = True)
ort_cpu_runtime.py:228
↓ 2 callersFunction_normalize_spaces
(text: str)
tts_robust_normalizer_single_script.py:203
↓ 2 callersFunction_resolve_attn_for_runtime
(selected_runtime: NanoTTSService, requested_attn: str)
app.py:2265
↓ 2 callersMethod_resolve_attn_implementation
(self, requested: str | None)
moss_tts_nano_runtime.py:170
↓ 2 callersMethod_resolve_cpu_threads
(self, cpu_threads: int | None)
app.py:294
↓ 2 callersFunction_resolve_demo_entry
(demo_id: str)
app.py:2211
↓ 2 callersFunction_resolve_model_dir_path
(model_dir: str | Path | None)
onnx_tts_runtime.py:52
↓ 2 callersFunction_resolve_model_source
(value: str | Path)
moss_tts_nano_runtime.py:102
↓ 2 callersFunction_resolve_prompt_audio_request
( *, demo_id: str, prompt_audio: UploadFile | None, )
app.py:2220
↓ 2 callersFunction_resolve_stream_decode_frame_budget
( emitted_samples_total: int, sample_rate: int, first_audio_emitted_at_seconds: float | None, )
ort_cpu_runtime.py:245
↓ 2 callersFunction_resolve_voice_clone_text_chunks
( *, text: str, voice_clone_max_text_tokens: int, cpu_threads: int, )
app.py:2185
↓ 2 callersMethod_restore_model_execution_state
(self, model)
moss_tts_nano_runtime.py:284
↓ 2 callersFunction_rewrite_hyphens_before_zh_wetext
Avoid Chinese WeText reading non-numeric hyphens as '减'.
text_normalization_pipeline.py:141
↓ 2 callersMethod_run_transformer
( self, *, inputs_embeds: torch.Tensor, full_attention_mask: torch.Tensor,
onnx/export_moss_tts_browser_onnx.py:453
↓ 2 callersFunction_sample_assistant_text_token
( text_logits: np.ndarray, manifest: dict[str, Any], generation_defaults: dict[str, Any], rng:
ort_cpu_runtime.py:182
↓ 2 callersFunction_sample_from_scores
( values: np.ndarray, *, do_sample: bool, temperature: float, top_k: int, top_p: float
ort_cpu_runtime.py:137
↓ 2 callersFunction_sanitize_uploaded_prompt_filename
(filename: str | None)
app.py:612
next →1–100 of 370, ranked by callers