MCPcopy
hub / github.com/WEIFENG2333/VideoCaptioner / validate_transcribe

Function validate_transcribe

videocaptioner/cli/validators.py:160–171  ·  view source on GitHub ↗

Validate config for transcribe command.

(config: dict)

Source from the content-addressed store, hash-verified

158
159
160def validate_transcribe(config: dict) -> bool:
161 """Validate config for transcribe command."""
162 asr = get(config, "transcribe.asr", "faster-whisper")
163
164 if asr == "whisper-api":
165 return validate_whisper_api(config)
166 if asr == "faster-whisper":
167 return validate_faster_whisper()
168 if asr == "whisper-cpp":
169 return validate_whisper_cpp()
170 # bijian/jianying: no config needed (public endpoints)
171 return True
172
173
174def validate_subtitle(config: dict) -> bool:

Callers 2

runFunction · 0.90
validate_processFunction · 0.85

Calls 4

getFunction · 0.90
validate_whisper_apiFunction · 0.85
validate_faster_whisperFunction · 0.85
validate_whisper_cppFunction · 0.85

Tested by

no test coverage detected