MCPcopy Index your code

hub / github.com/Agents365-ai/video-podcast-maker / functions

Functions209 in github.com/Agents365-ai/video-podcast-maker

↓ 30 callersFunctionuseEntrance
( enabled: boolean, delay = 0, preset: SpringPreset = "gentle", )
templates/components/animations.tsx:18
↓ 9 callersFunctionstaggerDelay
(index: number, baseDelay = 0, interval = 6)
templates/components/animations.tsx:172
↓ 7 callersFunctioncheck_resume
Check if a part file exists and return its duration, or None.
scripts/tts/backends/base.py:6
↓ 7 callersFunctionuseDrawOn
( path: string, enabled: boolean, delay = 0, durationFrames = 30, preset: SpringPreset = "gentle", )
templates/components/animations.tsx:179
↓ 7 callersFunctionuser_prefs_get
Read nested key from user_prefs.json. Returns None if missing/unreadable.
scripts/tts/backends/__init__.py:7
↓ 6 callersFunction_resolve_voice
Resolve voice with precedence: env var > user_prefs.json > hardcoded default.
scripts/tts/backends/__init__.py:73
↓ 5 callersFunction_build_resource
(sub, resource, description, action_names)
scripts/cli.py:165
↓ 4 callersFunctionbuild_parser
()
scripts/cli.py:130
↓ 4 callersFunctionsave_prefs
Save prefs to disk, stamping updated_at with UTC ISO timestamp.
scripts/learn_design.py:337
↓ 3 callersFunction_load_template
Load user_prefs.template.json as default structure.
scripts/learn_design.py:287
↓ 3 callersFunctionadd_reference_index
Add or update an entry in prefs["design_references"].
scripts/learn_design.py:346
↓ 3 callersFunctionchunk_text
Split text into chunks for TTS synthesis. Handles both Chinese (。;) and English (. ; ? !) sentence boundaries. Sentences longer than `max_cha
scripts/generate_tts.py:92
↓ 3 callersFunctioncreate_reference_dir
Create {base_dir}/{ref_id}/frames/ and return the ref directory path.
scripts/learn_design.py:130
↓ 3 callersFunctionflush
Write accumulated entries as one subtitle line.
scripts/tts/srt.py:36
↓ 3 callersFunctiongenerate_reference_id
Generate a unique reference ID for a given source. Args: source: URL string, local file path, or None (for image sets). name: Opt
scripts/learn_design.py:90
↓ 3 callersFunctiongetNodeHeight
(n: DiagramNode)
templates/components/DiagramReveal.tsx:122
↓ 3 callersFunctiongetNodeWidth
(n: DiagramNode)
templates/components/DiagramReveal.tsx:121
↓ 3 callersFunctionresolve_backend
Resolve TTS backend with precedence: env TTS_BACKEND > user_prefs.json > 'edge'. Returns (name, source) where source is 'env', 'user_prefs', or '
scripts/tts/backends/__init__.py:26
↓ 3 callersFunctionsave_report
Write report.json to ref_dir.
scripts/learn_design.py:271
↓ 2 callersFunction_build_leaf
(sub, resource, description)
scripts/cli.py:178
↓ 2 callersFunction_build_meta
(extra, started_at)
scripts/cli_envelope.py:121
↓ 2 callersFunction_deep_merge
Merge override into base recursively. Override values take priority.
scripts/learn_design.py:304
↓ 2 callersFunctionfetchTiming
()
templates/components/useTiming.ts:27
↓ 2 callersFunctionffprobe_video
Return (width, height, duration, audio_codec) or None on failure.
scripts/verify_output.py:58
↓ 2 callersFunctionfind_last_punct_index
Find the index of the last entry whose text is in punct_set.
scripts/tts/srt.py:51
↓ 2 callersFunctionformat_time
Format seconds to SRT timestamp: HH:MM:SS,mmm
scripts/tts/srt.py:8
↓ 2 callersFunctionget_max_chars
Return max chunk size for a backend.
scripts/tts/backends/__init__.py:182
↓ 2 callersFunctionget_video_duration
Return duration in seconds via ffprobe. Returns None on failure.
scripts/learn_design.py:167
↓ 2 callersFunctionload_report
Load and return report.json from ref_dir.
scripts/learn_design.py:278
↓ 2 callersFunctionmigrate
Migrate the prefs file at `prefs_path`. Returns a status dict.
scripts/migrate_prefs.py:88
↓ 2 callersFunctionparseSrtTime
(t: string)
templates/components/Subtitles.tsx:27
↓ 2 callersFunctionusePulse
( minScale = 0.95, maxScale = 1.05, periodFrames = 90, phaseOffset = 0, )
templates/components/animations.tsx:96
↓ 2 callersFunctionuseTiming
()
templates/components/useTiming.ts:48
↓ 2 callersFunctionuse_json
Return True if this run should emit a JSON envelope on stdout.
scripts/cli_envelope.py:63
↓ 1 callersFunction_build_config
Build backend-specific config dict from environment variables.
scripts/tts/backends/__init__.py:187
↓ 1 callersFunction_build_parser
()
scripts/learn_design.py:467
↓ 1 callersFunction_compute_delete_preview
Compute what --delete REF_ID would change. Returns a dict suitable for both prose preview and the confirmation_required envelope's 'would_del
scripts/learn_design.py:544
↓ 1 callersFunction_compute_references_index
Return a list of structured records for every design reference. Drives both --list prose printing and the --format json envelope.
scripts/learn_design.py:520
↓ 1 callersFunction_hard_split
Split an oversize sentence into pieces each <= max_chars. Walks char by char; once the buffer reaches `budget = max_chars - 1`, flushes at th
scripts/generate_tts.py:53
↓ 1 callersFunction_id_from_url
Extract a short, stable ID from a video URL. Supports bilibili (BV ID), youtube watch URLs, youtu.be short links. Falls back to an 8-char md5
scripts/learn_design.py:64
↓ 1 callersFunction_list_references
Print all design references with size and summary.
scripts/learn_design.py:436
↓ 1 callersFunction_migrate_prefs
Migrate prefs to current version by merging missing fields from template.
scripts/learn_design.py:315
↓ 1 callersFunction_params_from_parser
Convert argparse parser actions to a JSON-serializable schema dict.
scripts/cli.py:248
↓ 1 callersFunction_run
(args, started_at)
scripts/generate_tts.py:146
↓ 1 callersFunction_run
(args, started_at)
scripts/generate_shorts.py:279
↓ 1 callersFunction_run
(parser, args, started_at)
scripts/learn_design.py:579
↓ 1 callersFunction_should_wrap_single_token
Heuristic for the 'aggressive' single-token pass. Wrap when the word is long enough and looks like a real English word rather than an abbrevi
scripts/tts/ssml.py:123
↓ 1 callersFunction_structural_migrate
Apply structural rewrites that deep-merge cannot do. Returns (prefs, changes) where `changes` is a list of human-readable descriptions for th
scripts/migrate_prefs.py:52
↓ 1 callersFunction_try_introspect_parser
Try to load the underlying script's parser. Returns parser or None.
scripts/cli.py:230
↓ 1 callersFunction_type_name
(t)
scripts/cli.py:269
↓ 1 callersFunctionanalyse_content
Scan text and return a dict of metrics + voice recommendation.
scripts/tts/voice_advisor.py:33
↓ 1 callersFunctionapply_phonemes
Apply SSML phoneme tags for multi-character words. Uses SAPI alphabet with numeric tones for Azure TTS compatibility.
scripts/tts/phonemes.py:129
↓ 1 callersFunctionaudit
Run the audit. Returns (issues_count, result_dict). Raises ValueError if no SECTION_CONFIG entries with `beats:` are found in the .tsx — main
scripts/audit_beat_sync.py:139
↓ 1 callersFunctionautoLayout
( nodes: DiagramNode[], edges: DiagramEdge[], viewWidth: number, viewHeight: number, direction: "ver
templates/components/DiagramReveal.tsx:65
↓ 1 callersFunctionauto_fix
Attempt to recover from known omissions. Returns list of fix descriptions.
scripts/verify_output.py:96
↓ 1 callersFunctionbuildArrowHead
( fromNode: LayoutNode, toNode: LayoutNode, size = 7, )
templates/components/DiagramReveal.tsx:256
↓ 1 callersFunctionbuildEdgePath
( fromNode: LayoutNode, toNode: LayoutNode, style: "straight" | "curve" | "elbow" = "straight", )
templates/components/DiagramReveal.tsx:208
↓ 1 callersFunctionbuild_parser
()
scripts/migrate_prefs.py:116
↓ 1 callersFunctionbuild_parser
()
scripts/verify_output.py:331
↓ 1 callersFunctionbuild_parser
()
scripts/check_prereqs.py:69
↓ 1 callersFunctionbuild_parser
()
scripts/audit_beat_sync.py:245
↓ 1 callersFunctionbuild_parser
()
scripts/generate_tts.py:20
↓ 1 callersFunctionbuild_parser
()
scripts/generate_shorts.py:246
↓ 1 callersFunctionbuild_parser
()
scripts/get_pref.py:31
↓ 1 callersFunctioncardStyle
(side: typeof left, highlighted: boolean)
templates/components/ComparisonCard.tsx:21
↓ 1 callersFunctioncheck_prereqs
Compute prereq state. Returns dict with backend, backend_source, required_bins, required_env_vars, missing_bins, missing_env_vars. `env` over
scripts/check_prereqs.py:37
↓ 1 callersFunctioncopy_images
Copy up to MAX_FRAMES images into ref_dir/frames/. The first image is also copied as cover.<ext> in ref_dir. Returns list of copied frame pat
scripts/learn_design.py:140
↓ 1 callersFunctiondetect_input_type
Classify a path or URL as 'url', 'local_video', 'image', 'unsupported', or 'not_found'. Returns one of: 'url', 'local_video', 'image', 'unsupport
scripts/learn_design.py:34
↓ 1 callersFunctiondetect_orientation
Return 'horizontal', 'vertical', or 'square' based on dimensions.
scripts/learn_design.py:53
↓ 1 callersFunctiondispatch
Run the underlying script. Returns its exit code.
scripts/cli.py:183
↓ 1 callersFunctionemit_schema
Emit JSON schema for one action, or list all actions when method is omitted.
scripts/cli.py:193
↓ 1 callersFunctionextract_audio
Extract section audio from podcast_audio.wav using ffmpeg.
scripts/generate_shorts.py:105
↓ 1 callersFunctionextract_inline_phonemes
Extract inline phoneme markers from text: 执行器[zhí xíng qì] The regex greedily captures every Chinese character before '[', but only the last
scripts/tts/phonemes.py:60
↓ 1 callersFunctionextract_video_frames
Extract up to MAX_FRAMES representative frames from a video using ffmpeg. Builds the ffmpeg command inline (fps=1/interval, scale=-1:1080). R
scripts/learn_design.py:208
↓ 1 callersFunctionfetchTimingData
()
templates/components/useTiming.ts:78
↓ 1 callersFunctionffprobe_duration
Return WAV duration in seconds via ffprobe, or None if probe fails.
scripts/tts/srt.py:139
↓ 1 callersFunctiongenerate_composition_stub
Write short_info.json and register_snippet.tsx for a short.
scripts/generate_shorts.py:177
↓ 1 callersFunctiongenerate_timing
Write short_timing.json for a single-section short. Structure: - intro: INTRO_FRAMES (no audio) - content: section's original duratio
scripts/generate_shorts.py:127
↓ 1 callersFunctiongetLucideIcon
(name: string)
templates/components/iconMap.ts:19
↓ 1 callersFunctiongetPresentation
(type: string)
templates/components/animations.tsx:234
↓ 1 callersFunctionget_synthesize_func
Import and return the synthesize function for a backend.
scripts/tts/backends/__init__.py:175
↓ 1 callersFunctionget_video_dimensions
Return (width, height) via ffprobe. Returns (None, None) on failure.
scripts/learn_design.py:186
↓ 1 callersFunctioninit_backend
Validate dependencies and env vars for a backend. Returns config dict.
scripts/tts/backends/__init__.py:150
↓ 1 callersFunctionisEmoji
(s: string)
templates/components/iconMap.ts:28
↓ 1 callersFunctionload_phoneme_dicts
Load and merge phoneme dictionaries (global + project-level) Priority (highest to lowest): 1. Explicit --phonemes argument (replaces project-
scripts/tts/phonemes.py:7
↓ 1 callersFunctionload_prefs
Load user_prefs.json, migrating to current version if needed.
scripts/learn_design.py:326
↓ 1 callersFunctionload_script
Read podcast.txt and extract the first content line per section as its title. Returns: dict mapping section_name -> first_line_text
scripts/generate_shorts.py:59
↓ 1 callersFunctionload_timing
Read timing.json from the video directory. Raises FileNotFoundError if missing, json.JSONDecodeError if malformed. Errors propagate so main()
scripts/generate_shorts.py:48
↓ 1 callersFunctionmain
()
scripts/migrate_prefs.py:125
↓ 1 callersFunctionmain
()
scripts/verify_output.py:343
↓ 1 callersFunctionmain
()
scripts/check_prereqs.py:78
↓ 1 callersFunctionmain
()
scripts/resolve_bgm_path.py:15
↓ 1 callersFunctionmain
Manual argv slicing — argparse REMAINDER + nested subparsers misorders args (top-level parse_known_args intercepts flags as 'unknown' before t
scripts/cli.py:286
↓ 1 callersFunctionmain
()
scripts/audit_beat_sync.py:262
↓ 1 callersFunctionmain
()
scripts/generate_tts.py:129
↓ 1 callersFunctionmain
()
scripts/generate_shorts.py:267
↓ 1 callersFunctionmain
()
scripts/learn_design.py:565
↓ 1 callersFunctionmain
()
scripts/get_pref.py:46
↓ 1 callersFunctionmark_english_terms
Wrap English terms in SSML ``<lang xml:lang="en-US">`` tags by mode. Modes: ``'off'`` Return text unchanged. Use for backends that
scripts/tts/ssml.py:48
↓ 1 callersFunctionmatch_section_times
Match section start/end times using sliding-window on word boundaries.
scripts/tts/sections.py:86
next →1–100 of 209, ranked by callers