Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/QwenLM/Qwen3-TTS
/ functions
Functions
375 in github.com/QwenLM/Qwen3-TTS
⨍
Functions
375
◇
Types & classes
111
↳
Endpoints
1
Method
forward
(self, hidden_states)
qwen_tts/core/tokenizer_12hz/modeling_qwen3_tts_tokenizer_v2.py:227
Method
forward
(self, x, position_ids)
qwen_tts/core/tokenizer_12hz/modeling_qwen3_tts_tokenizer_v2.py:268
Method
forward
( self, hidden_states: torch.Tensor, position_embeddings: tuple[torch.Tensor, torch.Te
qwen_tts/core/tokenizer_12hz/modeling_qwen3_tts_tokenizer_v2.py:312
Method
forward
(self, x)
qwen_tts/core/tokenizer_12hz/modeling_qwen3_tts_tokenizer_v2.py:368
Method
forward
(self, hidden_states: torch.Tensor)
qwen_tts/core/tokenizer_12hz/modeling_qwen3_tts_tokenizer_v2.py:383
Method
forward
(self, x: torch.Tensor)
qwen_tts/core/tokenizer_12hz/modeling_qwen3_tts_tokenizer_v2.py:405
Method
forward
Args: hidden_states (`torch.FloatTensor`): input to the layer of shape `(batch, seq_len, embed_dim)` attention_mask (
qwen_tts/core/tokenizer_12hz/modeling_qwen3_tts_tokenizer_v2.py:421
Method
forward
( self, input_ids=None, attention_mask=None, position_ids=None, past_k
qwen_tts/core/tokenizer_12hz/modeling_qwen3_tts_tokenizer_v2.py:501
Method
forward
Forward pass of the function. Applies the function to the input elementwise. SnakeBeta ∶= x + 1/b * sin^2 (xa)
qwen_tts/core/tokenizer_12hz/modeling_qwen3_tts_tokenizer_v2.py:602
Method
forward
(self, hidden_state)
qwen_tts/core/tokenizer_12hz/modeling_qwen3_tts_tokenizer_v2.py:628
Method
forward
(self, hidden)
qwen_tts/core/tokenizer_12hz/modeling_qwen3_tts_tokenizer_v2.py:655
Method
forward
(self, codes)
qwen_tts/core/tokenizer_12hz/modeling_qwen3_tts_tokenizer_v2.py:869
Method
forward
(self, hidden_states)
qwen_tts/core/models/modeling_qwen3_tts.py:115
Method
forward
(self, hidden_states)
qwen_tts/core/models/modeling_qwen3_tts.py:150
Method
forward
(self, hidden_states)
qwen_tts/core/models/modeling_qwen3_tts.py:214
Method
forward
(self, hidden_states: torch.Tensor)
qwen_tts/core/models/modeling_qwen3_tts.py:266
Method
forward
(self, hidden_state)
qwen_tts/core/models/modeling_qwen3_tts.py:300
Method
forward
(self, hidden_states)
qwen_tts/core/models/modeling_qwen3_tts.py:373
Method
forward
(self, x, position_ids)
qwen_tts/core/models/modeling_qwen3_tts.py:546
Method
forward
(self, x, position_ids)
qwen_tts/core/models/modeling_qwen3_tts.py:581
Method
forward
(self, hidden_states)
qwen_tts/core/models/modeling_qwen3_tts.py:605
Method
forward
( self, hidden_states: torch.Tensor, position_embeddings: tuple[torch.Tensor, torch.Te
qwen_tts/core/models/modeling_qwen3_tts.py:761
Method
forward
(self, hidden_state)
qwen_tts/core/models/modeling_qwen3_tts.py:815
Method
forward
(self, x)
qwen_tts/core/models/modeling_qwen3_tts.py:853
Method
forward
( self, hidden_states: torch.Tensor, position_embeddings: tuple[torch.Tensor, torch.Te
qwen_tts/core/models/modeling_qwen3_tts.py:916
Method
forward
( self, hidden_states: torch.Tensor, attention_mask: Optional[torch.Tensor] = None,
qwen_tts/core/models/modeling_qwen3_tts.py:973
Method
forward
( self, input_ids=None, attention_mask=None, position_ids=None, past_k
qwen_tts/core/models/modeling_qwen3_tts.py:1044
Method
forward
r""" labels (`torch.LongTensor` of shape `(batch_size, sequence_length)`, *optional*): Labels for computing the masked language mo
qwen_tts/core/models/modeling_qwen3_tts.py:1250
Method
forward
Args: hidden_states (`torch.FloatTensor`): input to the layer of shape `(batch, seq_len, embed_dim)` attention_mask (
qwen_tts/core/models/modeling_qwen3_tts.py:1359
Method
forward
( self, input_ids: Optional[torch.LongTensor] = None, attention_mask: Optional[torch.T
qwen_tts/core/models/modeling_qwen3_tts.py:1457
Method
forward
r""" labels (`torch.LongTensor` of shape `(batch_size, sequence_length)`, *optional*): Labels for computing the masked language mo
qwen_tts/core/models/modeling_qwen3_tts.py:1636
Method
from_pretrained
( cls, pretrained_model_name_or_path, *model_args, config=None, cache_
qwen_tts/core/tokenizer_25hz/modeling_qwen3_tts_tokenizer_v1.py:1397
Method
from_pretrained
Initialize tokenizer with HuggingFace `from_pretrained` style. Args: pretrained_model_name_or_path (str):
qwen_tts/inference/qwen3_tts_tokenizer.py:64
Method
get_decode_upsample_rate
(self)
qwen_tts/core/tokenizer_25hz/modeling_qwen3_tts_tokenizer_v1.py:1393
Method
get_decode_upsample_rate
(self)
qwen_tts/core/tokenizer_12hz/modeling_qwen3_tts_tokenizer_v2.py:958
Method
get_decode_upsample_rate
Get the decoder upsample rate (waveform samples per code step). Returns: int: Decode upsample rate.
qwen_tts/inference/qwen3_tts_tokenizer.py:404
Method
get_decoder
(self)
qwen_tts/core/models/modeling_qwen3_tts.py:1194
Method
get_decoder
(self)
qwen_tts/core/models/modeling_qwen3_tts.py:1609
Method
get_encode_downsample_rate
(self)
qwen_tts/core/tokenizer_25hz/modeling_qwen3_tts_tokenizer_v1.py:1390
Method
get_encode_downsample_rate
(self)
qwen_tts/core/tokenizer_12hz/modeling_qwen3_tts_tokenizer_v2.py:955
Method
get_encode_downsample_rate
Get the encoder downsample rate (waveform samples per code step). Returns: int: Encode downsample rate.
qwen_tts/inference/qwen3_tts_tokenizer.py:395
Method
get_input_embeddings
(self)
qwen_tts/core/models/modeling_qwen3_tts.py:1037
Method
get_input_embeddings
(self)
qwen_tts/core/models/modeling_qwen3_tts.py:1179
Method
get_input_sample_rate
(self)
qwen_tts/core/tokenizer_25hz/modeling_qwen3_tts_tokenizer_v1.py:1384
Method
get_input_sample_rate
(self)
qwen_tts/core/tokenizer_12hz/modeling_qwen3_tts_tokenizer_v2.py:949
Method
get_input_sample_rate
Get the expected input sample rate for encoding. Returns: int: Input sample rate (Hz).
qwen_tts/inference/qwen3_tts_tokenizer.py:377
Method
get_model_type
(self)
qwen_tts/core/tokenizer_25hz/modeling_qwen3_tts_tokenizer_v1.py:1381
Method
get_model_type
(self)
qwen_tts/core/tokenizer_12hz/modeling_qwen3_tts_tokenizer_v2.py:946
Method
get_output_embeddings
(self)
qwen_tts/core/models/modeling_qwen3_tts.py:1185
Method
get_output_embeddings
(self)
qwen_tts/core/models/modeling_qwen3_tts.py:1600
Method
get_output_sample_rate
(self)
qwen_tts/core/tokenizer_25hz/modeling_qwen3_tts_tokenizer_v1.py:1387
Method
get_output_sample_rate
(self)
qwen_tts/core/tokenizer_12hz/modeling_qwen3_tts_tokenizer_v2.py:952
Method
get_supported_languages
List supported language names for the current model. This is a convenience wrapper around `model.get_supported_languages()`.
qwen_tts/inference/qwen3_tts_model.py:861
Method
get_supported_speakers
List supported speaker names for the current model. This is a convenience wrapper around `model.get_supported_speakers()`. I
qwen_tts/inference/qwen3_tts_model.py:842
Method
get_text_embeddings
(self)
qwen_tts/core/models/modeling_qwen3_tts.py:1594
Method
layer_types
All layer in code2wav should be sliding attention
qwen_tts/core/tokenizer_12hz/configuration_qwen3_tts_tokenizer_v2.py:117
Function
load_prompt_and_gen
(file_obj, text: str, lang_disp: str)
qwen_tts/cli/demo.py:526
Method
lock
(self, layers: int)
qwen_tts/core/tokenizer_25hz/vq/whisper_encoder.py:402
Method
model_input_names
(self)
qwen_tts/core/models/processing_qwen3_tts.py:97
Method
ode_function
(time_step, hidden_states)
qwen_tts/core/tokenizer_25hz/modeling_qwen3_tts_tokenizer_v1.py:1186
Method
optimized_scale
(self, positive_flat, negative_flat)
qwen_tts/core/tokenizer_25hz/modeling_qwen3_tts_tokenizer_v1.py:1162
Method
pick
(name: str, user_val: Any)
qwen_tts/inference/qwen3_tts_model.py:332
Function
round_up_multiple
(num, mult)
qwen_tts/core/tokenizer_25hz/vq/core_vq.py:45
Function
run_instruct
(text: str, lang_disp: str, spk_disp: str, instruct: str)
qwen_tts/cli/demo.py:317
Function
run_voice_clone
(ref_aud, ref_txt: str, use_xvec: bool, text: str, lang_disp: str)
qwen_tts/cli/demo.py:420
Function
run_voice_design
(text: str, lang_disp: str, design: str)
qwen_tts/cli/demo.py:364
Function
save_prompt
(ref_aud, ref_txt: str, use_xvec: bool)
qwen_tts/cli/demo.py:501
Method
set_decoder
(self, decoder)
qwen_tts/core/models/modeling_qwen3_tts.py:1191
Method
set_decoder
(self, decoder)
qwen_tts/core/models/modeling_qwen3_tts.py:1606
Method
set_input_embeddings
(self, value)
qwen_tts/core/models/modeling_qwen3_tts.py:1040
Method
set_input_embeddings
(self, value)
qwen_tts/core/models/modeling_qwen3_tts.py:1182
Method
set_input_embeddings
(self, value)
qwen_tts/core/models/modeling_qwen3_tts.py:1453
Method
set_input_embeddings
(self, value)
qwen_tts/core/models/modeling_qwen3_tts.py:1597
Method
set_output_embeddings
(self, new_embeddings)
qwen_tts/core/models/modeling_qwen3_tts.py:1188
Method
set_output_embeddings
(self, new_embeddings)
qwen_tts/core/models/modeling_qwen3_tts.py:1603
← previous
301–375 of 375, ranked by callers