Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/NeuralFalconYT/Kokoro-TTS-Subtitle
/ functions
Functions
116 in github.com/NeuralFalconYT/Kokoro-TTS-Subtitle
⨍
Functions
116
◇
Types & classes
2
↓ 4 callers
Function
format_srt_time
(seconds)
srt_dub.py:282
↓ 4 callers
Function
format_srt_time
(seconds)
beta.py:282
↓ 4 callers
Function
format_srt_time
(seconds)
app.py:269
↓ 3 callers
Function
change_speed
(input_file, output_file, speedup_factor, use_ffmpeg, ffmpeg_path)
srt_dub.py:757
↓ 3 callers
Function
change_speed
(input_file, output_file, speedup_factor, use_ffmpeg, ffmpeg_path)
beta.py:836
↓ 3 callers
Function
generate_and_save_audio
(text, Language="American English",voice="af_bella", speed=1,remove_silence=False,keep_silence_up_to=0.05)
srt_dub.py:190
↓ 3 callers
Function
generate_and_save_audio
(text, Language="American English",voice="af_bella", speed=1,remove_silence=False,keep_silence_up_to=0.05)
beta.py:190
↓ 3 callers
Function
modify_filename
(save_path: str, prefix: str = "")
srt_dub.py:501
↓ 3 callers
Function
modify_filename
(save_path: str, prefix: str = "")
beta.py:572
↓ 3 callers
Function
modify_filename
(save_path: str, prefix: str = "")
app.py:488
↓ 3 callers
Function
split_line_by_char_limit
Formats a text block into lines with a maximum character limit. Returns a list of strings (the lines).
beta.py:299
↓ 2 callers
Method
convert_to_millisecond
(t)
srt_dub.py:835
↓ 2 callers
Method
convert_to_millisecond
(t)
beta.py:914
↓ 2 callers
Function
fix_punctuation
(text)
srt_dub.py:396
↓ 2 callers
Function
fix_punctuation
(text)
beta.py:467
↓ 2 callers
Function
fix_punctuation
(text)
app.py:383
↓ 2 callers
Function
remove_edge_silence
(input_path, output_path)
srt_dub.py:773
↓ 2 callers
Function
remove_edge_silence
(input_path, output_path)
beta.py:852
↓ 2 callers
Function
speedup_audio_librosa
(input_file, output_file, speedup_factor)
srt_dub.py:747
↓ 2 callers
Function
speedup_audio_librosa
(input_file, output_file, speedup_factor)
beta.py:826
↓ 1 callers
Function
adjust_timestamps
(timestamp_dict)
srt_dub.py:229
↓ 1 callers
Function
adjust_timestamps
(timestamp_dict)
beta.py:229
↓ 1 callers
Function
adjust_timestamps
(timestamp_dict)
app.py:216
↓ 1 callers
Function
atempo_chain
(factor)
srt_dub.py:733
↓ 1 callers
Function
atempo_chain
(factor)
beta.py:812
↓ 1 callers
Function
bulk_translate
(text, target_language, chunk_size=500,MAX_ALLOWED_CHARACTERS = 10000)
srt_dub.py:25
↓ 1 callers
Function
bulk_translate
(text, target_language, chunk_size=500,MAX_ALLOWED_CHARACTERS = 10000)
beta.py:25
↓ 1 callers
Function
bulk_translate
(text, target_language, chunk_size=500)
app.py:15
↓ 1 callers
Function
clean_srt
(input_path)
srt_dub.py:667
↓ 1 callers
Function
clean_srt
(input_path)
beta.py:746
↓ 1 callers
Function
clean_srt_line
(text)
srt_dub.py:668
↓ 1 callers
Function
clean_srt_line
(text)
beta.py:747
↓ 1 callers
Function
clean_text
(text)
srt_dub.py:113
↓ 1 callers
Function
clean_text
(text)
beta.py:113
↓ 1 callers
Function
clean_text
(text)
app.py:100
↓ 1 callers
Method
concatenate_audio_files
(paths, output)
srt_dub.py:992
↓ 1 callers
Method
concatenate_audio_files
(paths, output)
beta.py:1071
↓ 1 callers
Function
create_audio_dir
Creates the 'kokoro_audio' directory in the root folder if it doesn't exist.
srt_dub.py:99
↓ 1 callers
Function
create_audio_dir
Creates the 'kokoro_audio' directory in the root folder if it doesn't exist.
beta.py:99
↓ 1 callers
Function
create_audio_dir
Creates the 'kokoro_audio' directory in the root folder if it doesn't exist.
app.py:86
↓ 1 callers
Method
create_folder_for_srt
(srt_file_path)
srt_dub.py:984
↓ 1 callers
Method
create_folder_for_srt
(srt_file_path)
beta.py:1063
↓ 1 callers
Function
generate_and_save_audio
(text, Language="American English",voice="af_bella", speed=1,remove_silence=False,keep_silence_up_to=0.05)
app.py:177
↓ 1 callers
Method
get_avg_speaker_speed
(srt_path)
srt_dub.py:791
↓ 1 callers
Method
get_avg_speaker_speed
(srt_path)
beta.py:870
↓ 1 callers
Method
get_speed_factor
(srt_path, default_tts_rate=14)
srt_dub.py:803
↓ 1 callers
Method
get_speed_factor
(srt_path, default_tts_rate=14)
beta.py:882
↓ 1 callers
Function
get_subtitle_Dub_path
(srt_file_path, Language)
srt_dub.py:657
↓ 1 callers
Function
get_subtitle_Dub_path
(srt_file_path, Language)
beta.py:736
↓ 1 callers
Function
get_voice_names
Fetches and returns a list of voice names (without extensions) from the given Hugging Face repository.
srt_dub.py:95
↓ 1 callers
Function
get_voice_names
Fetches and returns a list of voice names (without extensions) from the given Hugging Face repository.
beta.py:95
↓ 1 callers
Function
get_voice_names
Fetches and returns a list of voice names (without extensions) from the given Hugging Face repository.
app.py:82
↓ 1 callers
Function
is_ffmpeg_installed
()
srt_dub.py:723
↓ 1 callers
Function
is_ffmpeg_installed
()
beta.py:802
↓ 1 callers
Function
main
(debug, share)
srt_dub.py:1091
↓ 1 callers
Function
main
(debug, share)
beta.py:1169
↓ 1 callers
Function
main
(debug, share)
app.py:622
↓ 1 callers
Function
make_json
(word_timestamps, json_file_name)
srt_dub.py:423
↓ 1 callers
Function
make_json
(word_timestamps, json_file_name)
beta.py:494
↓ 1 callers
Function
make_json
(word_timestamps, json_file_name)
app.py:410
↓ 1 callers
Method
make_silence
(duration, path)
srt_dub.py:979
↓ 1 callers
Method
make_silence
(duration, path)
beta.py:1058
↓ 1 callers
Method
merge_fast_entries
(entries, max_pause_gap=1000, max_merged_duration_ms=8000)
srt_dub.py:811
↓ 1 callers
Method
merge_fast_entries
(entries, max_pause_gap=1000, max_merged_duration_ms=8000)
beta.py:890
↓ 1 callers
Function
merge_punctuation_glitches
Adjusts punctuation at subtitle boundaries. - Moves punctuation from the start of a subtitle to the end of the previous one. - Removes aw
beta.py:322
↓ 1 callers
Function
prepare_srt
(srt_path, target_language, translate=False)
srt_dub.py:717
↓ 1 callers
Function
prepare_srt
(srt_path, target_language, translate=False)
beta.py:796
↓ 1 callers
Method
read_srt_file
(self, file_path)
srt_dub.py:839
↓ 1 callers
Method
read_srt_file
(self, file_path)
beta.py:918
↓ 1 callers
Function
remove_silence_function
(file_path,minimum_silence=50)
srt_dub.py:173
↓ 1 callers
Function
remove_silence_function
(file_path,minimum_silence=50)
beta.py:173
↓ 1 callers
Function
remove_silence_function
(file_path,minimum_silence=50)
app.py:160
↓ 1 callers
Function
save_current_data
()
srt_dub.py:507
↓ 1 callers
Function
save_current_data
()
beta.py:578
↓ 1 callers
Function
save_current_data
()
app.py:494
↓ 1 callers
Function
split_line_by_char_limit
(text, max_chars=30)
srt_dub.py:299
↓ 1 callers
Function
split_line_by_char_limit
(text, max_chars=30)
app.py:286
↓ 1 callers
Method
srt_to_dub
(self, srt_path, output_path, language, voice,speaker_talk_speed=True)
srt_dub.py:997
↓ 1 callers
Method
srt_to_dub
(self, srt_path, output_path, language, voice,speaker_talk_speed=True)
beta.py:1076
↓ 1 callers
Function
subtitle_ui
()
srt_dub.py:1034
↓ 1 callers
Function
subtitle_ui
()
beta.py:1113
↓ 1 callers
Function
text_to_speech
( text="Hello", language="American English", voice_name="af_bella", speed=1, auto_translat
scripts/api.py:14
↓ 1 callers
Method
text_to_speech_srt
(self, text, audio_path, language, voice, actual_duration, default_speed_factor=None)
srt_dub.py:916
↓ 1 callers
Method
text_to_speech_srt
(self, text, audio_path, language, voice, actual_duration, default_speed_factor=None)
beta.py:995
↓ 1 callers
Function
translate_srt
(input_path, target_language="Hindi", max_segments=500, chunk_size=4000)
srt_dub.py:681
↓ 1 callers
Function
translate_srt
(input_path, target_language="Hindi", max_segments=500, chunk_size=4000)
beta.py:760
↓ 1 callers
Function
tts_file_name
(text,language)
srt_dub.py:149
↓ 1 callers
Function
tts_file_name
(text,language)
beta.py:149
↓ 1 callers
Function
tts_file_name
(text,language)
app.py:136
↓ 1 callers
Function
tutorial
()
srt_dub.py:597
↓ 1 callers
Function
tutorial
()
beta.py:676
↓ 1 callers
Function
tutorial
()
app.py:587
↓ 1 callers
Function
ui
()
srt_dub.py:539
↓ 1 callers
Function
ui
()
beta.py:618
↓ 1 callers
Function
ui
()
app.py:525
↓ 1 callers
Function
update_pipeline
Updates the pipeline only if the language has changed.
srt_dub.py:74
↓ 1 callers
Function
update_pipeline
Updates the pipeline only if the language has changed.
beta.py:74
↓ 1 callers
Function
update_pipeline
Updates the pipeline only if the language has changed.
app.py:61
↓ 1 callers
Function
write_sentence_srt
(word_level_timestamps, output_file="subtitles.srt", max_words=8, min_pause=0.1)
srt_dub.py:322
↓ 1 callers
Function
write_sentence_srt
Creates professional-grade SRT files using a two-phase process: 1. Generates visually-aware subtitles. 2. Performs a post-processing pass
beta.py:368
next →
1–100 of 116, ranked by callers