MCPcopy Create free account

hub / github.com/AIFSH/ComfyUI-WhisperX / functions

Functions94 in github.com/AIFSH/ComfyUI-WhisperX

↓ 6 callersMethodformat_timestamp
(self, seconds: float)
whisperx/utils.py:326
↓ 5 callersMethodapply
Apply voice activity detection Parameters ---------- file : AudioFile Processed file. hook : callable, op
whisperx/vad.py:205
↓ 5 callersMethodencode
(self, features: np.ndarray)
whisperx/asr.py:77
↓ 5 callersFunctionload_audio
Open an audio file and read as mono waveform, resampling as necessary Parameters ---------- file: str The audio file to open
whisperx/audio.py:25
↓ 3 callersFunctionexact_div
(x, y)
whisperx/utils.py:145
↓ 3 callersFunctionpreviewAudio
(node,file)
web/js/uploadAudio.js:10
↓ 2 callersFunctioncli
()
whisperx/transcribe.py:17
↓ 2 callersMethodestimate_timestamp_for_word
(self, words, i, next_segment_start_time=None)
whisperx/SubtitlesProcessor.py:48
↓ 2 callersFunctionfitHeight
(node)
web/js/previewSRT.js:4
↓ 2 callersFunctionformat_timestamp
(seconds: float, is_vtt: bool = False)
whisperx/SubtitlesProcessor.py:11
↓ 2 callersFunctioninterpolate_nans
(x, method='nearest')
whisperx/utils.py:433
↓ 2 callersMethoditerate_result
(self, result: dict, options: dict)
whisperx/utils.py:224
↓ 2 callersFunctionload_align_model
(language_code, device, model_name=None, model_dir=None)
whisperx/alignment.py:61
↓ 2 callersFunctionlog_mel_spectrogram
Compute the log-Mel spectrogram of Parameters ---------- audio: Union[str, np.ndarray, torch.Tensor], shape = (*) The path t
whisperx/audio.py:112
↓ 2 callersMethodread
(self,srt)
nodes.py:48
↓ 2 callersMethodtranscribe
( self, audio: Union[str, np.ndarray], batch_size=None, num_workers=0, language=None, task=None, chunk
whisperx/asr.py:173
↓ 1 callersMethod__call__
Binarize detection scores Parameters ---------- scores : SlidingWindowFeature Detection scores. Returns
whisperx/vad.py:114
↓ 1 callersMethod__init__
( self, onset: float = 0.5, offset: Optional[float] = None, min_duration_on: f
whisperx/vad.py:90
↓ 1 callersMethod_sanitize_parameters
(self, **kwargs)
whisperx/asr.py:135
↓ 1 callersFunctionaddPreviewOptions
(nodeType,srt_name,dir_name)
web/js/previewSRT.js:26
↓ 1 callersFunctionalign
Align phoneme recognition predictions to known transcription.
whisperx/alignment.py:97
↓ 1 callersFunctionassign_word_speakers
(diarize_df, transcript_result, fill_nearest=False)
whisperx/diarize.py:35
↓ 1 callersFunctionbacktrack
(trellis, emission, tokens, blank_id=0)
whisperx/alignment.py:384
↓ 1 callersFunctionchainCallback
(object, property, callback)
web/js/previewSRT.js:8
↓ 1 callersMethoddetect_language
(self, audio: np.ndarray)
whisperx/asr.py:245
↓ 1 callersMethoddetermine_advanced_split_points
(self, segment, next_segment_start_time=None)
whisperx/SubtitlesProcessor.py:100
↓ 1 callersFunctionfind_numeral_symbol_tokens
(tokenizer)
whisperx/asr.py:16
↓ 1 callersFunctionfitHeight
(node)
web/js/uploadAudio.js:5
↓ 1 callersFunctionformat_timestamp
( seconds: float, always_include_hours: bool = False, decimal_marker: str = "." )
whisperx/utils.py:171
↓ 1 callersMethodgenerate_segment_batched
(self, features: np.ndarray, tokenizer: faster_whisper.tokenizer.Tokenizer, options: faster_whisper.transcribe
whisperx/asr.py:31
↓ 1 callersMethodgenerate_subtitles_from_split_points
(self, segment, split_points, next_start_time=None)
whisperx/SubtitlesProcessor.py:142
↓ 1 callersFunctionget_comma
(lang_code)
whisperx/conjunctions.py:42
↓ 1 callersFunctionget_conjunctions
(lang_code)
whisperx/conjunctions.py:39
↓ 1 callersFunctionget_trellis
(emission, tokens, blank_id=0)
whisperx/alignment.py:356
↓ 1 callersFunctionget_writer
( output_format: str, output_dir: str )
whisperx/utils.py:406
↓ 1 callersMethodload_audio
(self, audio)
nodes.py:179
↓ 1 callersFunctionload_model
Load a Whisper model for inference. Args: whisper_arch: str - The name of the Whisper model to load. device: str - The device to l
whisperx/asr.py:259
↓ 1 callersFunctionload_vad_model
(device, vad_onset=0.500, vad_offset=0.363, use_auth_token=None, model_fp=None)
whisperx/vad.py:21
↓ 1 callersFunctionmel_filters
load the mel filterbank matrix for projecting STFT into a Mel spectrogram. Allows decoupling librosa dependency; saved using: np.sav
whisperx/audio.py:95
↓ 1 callersFunctionmerge_chunks
Merge operation described in paper
whisperx/vad.py:260
↓ 1 callersFunctionmerge_repeats
(path, transcript)
whisperx/alignment.py:435
↓ 1 callersFunctionnormal_round
(n)
whisperx/SubtitlesProcessor.py:5
↓ 1 callersFunctionpreviewSRT
(node,srt_text)
web/js/previewSRT.js:77
↓ 1 callersMethodprocess_segments
(self, advanced_splitting=True)
whisperx/SubtitlesProcessor.py:77
↓ 1 callersFunctionuploadFile
(file, updateNode, pasted = false)
web/js/uploadAudio.js:129
↓ 1 callersMethodwrite_result
(self, result: dict, file: TextIO, options: dict)
whisperx/utils.py:208
MethodINPUT_TYPES
(s)
nodes.py:16
MethodINPUT_TYPES
(s)
nodes.py:39
MethodINPUT_TYPES
(s)
nodes.py:59
MethodINPUT_TYPES
(s)
nodes.py:168
Method__call__
(self, result: dict, audio_path: str, options: dict)
whisperx/utils.py:198
Method__call__
(self, audio: Union[str, np.ndarray], num_speakers=None, min_speakers=None, max_speakers=None)
whisperx/diarize.py:21
Method__init__
( self, model, vad, vad_params: dict, options : Na
whisperx/asr.py:96
Method__init__
(self, segments, lang, max_line_length = 45, min_char_length_splitter = 30, is_vtt = False)
whisperx/SubtitlesProcessor.py:35
Method__init__
(self, output_dir: str)
whisperx/utils.py:195
Method__init__
( self, segmentation: PipelineModel = "pyannote/segmentation", fscore: bool = False,
whisperx/vad.py:195
Method__init__
( self, model_name="pyannote/speaker-diarization-3.1", use_auth_token=None, de
whisperx/diarize.py:11
Method__init__
(self, start, end, speaker=None)
whisperx/diarize.py:71
Method__repr__
(self)
whisperx/alignment.py:428
Method_forward
(self, model_inputs)
whisperx/asr.py:151
FunctionaudioUpload
(node, inputName, inputData, app)
web/js/uploadAudio.js:94
FunctionbeforeRegisterNodeDef
(nodeType, nodeData, app)
web/js/previewSRT.js:131
FunctionbeforeRegisterNodeDef
(nodeType, nodeData, app)
web/js/uploadAudio.js:199
Functioncompression_ratio
(text)
whisperx/utils.py:166
Methoddata
(audio, segments)
whisperx/asr.py:179
Methoddecode_batch
(tokens: List[List[int]])
whisperx/asr.py:66
FunctiongetValue
()
web/js/previewSRT.js:83
FunctiongetValue
()
web/js/uploadAudio.js:26
Methodget_iterator
( self, inputs, num_workers: int, batch_size: int, preprocess_params, forward_params, postprocess_para
whisperx/asr.py:158
Methodget_srt
(self, audio,model_type,batch_size,if_mutiple_speaker, use_auth_token,if_translate,translator,
nodes.py:102
Methoditerate_subtitles
()
whisperx/utils.py:234
Methodlength
(self)
whisperx/alignment.py:432
Functionmake_safe
(string)
whisperx/utils.py:133
Functionmerge_vad
(vad_arr, pad_onset=0.0, pad_offset=0.0, min_duration_off=0.0, min_duration_on=0.0)
whisperx/vad.py:239
Functionmerge_words
(segments, separator="|")
whisperx/alignment.py:453
Functionoptional_float
(string)
whisperx/utils.py:162
Functionoptional_int
(string)
whisperx/utils.py:158
Functionpad_or_trim
Pad or trim the audio array to N_SAMPLES, as expected by the encoder.
whisperx/audio.py:68
Methodpostprocess
(self, model_outputs)
whisperx/asr.py:155
Methodpreprocess
(self, audio)
whisperx/asr.py:141
Methodsave
(self, filename="subtitles.srt", advanced_splitting=True)
whisperx/SubtitlesProcessor.py:206
FunctionsetValue
(v)
web/js/previewSRT.js:86
FunctionsetValue
(v)
web/js/uploadAudio.js:29
Methodshow_srt
(self, srt)
nodes.py:28
Methodstack
(items)
whisperx/asr.py:166
Functionstr2bool
(string)
whisperx/utils.py:150
Functionwrite_all
(result: dict, file: TextIO, options: dict)
whisperx/utils.py:423
Methodwrite_result
(self, result: dict, file: TextIO, options: dict)
whisperx/utils.py:215
Methodwrite_result
(self, result: dict, file: TextIO, options: dict)
whisperx/utils.py:339
Methodwrite_result
(self, result: dict, file: TextIO, options: dict)
whisperx/utils.py:350
Methodwrite_result
(self, result: dict, file: TextIO, options: dict)
whisperx/utils.py:369
Methodwrite_result
(self, result: dict, file: TextIO, options: dict)
whisperx/utils.py:390
Methodwrite_result
(self, result: dict, file: TextIO, options: dict)
whisperx/utils.py:402
Methodwrite_subtitle
(file, idx, start_time, end_time, text)
whisperx/SubtitlesProcessor.py:210