Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/SparkAudio/Spark-TTS
/ types & classes
Types & classes
43 in github.com/SparkAudio/Spark-TTS
⨍
Functions
234
◇
Types & classes
43
↓ 4 callers
Class
ECAPA_TDNN
sparktts/modules/speaker/ecapa_tdnn.py:152
↓ 4 callers
Class
SamplingBlock
Sampling block for upsampling or downsampling
sparktts/modules/blocks/samper.py:22
↓ 4 callers
Class
Snake1d
sparktts/modules/blocks/layers.py:42
↓ 4 callers
Class
VocosBackbone
Vocos backbone module built with ConvNeXt blocks. Supports additional conditioning with Adaptive Layer Normalization Args: input_cha
sparktts/modules/blocks/vocos.py:273
↓ 3 callers
Class
BiCodecTokenizer
BiCodec tokenizer for handling audio input and tokenization.
sparktts/models/audio_tokenizer.py:29
↓ 3 callers
Class
Conv1dReluBn
sparktts/modules/speaker/ecapa_tdnn.py:89
↓ 3 callers
Class
Decoder
Decoder module with convnext and upsampling blocks Args: sample_ratios (List[int]): sample ratios example: [2, 2] means downs
sparktts/modules/encoder_decoder/feat_decoder.py:26
↓ 3 callers
Class
ResidualFSQ
Follows Algorithm 1. in https://arxiv.org/pdf/2107.03312.pdf
sparktts/modules/fsq/residual_fsq.py:48
↓ 3 callers
Class
ResidualUnit
sparktts/modules/blocks/layers.py:51
↓ 3 callers
Class
SE_Res2Block
sparktts/modules/speaker/ecapa_tdnn.py:135
↓ 2 callers
Class
AdaLayerNorm
Adaptive Layer Normalization module with learnable embeddings per `num_embeddings` classes Args: condition_dim (int): Dimension of t
sparktts/modules/blocks/vocos.py:87
↓ 2 callers
Class
Encoder
Encoder module with convnext and downsampling blocks
sparktts/modules/encoder_decoder/feat_encoder.py:26
↓ 2 callers
Class
MHASTP
Multi head attentive statistics pooling Reference: Self Multi-Head Attention for Speaker Recognition https://arxiv.org/pdf/1906.0
sparktts/modules/speaker/pooling_layers.py:151
↓ 2 callers
Class
MQMHASTP
An attentive pooling Reference: multi query multi head attentive statistics pooling https://arxiv.org/pdf/2110.05042.pdf Args
sparktts/modules/speaker/pooling_layers.py:225
↓ 2 callers
Class
PerceiverResampler
sparktts/modules/speaker/perceiver_encoder.py:297
↓ 2 callers
Class
SparkTTS
Spark-TTS for text-to-speech generation.
cli/SparkTTS.py:27
↓ 2 callers
Class
SpeakerEncoder
Args: input_dim (int): acoustic feature dimension out_dim (int): output dimension of x-vector and d-vector latent_dim (i
sparktts/modules/speaker/speaker_encoder.py:29
↓ 1 callers
Class
Attend
sparktts/modules/speaker/perceiver_encoder.py:52
↓ 1 callers
Class
Attention
sparktts/modules/speaker/perceiver_encoder.py:254
↓ 1 callers
Class
CausalConv1d
sparktts/modules/speaker/perceiver_encoder.py:217
↓ 1 callers
Class
ConvNeXtBlock
ConvNeXt Block adapted from https://github.com/facebookresearch/ConvNeXt to 1D audio signal. Args: dim (int): Number of input channels.
sparktts/modules/blocks/vocos.py:26
↓ 1 callers
Class
DecoderBlock
sparktts/modules/encoder_decoder/wave_generator.py:29
↓ 1 callers
Class
FSQ
sparktts/modules/fsq/finite_scalar_quantization.py:63
↓ 1 callers
Class
FactorizedVectorQuantize
sparktts/modules/vq/factorized_vector_quantize.py:36
↓ 1 callers
Class
GEGLU
sparktts/modules/speaker/perceiver_encoder.py:232
↓ 1 callers
Class
RMSNorm
sparktts/modules/speaker/perceiver_encoder.py:195
↓ 1 callers
Class
Res2Conv1dReluBn
in_channels == out_channels == channels
sparktts/modules/speaker/ecapa_tdnn.py:28
↓ 1 callers
Class
ResBlock1
ResBlock adapted from HiFi-GAN V1 (https://github.com/jik876/hifi-gan) with dilated 1D convolutions, but without upsampling layers. Args
sparktts/modules/blocks/vocos.py:113
↓ 1 callers
Class
SE_Connect
sparktts/modules/speaker/ecapa_tdnn.py:115
↓ 1 callers
Class
UserData
runtime/triton_trtllm/client_grpc.py:65
↓ 1 callers
Class
WaveGenerator
sparktts/modules/encoder_decoder/wave_generator.py:56
Class
ASTP
Attentive statistics pooling: Channel- and context-dependent statistics pooling, first used in ECAPA_TDNN.
sparktts/modules/speaker/pooling_layers.py:92
Class
Backbone
Base class for the generator's backbone. It preserves the same temporal resolution across all layers.
sparktts/modules/blocks/vocos.py:257
Class
BiCodec
BiCodec model for speech synthesis, incorporating a speaker encoder, feature encoder/decoder, quantizer, and wave generator.
sparktts/models/bicodec.py:31
Class
GroupedResidualFSQ
sparktts/modules/fsq/residual_fsq.py:269
Class
TAP
Temporal average pooling, only first-order mean is considered
sparktts/modules/speaker/pooling_layers.py:27
Class
TSDP
Temporal standard deviation pooling, only second-order std is considered
sparktts/modules/speaker/pooling_layers.py:47
Class
TSTP
Temporal statistics pooling, concatenate mean and std, which is used in x-vector Comment: simple concatenation can not make full use of b
sparktts/modules/speaker/pooling_layers.py:67
Class
TokenParser
Turn label to special token
sparktts/utils/token_parser.py:66
Class
TritonPythonModel
Triton Python model for Spark TTS. This model orchestrates the end-to-end TTS pipeline by coordinating between audio tokenizer, LLM, and
runtime/triton_trtllm/model_repo/spark_tts/1/model.py:101
Class
TritonPythonModel
Triton Python model for audio tokenization. This model takes reference audio input and extracts semantic and global tokens using BiCodec
runtime/triton_trtllm/model_repo/audio_tokenizer/1/model.py:37
Class
TritonPythonModel
Triton Python model for vocoder. This model takes global and semantic tokens as input and generates audio waveforms using the BiCodec voc
runtime/triton_trtllm/model_repo/vocoder/1/model.py:43
Class
VocosResNetBackbone
Vocos backbone module built with ResBlocks. Args: input_channels (int): Number of input features channels. dim (int): Hidden
sparktts/modules/blocks/vocos.py:338