Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/agermanidis/autosub
/ functions
Functions
18 in github.com/agermanidis/autosub
⨍
Functions
18
◇
Types & classes
3
↓ 2 callers
Function
is_exe
Checks whether a file is executable.
autosub/__init__.py:156
↓ 1 callers
Function
extract_audio
Extract audio from an input file to a temporary WAV file.
autosub/__init__.py:175
↓ 1 callers
Function
find_speech_regions
Perform voice activity detection on a given audio file.
autosub/__init__.py:194
↓ 1 callers
Function
generate_subtitles
Given an input audio/video file, generate subtitles in the specified language and format.
autosub/__init__.py:233
↓ 1 callers
Function
main
Run autosub as a command-line program.
autosub/__init__.py:353
↓ 1 callers
Function
percentile
Calculate the given percentile of arr.
autosub/__init__.py:39
↓ 1 callers
Function
srt_formatter
Serialize a list of subtitles according to the SRT format, with optional time padding.
autosub/formatters.py:14
↓ 1 callers
Function
validate
Check that the CLI arguments passed to autosub are valid.
autosub/__init__.py:321
↓ 1 callers
Function
which
Return the path for a given executable.
autosub/__init__.py:152
Method
__call__
(self, region)
autosub/__init__.py:63
Method
__call__
(self, data)
autosub/__init__.py:93
Method
__call__
(self, sentence)
autosub/__init__.py:131
Method
__init__
(self, source_path, include_before=0.25, include_after=0.25)
autosub/__init__.py:58
Method
__init__
(self, language="en", rate=44100, retries=3, api_key=GOOGLE_SPEECH_API_KEY)
autosub/__init__.py:87
Method
__init__
(self, language, api_key, src, dst)
autosub/__init__.py:123
Function
json_formatter
Serialize a list of subtitles as a JSON blob.
autosub/formatters.py:38
Function
raw_formatter
Serialize a list of subtitles as a newline-delimited string.
autosub/formatters.py:54
Function
vtt_formatter
Serialize a list of subtitles according to the VTT format, with optional time padding.
autosub/formatters.py:29