Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/SparkAudio/Spark-TTS
/ functions
Functions
234 in github.com/SparkAudio/Spark-TTS
⨍
Functions
234
◇
Types & classes
43
Method
get_out_dim
(self)
sparktts/modules/speaker/pooling_layers.py:87
Method
get_out_dim
(self)
sparktts/modules/speaker/pooling_layers.py:146
Method
get_out_dim
(self)
sparktts/modules/speaker/pooling_layers.py:220
Method
get_out_dim
(self)
sparktts/modules/speaker/pooling_layers.py:283
Method
get_output_from_indices
(self, indices)
sparktts/modules/fsq/residual_fsq.py:301
Function
hertz_to_mel
Converts a frequency from the Hertz scale to the Mel scale. Parameters: - pitch: float or ndarray Frequency in Hertz. Retur
sparktts/utils/audio.py:258
Method
indices_to_codes
Inverse of `codes_to_indices`.
sparktts/modules/fsq/finite_scalar_quantization.py:164
Function
init_weights
(m)
sparktts/modules/blocks/layers.py:70
Method
initialize
Initialize the model. Args: args: Dictionary containing model configuration
runtime/triton_trtllm/model_repo/spark_tts/1/model.py:108
Method
initialize
Initialize the model. Args: args: Dictionary containing model configuration
runtime/triton_trtllm/model_repo/audio_tokenizer/1/model.py:44
Method
initialize
Initialize the model. Args: args: Dictionary containing model configuration
runtime/triton_trtllm/model_repo/vocoder/1/model.py:50
Function
inner
(x, *args, **kwargs)
sparktts/modules/fsq/finite_scalar_quantization.py:35
Function
inner
(x)
sparktts/modules/speaker/perceiver_encoder.py:37
Function
jsonl_to_csv
Converts a JSONL file to a CSV file. This function reads a JSONL file, determines all unique keys present in the file, and writes th
sparktts/utils/file.py:134
Method
pitch_var_level
Turn special token of pitch std level.
sparktts/utils/token_parser.py:111
Method
pitch_var_value
Turn special token of pitch_std value.
sparktts/utils/token_parser.py:103
Function
read_json_as_jsonl
(file_path: Path)
sparktts/utils/file.py:94
Function
read_jsonl
Reads a JSONL file and returns a list of dictionaries. Args: file_path : Path The path to the JSONL file to be read. Return
sparktts/utils/file.py:69
Function
read_metadata
Read metadata from a file. Args: filename (str): The file from which to read the metadata. Returns: list of dic
sparktts/utils/file.py:192
Function
remove_silence_on_both_ends
Remove silence from both ends of an audio signal. Args: wav: Input audio signal array sample_rate: Audio sample rate in Hz
sparktts/utils/audio.py:228
Method
remove_weight_norm
(self)
sparktts/modules/blocks/vocos.py:246
Function
resolve_symbolic_link
Resolves the absolute path of a symbolic link. Args: symbolic_link_path (Path): The path to the symbolic link. Returns:
sparktts/utils/file.py:34
Function
run_sync_streaming_inference
Helper function to run the blocking sync streaming call.
runtime/triton_trtllm/client_grpc.py:332
Function
save_metadata
Save metadata to a file. Args: data (list of dict): Metadata to be saved. filename (str): Name of the file to save the m
sparktts/utils/file.py:169
Method
speed_level
Turn special token of speed level.
sparktts/utils/token_parser.py:138
Method
speed_value
Turn special token of speed value.
sparktts/utils/token_parser.py:131
Method
split_dim
(self)
sparktts/modules/fsq/residual_fsq.py:291
Function
stft
Perform STFT and convert to magnitude spectrogram. Args: x (Tensor): Input signal tensor (B, T). fft_size (int): FFT size.
sparktts/utils/audio.py:152
Method
tokenize
tokenize the input tensor
sparktts/modules/vq/factorized_vector_quantize.py:148
Method
tokenize_batch
tokenize the batch of audio Args: batch: wavs (List[np.ndarray]): batch of audio ref_wavs (torch.
sparktts/models/audio_tokenizer.py:101
Function
voice_clone
Gradio callback to clone voice using text and optional prompt speech. - text: The input text to be synthesised. - prompt_text
webui.py:100
Function
voice_creation
Gradio callback to create a synthetic voice with adjustable parameters. - text: The input text for synthesis. - gender: 'male
webui.py:119
Method
vq2emb
(self, vq, out_proj=True)
sparktts/modules/vq/factorized_vector_quantize.py:142
Function
write_jsonl
Writes a list of dictionaries to a JSONL file. Args: metadata : List[dict] A list of dictionaries, each representing a piece of meta.
sparktts/utils/file.py:50
← previous
201–234 of 234, ranked by callers