MCPcopy Create free account

hub / github.com/SparkAudio/Spark-TTS / functions

Functions234 in github.com/SparkAudio/Spark-TTS

↓ 1 callersFunctionround_ste
Round with straight through gradients.
sparktts/modules/fsq/finite_scalar_quantization.py:54
↓ 1 callersFunctionround_up_multiple
(num, mult)
sparktts/modules/fsq/residual_fsq.py:28
↓ 1 callersFunctionrun_main
()
runtime/triton_trtllm/client_grpc.py:823
↓ 1 callersFunctionrun_tts
Perform TTS inference and save the generated audio.
cli/inference.py:64
↓ 1 callersFunctionsend
( manifest_item_list: list, name: str, triton_client: tritonclient.grpc.aio.InferenceServerClient,
runtime/triton_trtllm/client_grpc.py:517
↓ 1 callersFunctionsend_streaming
( manifest_item_list: list, name: str, server_url: str, # Changed from sync_triton_client prot
runtime/triton_trtllm/client_grpc.py:433
↓ 1 callersFunctionsnake
(x, alpha)
sparktts/modules/blocks/layers.py:34
↓ 1 callersFunctionsplit_data
(data, k)
runtime/triton_trtllm/client_grpc.py:586
↓ 1 callersMethodtask
Turn special token of task.
sparktts/utils/token_parser.py:144
↓ 1 callersMethodtokenize
tokenize the input mel spectrogram
sparktts/modules/speaker/speaker_encoder.py:100
↓ 1 callersFunctionunpack_one
(t, ps, pattern)
sparktts/modules/fsq/finite_scalar_quantization.py:47
↓ 1 callersFunctionupdate_quant_config_from_hf
(quant_config, hf_config, override_fields)
runtime/triton_trtllm/scripts/convert_checkpoint.py:194
↓ 1 callersFunctionwrite_triton_stats
(stats, summary_file)
runtime/triton_trtllm/client_grpc.py:89
FunctionECAPA_TDNN_GLOB_c1024
(feat_dim, embed_dim, pooling_func="ASTP", emb_bn=False)
sparktts/modules/speaker/ecapa_tdnn.py:221
FunctionECAPA_TDNN_c1024
(feat_dim, embed_dim, pooling_func="ASTP", emb_bn=False)
sparktts/modules/speaker/ecapa_tdnn.py:211
FunctionECAPA_TDNN_c512
(feat_dim, embed_dim, pooling_func="ASTP", emb_bn=False)
sparktts/modules/speaker/ecapa_tdnn.py:232
Method__init__
( self, levels: List[int], dim: int | None = None, num_codebooks=1, ke
sparktts/modules/fsq/finite_scalar_quantization.py:64
Method__init__
(self, *, dim, groups=1, accept_image_fmap=False, **kwargs)
sparktts/modules/fsq/residual_fsq.py:270
Method__init__
( self, input_channels: int, vocos_dim: int, vocos_intermediate_dim: int,
sparktts/modules/encoder_decoder/feat_encoder.py:29
Method__init__
( self, input_channel, channels, rates, kernel_sizes, d_out: i
sparktts/modules/encoder_decoder/wave_generator.py:57
Method__init__
( self, input_channels: int, vocos_dim: int, vocos_intermediate_dim: int,
sparktts/modules/encoder_decoder/feat_decoder.py:34
Method__init__
( self, channels, kernel_size=1, stride=1, padding=0, dilation
sparktts/modules/speaker/ecapa_tdnn.py:33
Method__init__
( self, in_channels, out_channels, kernel_size=1, stride=1, pa
sparktts/modules/speaker/ecapa_tdnn.py:91
Method__init__
(self, channels, kernel_size, stride, padding, dilation, scale)
sparktts/modules/speaker/ecapa_tdnn.py:137
Method__init__
( self, channels=512, feat_dim=80, embed_dim=192, pooling_func="ASTP",
sparktts/modules/speaker/ecapa_tdnn.py:154
Method__init__
(self, dim, scale=True, dim_cond=None)
sparktts/modules/speaker/perceiver_encoder.py:196
Method__init__
(self, *args, **kwargs)
sparktts/modules/speaker/perceiver_encoder.py:218
Method__init__
( self, dim, *, dim_context=None, causal=False, dim_head=64,
sparktts/modules/speaker/perceiver_encoder.py:255
Method__init__
( self, *, dim, depth=2, dim_context=None, num_latents=32,
sparktts/modules/speaker/perceiver_encoder.py:298
Method__init__
( self, input_dim: int = 100, out_dim: int = 512, latent_dim: int = 128,
sparktts/modules/speaker/speaker_encoder.py:44
Method__init__
(self, in_dim=0, **kwargs)
sparktts/modules/speaker/pooling_layers.py:52
Method__init__
(self, in_dim=0, **kwargs)
sparktts/modules/speaker/pooling_layers.py:74
Method__init__
(self, in_dim, bottleneck_dim=128, global_context_att=False
sparktts/modules/speaker/pooling_layers.py:97
Method__init__
(self, in_dim, layer_num=2, head_num=2, d_
sparktts/modules/speaker/pooling_layers.py:158
Method__init__
(self, in_dim, layer_num=2, query_num=2, h
sparktts/modules/speaker/pooling_layers.py:247
Method__init__
( self, input_dim: int, codebook_size: int, codebook_dim: int, commitm
sparktts/modules/vq/factorized_vector_quantize.py:37
Method__init__
(self, dim: int = 16, dilation: int = 1)
sparktts/modules/blocks/layers.py:52
Method__init__
( self, dim: int, intermediate_dim: int, layer_scale_init_value: float,
sparktts/modules/blocks/vocos.py:38
Method__init__
(self, condition_dim: int, embedding_dim: int, eps: float = 1e-6)
sparktts/modules/blocks/vocos.py:96
Method__init__
( self, input_channels: int, dim: int, intermediate_dim: int, num_laye
sparktts/modules/blocks/vocos.py:287
Method__init__
( self, input_channels, dim, num_blocks, layer_scale_init_value=None,
sparktts/modules/blocks/vocos.py:349
Method__init__
Args: dim: input dimension groups: number of groups upsample_scale: upsampling scale downsamp
sparktts/modules/blocks/samper.py:25
Method__init__
(self)
sparktts/utils/token_parser.py:69
Method__init__
(self, model_dir: Path, device: torch.device = None, **kwargs)
sparktts/models/audio_tokenizer.py:32
Method__init__
Initializes the BiCodec model with the required components. Args: mel_params (dict): Parameters for the mel-spectrogram
sparktts/models/bicodec.py:37
Method__init__
Initializes the SparkTTS model with the provided configurations and device. Args: model_dir (Path): Directory containing
cli/SparkTTS.py:32
Method__init__
(self)
runtime/triton_trtllm/client_grpc.py:66
Method_init_weights
(self, m)
sparktts/modules/blocks/vocos.py:319
Method_remove_weight_norm
(m)
sparktts/models/bicodec.py:215
Functionaudio_highpass_filter
apply highpass fileter to audio Args: audio (np.ndarray): sample_rate (ind): highpass_cutoff_freq (int):
sparktts/utils/audio.py:137
Functioncallback
(user_data, result, error)
runtime/triton_trtllm/client_grpc.py:79
Methodcodebooks
(self)
sparktts/modules/fsq/residual_fsq.py:107
Methodcodebooks
(self)
sparktts/modules/fsq/residual_fsq.py:287
Functionconvert_and_save_rank
(args, rank)
runtime/triton_trtllm/scripts/convert_checkpoint.py:268
Functiondecode_unicode_strings
(meta: Dict[str, Any])
sparktts/utils/file.py:106
Methoddetokenize
detokenize the input indices
sparktts/modules/vq/factorized_vector_quantize.py:154
Methodexecute
Execute inference on the batched requests. Args: requests: List of inference requests Returns:
runtime/triton_trtllm/model_repo/spark_tts/1/model.py:305
Methodexecute
Execute inference on the batched requests. Args: requests: List of inference requests Returns:
runtime/triton_trtllm/model_repo/audio_tokenizer/1/model.py:86
Methodexecute
Execute inference on the batched requests. Args: requests: List of inference requests Returns:
runtime/triton_trtllm/model_repo/vocoder/1/model.py:72
Functionfirst
(l)
sparktts/modules/fsq/residual_fsq.py:20
Methodforward
einstein notation b - batch n - sequence (or flattened spatial dimensions) d - feature dimension c - number o
sparktts/modules/fsq/finite_scalar_quantization.py:182
Methodforward
(self, x, return_all_codes=False, rand_quantize_dropout_fixed_seed=None)
sparktts/modules/fsq/residual_fsq.py:158
Methodforward
(self, x, return_all_codes=False)
sparktts/modules/fsq/residual_fsq.py:308
Methodforward
Args: x (torch.Tensor): (batch_size, input_channels, length) Returns: x (torch.Tensor): (batch_size, encode_
sparktts/modules/encoder_decoder/feat_encoder.py:76
Methodforward
(self, x)
sparktts/modules/encoder_decoder/wave_generator.py:52
Methodforward
(self, x)
sparktts/modules/encoder_decoder/wave_generator.py:87
Methodforward
encoder forward. Args: x (torch.Tensor): (batch_size, input_channels, length) Returns: x (torch.Tensor): (ba
sparktts/modules/encoder_decoder/feat_decoder.py:78
Methodforward
(self, x)
sparktts/modules/speaker/ecapa_tdnn.py:67
Methodforward
(self, x)
sparktts/modules/speaker/ecapa_tdnn.py:107
Methodforward
(self, x)
sparktts/modules/speaker/ecapa_tdnn.py:122
Methodforward
(self, x)
sparktts/modules/speaker/ecapa_tdnn.py:148
Methodforward
(self, x, return_latent=False)
sparktts/modules/speaker/ecapa_tdnn.py:191
Methodforward
einstein notation b - batch h - heads n, i, j - sequence length (base sequence length, source, target) d - fe
sparktts/modules/speaker/perceiver_encoder.py:135
Methodforward
(self, x, cond=None)
sparktts/modules/speaker/perceiver_encoder.py:204
Methodforward
(self, x)
sparktts/modules/speaker/perceiver_encoder.py:227
Methodforward
(self, x, context=None, mask=None)
sparktts/modules/speaker/perceiver_encoder.py:280
Methodforward
(self, x, mask=None)
sparktts/modules/speaker/perceiver_encoder.py:339
Methodforward
Args: mels: (B, D_mel, T1) Return: x_vector: (B, out_dim) d_vector: (B, out_dim)
sparktts/modules/speaker/speaker_encoder.py:81
Methodforward
(self, x)
sparktts/modules/speaker/pooling_layers.py:36
Methodforward
(self, x)
sparktts/modules/speaker/pooling_layers.py:56
Methodforward
(self, x)
sparktts/modules/speaker/pooling_layers.py:78
Methodforward
x: a 3-dimensional tensor in tdnn-based architecture (B,F,T) or a 4-dimensional tensor in resnet architecture (B,C,F,T)
sparktts/modules/speaker/pooling_layers.py:119
Methodforward
input: a 3-dimensional tensor in xvector architecture or a 4-dimensional tensor in resnet architecture 0-dim: batch-d
sparktts/modules/speaker/pooling_layers.py:193
Methodforward
input: a 3-dimensional tensor in xvector architecture or a 4-dimensional tensor in resnet architecture 0-dim: batch-d
sparktts/modules/speaker/pooling_layers.py:266
Methodforward
Quantized the input tensor using a fixed codebook and returns the corresponding codebook vectors Parameters ----------
sparktts/modules/vq/factorized_vector_quantize.py:70
Methodforward
(self, x)
sparktts/modules/blocks/layers.py:47
Methodforward
(self, x)
sparktts/modules/blocks/layers.py:62
Methodforward
( self, x: torch.Tensor, cond_embedding_id: Optional[torch.Tensor] = None )
sparktts/modules/blocks/vocos.py:65
Methodforward
(self, x: torch.Tensor, cond_embedding: torch.Tensor)
sparktts/modules/blocks/vocos.py:105
Methodforward
(self, x: torch.Tensor)
sparktts/modules/blocks/vocos.py:235
Methodforward
Args: x (Tensor): Input tensor of shape (B, C, L), where B is the batch size, C denotes output features,
sparktts/modules/blocks/vocos.py:260
Methodforward
(self, x: torch.Tensor, condition: torch.Tensor = None)
sparktts/modules/blocks/vocos.py:324
Methodforward
(self, x: torch.Tensor, **kwargs)
sparktts/modules/blocks/vocos.py:369
Methodforward
(self, x)
sparktts/modules/blocks/samper.py:79
Methodforward
Performs a forward pass through the model. Args: batch (dict): A dictionary containing features, reference waveform, and
sparktts/models/bicodec.py:113
Methodget_codes_from_indices
(self, indices)
sparktts/modules/fsq/residual_fsq.py:294
Methodget_codes_from_indices
(self, indices: torch.Tensor)
sparktts/modules/speaker/speaker_encoder.py:71
Methodget_emb
(self)
sparktts/modules/vq/factorized_vector_quantize.py:160
Methodget_indices
(self, mels: torch.Tensor)
sparktts/modules/speaker/speaker_encoder.py:75
Methodget_out_dim
(self)
sparktts/modules/speaker/pooling_layers.py:62
← previousnext →101–200 of 234, ranked by callers