Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/0nutation/SpeechGPT
/ functions
Functions
39 in github.com/0nutation/SpeechGPT
⨍
Functions
39
◇
Types & classes
15
↓ 5 callers
Function
extract_text_between_tags
(text, tag1='[SpeechGPT] :', tag2='<eoa>')
speechgpt/src/infer/cli_infer.py:39
↓ 4 callers
Method
generate_prompt
( self, prefix: str, text: Union[None, str] = None, )
speechgpt/utils/prompter.py:13
↓ 2 callers
Method
forward
( self, prompts: List[str] )
speechgpt/src/infer/cli_infer.py:140
↓ 2 callers
Method
postprocess
( self, input )
speechgpt/utils/text2unit/text2unit.py:44
↓ 2 callers
Function
tokenize
(prompt, add_eos_token=True)
speechgpt/src/train/com_sft.py:241
↓ 2 callers
Function
tokenize
(prompt, add_eos_token=True)
speechgpt/src/train/cm_sft.py:179
↓ 1 callers
Method
__init__
(self, km_path)
speechgpt/utils/speech2unit/speech2unit.py:91
↓ 1 callers
Function
cli_main
()
speechgpt/utils/vocoder/generate_waveform_from_code.py:82
↓ 1 callers
Function
dump_result
(args, sample_id, pred_wav, suffix="")
speechgpt/utils/vocoder/generate_waveform_from_code.py:26
↓ 1 callers
Method
dump_wav
(self, sample_id, pred_wav, prefix)
speechgpt/src/infer/cli_infer.py:209
↓ 1 callers
Method
forward
( self, text, **kwargs )
speechgpt/utils/text2unit/text2unit.py:34
↓ 1 callers
Method
get_feats
(self, waveform)
speechgpt/utils/speech2unit/speech2unit.py:61
↓ 1 callers
Method
interact
(self)
speechgpt/src/infer/cli_infer.py:220
↓ 1 callers
Function
load_code
(in_file)
speechgpt/utils/vocoder/generate_waveform_from_code.py:34
↓ 1 callers
Function
main
(args)
speechgpt/utils/vocoder/generate_waveform_from_code.py:40
↓ 1 callers
Method
merge_duplicates
(cluster_ids)
speechgpt/utils/speech2unit/speech2unit.py:148
↓ 1 callers
Method
postprocess
( self, response: str, )
speechgpt/src/infer/cli_infer.py:126
↓ 1 callers
Method
preprocess
( self, raw_text: str, )
speechgpt/src/infer/cli_infer.py:110
↓ 1 callers
Method
read_audio
(self, path)
speechgpt/utils/speech2unit/speech2unit.py:54
↓ 1 callers
Function
safe_save_model_for_hf_trainer
Collects the state dict and dump to disk.
speechgpt/src/train/cm_sft.py:101
↓ 1 callers
Function
safe_save_model_for_hf_trainer
Collects the state dict and dump to disk.
speechgpt/src/train/ma_pretrain.py:116
↓ 1 callers
Function
train
()
speechgpt/src/train/com_sft.py:150
↓ 1 callers
Function
train
()
speechgpt/src/train/cm_sft.py:111
↓ 1 callers
Function
train
()
speechgpt/src/train/ma_pretrain.py:125
Method
__call__
(self, text, **kwargs)
speechgpt/utils/text2unit/text2unit.py:51
Method
__call__
(self, x)
speechgpt/utils/speech2unit/speech2unit.py:102
Method
__call__
(self, path, merged=True)
speechgpt/utils/speech2unit/speech2unit.py:162
Method
__call__
(self, input)
speechgpt/src/infer/cli_infer.py:216
Method
__init__
(self, verbose: bool = False)
speechgpt/utils/prompter.py:9
Method
__init__
( self, checkpoint_dir="speechgpt/utils/text2unit", checkpoint_file="text2unit.pt",
speechgpt/utils/text2unit/text2unit.py:12
Method
__init__
(self, ckpt_path, layer, max_chunk=1600000, fp16=False, sampling_rate=16000)
speechgpt/utils/speech2unit/speech2unit.py:35
Method
__init__
Args: ckpt_dir(str): path to hubert model dir(e.g. hubert_base_ls960.pt) layer(int): feat from which layer of hubert
speechgpt/utils/speech2unit/speech2unit.py:122
Method
__init__
( self, model_name_or_path: str, lora_weights: str=None, s2u_dir: str="speech
speechgpt/src/infer/cli_infer.py:51
Function
generate_and_tokenize_prompt
COM-style instructions
speechgpt/src/train/com_sft.py:264
Function
generate_and_tokenize_prompt
moss-style instructions
speechgpt/src/train/cm_sft.py:202
Function
group_texts
(examples)
speechgpt/src/train/ma_pretrain.py:277
Function
safe_save_model_for_hf_trainer
Collects the state dict and dump to disk.
speechgpt/src/train/com_sft.py:140
Function
speech_dialogue
(audio)
speechgpt/src/infer/web_infer.py:29
Function
tokenize_function
(examples)
speechgpt/src/train/ma_pretrain.py:232