Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/OpenMOSS/MOSS-TTS-Nano
/ functions
Functions
370 in github.com/OpenMOSS/MOSS-TTS-Nano
⨍
Functions
370
◇
Types & classes
27
↳
Endpoints
11
↓ 80 callers
Method
get
(self, stream_id: str)
app.py:428
↓ 15 callers
Method
snapshot
(self)
app.py:389
↓ 14 callers
Function
_maybe_delete_file
(path_value: str | None)
app.py:592
↓ 9 callers
Method
_session
(self, path_value: Path)
ort_cpu_runtime.py:379
↓ 9 callers
Function
apply_rotary_pos_emb
( hidden_states: torch.Tensor, cos: torch.Tensor, sin: torch.Tensor, )
onnx/export_moss_tts_browser_onnx.py:77
↓ 9 callers
Method
reset
(self)
ort_cpu_runtime.py:271
↓ 8 callers
Method
__init__
(self, model: nn.Module)
onnx/export_moss_tts_browser_onnx.py:553
↓ 8 callers
Method
_split_heads
(self, tensor: torch.Tensor)
onnx/export_moss_tts_browser_onnx.py:328
↓ 7 callers
Method
_build_text_rows
(self, token_ids: List[int])
finetuning/dataset.py:233
↓ 7 callers
Method
_run_decode_step
( self, *, inputs_embeds: torch.Tensor, past_valid_lengths: torch.Tensor,
onnx/export_moss_tts_browser_onnx.py:502
↓ 7 callers
Function
_warmup_status_text
(snapshot: WarmupSnapshot)
app.py:451
↓ 6 callers
Function
_coerce_bool
(value: str | None, default: bool)
app.py:601
↓ 6 callers
Method
_split_heads
(self, tensor: torch.Tensor)
onnx/export_moss_tts_browser_onnx.py:94
↓ 6 callers
Method
count_text_tokens
(self, text: str)
onnx_tts_runtime.py:323
↓ 6 callers
Function
encode_text
(tokenizer, text: str)
finetuning/dataset.py:25
↓ 6 callers
Function
normalize_audio_codes
(value: Any, field_name: str)
finetuning/dataset.py:32
↓ 6 callers
Function
normalize_tts_text
对 TTS 输入做鲁棒性正则化。
tts_robust_normalizer_single_script.py:98
↓ 6 callers
Method
start
(self)
app.py:168
↓ 5 callers
Method
_discard_loaded_model_locked
(self, reason: str)
moss_tts_nano_runtime.py:266
↓ 5 callers
Method
_load_model_locked
(self)
moss_tts_nano_runtime.py:346
↓ 5 callers
Method
_set_state
( self, *, state: str | None = None, progress: float | None = None, me
app.py:196
↓ 5 callers
Function
_text_normalization_status_text
(snapshot: SharedTextNormalizationSnapshot | None)
app.py:2258
↓ 5 callers
Function
export_onnx
( *, module: nn.Module, output_path: Path, args: tuple[torch.Tensor, ...], input_names: li
onnx/export_moss_tts_browser_onnx.py:1053
↓ 5 callers
Function
format_timestamp
()
finetuning/common.py:146
↓ 5 callers
Function
patch_global_attention_graph
(output_path: Path)
onnx/export_moss_tts_browser_onnx.py:1077
↓ 4 callers
Function
_concat_waveforms
(waveforms: list[np.ndarray])
onnx_tts_runtime.py:256
↓ 4 callers
Function
_existing_local_model_path
(value: str)
moss_tts_nano_runtime.py:114
↓ 4 callers
Function
_merge_audio_channels
(channel_arrays: list[np.ndarray])
onnx_tts_runtime.py:246
↓ 4 callers
Method
_read_model_attention_implementation
(self, model)
moss_tts_nano_runtime.py:293
↓ 4 callers
Method
_set_state
(self, *, state: str, message: str, error: str | None = None)
text_normalization_pipeline.py:51
↓ 4 callers
Method
ensure_ready
(self)
app.py:185
↓ 4 callers
Method
get_voice_preset
(self, voice_name: Optional[str])
moss_tts_nano_runtime.py:425
↓ 4 callers
Method
list_builtin_voices
(self)
ort_cpu_runtime.py:419
↓ 4 callers
Method
resolve_prompt_audio_path
( self, *, voice: Optional[str] = None, prompt_audio_path: Optional[str | Path
moss_tts_nano_runtime.py:430
↓ 4 callers
Method
run_frames
(self, frame_rows: list[list[int]])
ort_cpu_runtime.py:282
↓ 4 callers
Method
run_local_cached_step
( self, global_hidden: np.ndarray, *, text_token_id: int, audio_token_
ort_cpu_runtime.py:544
↓ 3 callers
Method
_apply_model_attention_implementation
(model, *, global_attn: str, local_attn: str)
moss_tts_nano_runtime.py:222
↓ 3 callers
Function
_contains_cjk
(text: str)
onnx_tts_runtime.py:176
↓ 3 callers
Function
_extract_last_hidden
(hidden_states: np.ndarray)
ort_cpu_runtime.py:97
↓ 3 callers
Function
_flatten3d_int32
(nested: list[list[list[int]]])
ort_cpu_runtime.py:61
↓ 3 callers
Function
_flatten_past_key_values
(past_key_values: Iterable[tuple[torch.Tensor, torch.Tensor]])
onnx/export_moss_tts_browser_onnx.py:61
↓ 3 callers
Function
_normalize_execution_provider
(raw_execution_provider: str | None)
ort_cpu_runtime.py:34
↓ 3 callers
Function
_resolve_path
(path: str, base_dir: Optional[Path])
finetuning/common.py:154
↓ 3 callers
Method
_resolve_request_attention_implementation
( self, requested: Optional[str], )
moss_tts_nano_runtime.py:197
↓ 3 callers
Method
_resolve_sample_mode
(raw_sample_mode: str | None, *, do_sample: bool)
app_onnx.py:134
↓ 3 callers
Function
_sample_audio_token
( audio_logits: np.ndarray, previous_token_ids: list[int], previous_token_set: set[int], gener
ort_cpu_runtime.py:207
↓ 3 callers
Function
apply_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 callers
Method
build_voice_clone_request_rows
(self, prompt_audio_codes: list[list[int]], text_token_ids: list[int])
ort_cpu_runtime.py:494
↓ 3 callers
Method
encode_text
(self, text: str)
onnx_tts_runtime.py:320
↓ 3 callers
Method
generate_audio_frames
( self, request_rows: dict[str, list[list[int]]], on_frame: Callable[[list[list[int]],
ort_cpu_runtime.py:659
↓ 3 callers
Function
normalize_audio_path_list
( value: Any, field_name: str, *, allow_none: bool = False, base_dir: Optional[Path] = Non
finetuning/common.py:103
↓ 3 callers
Method
resolve_manifest_relative_path
(self, relative_path: str | Path)
ort_cpu_runtime.py:363
↓ 3 callers
Method
run_local_decoder
(self, global_hidden: np.ndarray, text_token_id: int, frame_prefix: list[int])
ort_cpu_runtime.py:516
↓ 3 callers
Method
slice_audio_channel_logits
(self, audio_logits: np.ndarray, channel_index: int)
ort_cpu_runtime.py:636
↓ 3 callers
Method
split_voice_clone_text
(self, text: str, max_tokens: int = 75)
onnx_tts_runtime.py:387
↓ 3 callers
Function
waveform_to_numpy
(waveform: torch.Tensor | np.ndarray)
moss_tts_nano_runtime.py:88
↓ 2 callers
Method
_apply_generation_options
( self, *, sample_mode: str | None, max_new_frames: int, do_sample: bo
app_onnx.py:103
↓ 2 callers
Function
_argmax
(values: np.ndarray)
ort_cpu_runtime.py:30
↓ 2 callers
Method
_build_audio_rows
(self, audio_codes: torch.LongTensor, *, slot_token_id: int)
finetuning/dataset.py:243
↓ 2 callers
Method
_build_inputs_embeds
(self, input_ids_i32: torch.Tensor)
onnx/export_moss_tts_browser_onnx.py:304
↓ 2 callers
Method
_build_output_path
(self, prefix: str)
moss_tts_nano_runtime.py:468
↓ 2 callers
Method
_build_position_ids
(attention_mask: torch.Tensor)
onnx/export_moss_tts_browser_onnx.py:337
↓ 2 callers
Method
_can_use_flash_attention
(self)
moss_tts_nano_runtime.py:164
↓ 2 callers
Method
_decode_step
( self, *, input_embed: torch.Tensor, present: tuple[tuple[torch.Tensor, torch
onnx/export_moss_tts_browser_onnx.py:871
↓ 2 callers
Function
_directory_contains_all
(parent: Path, required_names: Sequence[str])
onnx_tts_runtime.py:72
↓ 2 callers
Method
_discard_loaded_audio_tokenizer_locked
(self, reason: str)
moss_tts_nano_runtime.py:274
↓ 2 callers
Method
_ensure_normalizers_loaded
(self)
text_normalization_pipeline.py:95
↓ 2 callers
Function
_ensure_terminal_punctuation
(text: str)
tts_robust_normalizer_single_script.py:278
↓ 2 callers
Function
_find_manifest_path
(model_dir: Path)
onnx_tts_runtime.py:64
↓ 2 callers
Function
_flatten2d_int32
(nested: list[list[int]])
ort_cpu_runtime.py:75
↓ 2 callers
Method
_format_result_payload
( self, *, waveform: np.ndarray, sample_rate: int, elapsed_seconds: fl
app_onnx.py:142
↓ 2 callers
Function
_format_run_status
(result: dict[str, object])
app.py:460
↓ 2 callers
Function
_format_stream_status
(snapshot: dict[str, object])
app.py:496
↓ 2 callers
Function
_has_flash_attn
()
moss_tts_nano_runtime.py:122
↓ 2 callers
Function
_is_external_tensor
(tensor: TensorProto)
onnx/export_hf_to_tts_onnx.py:83
↓ 2 callers
Method
_load_audio_tokenizer_locked
(self, *, tts_attn_implementation: str)
moss_tts_nano_runtime.py:310
↓ 2 callers
Method
_locked_runtime
(self, cpu_threads: int | None)
app_onnx.py:454
↓ 2 callers
Method
_merge_heads
(self, tensor: torch.Tensor)
onnx/export_moss_tts_browser_onnx.py:98
↓ 2 callers
Method
_merge_heads
(self, tensor: torch.Tensor)
onnx/export_moss_tts_browser_onnx.py:332
↓ 2 callers
Method
_normalize_codes_to_model_width
( self, codes: torch.LongTensor, *, field_name: str, index: int, )
finetuning/dataset.py:254
↓ 2 callers
Function
_normalize_download_layout
(target_dir: Path, required_names: Sequence[str])
onnx_tts_runtime.py:100
↓ 2 callers
Function
_normalize_flow_arrows
(text: str)
tts_robust_normalizer_single_script.py:195
↓ 2 callers
Method
_normalize_loaded_attn_implementation
(attn_implementation: object)
moss_tts_nano_runtime.py:191
↓ 2 callers
Function
_normalize_sample_mode
(raw_sample_mode: str | None, raw_do_sample: bool = True)
ort_cpu_runtime.py:228
↓ 2 callers
Function
_normalize_spaces
(text: str)
tts_robust_normalizer_single_script.py:203
↓ 2 callers
Function
_resolve_attn_for_runtime
(selected_runtime: NanoTTSService, requested_attn: str)
app.py:2265
↓ 2 callers
Method
_resolve_attn_implementation
(self, requested: str | None)
moss_tts_nano_runtime.py:170
↓ 2 callers
Method
_resolve_cpu_threads
(self, cpu_threads: int | None)
app.py:294
↓ 2 callers
Function
_resolve_demo_entry
(demo_id: str)
app.py:2211
↓ 2 callers
Function
_resolve_model_dir_path
(model_dir: str | Path | None)
onnx_tts_runtime.py:52
↓ 2 callers
Function
_resolve_model_source
(value: str | Path)
moss_tts_nano_runtime.py:102
↓ 2 callers
Function
_resolve_prompt_audio_request
( *, demo_id: str, prompt_audio: UploadFile | None, )
app.py:2220
↓ 2 callers
Function
_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 callers
Function
_resolve_voice_clone_text_chunks
( *, text: str, voice_clone_max_text_tokens: int, cpu_threads: int, )
app.py:2185
↓ 2 callers
Method
_restore_model_execution_state
(self, model)
moss_tts_nano_runtime.py:284
↓ 2 callers
Function
_rewrite_hyphens_before_zh_wetext
Avoid Chinese WeText reading non-numeric hyphens as '减'.
text_normalization_pipeline.py:141
↓ 2 callers
Method
_run_transformer
( self, *, inputs_embeds: torch.Tensor, full_attention_mask: torch.Tensor,
onnx/export_moss_tts_browser_onnx.py:453
↓ 2 callers
Function
_sample_assistant_text_token
( text_logits: np.ndarray, manifest: dict[str, Any], generation_defaults: dict[str, Any], rng:
ort_cpu_runtime.py:182
↓ 2 callers
Function
_sample_from_scores
( values: np.ndarray, *, do_sample: bool, temperature: float, top_k: int, top_p: float
ort_cpu_runtime.py:137
↓ 2 callers
Function
_sanitize_uploaded_prompt_filename
(filename: str | None)
app.py:612
next →
1–100 of 370, ranked by callers