MCPcopy Create free account

hub / github.com/harry0703/MoneyPrinterTurbo / functions

Functions428 in github.com/harry0703/MoneyPrinterTurbo

↓ 1 callersFunctionazure_tts_v1
( text: str, voice_name: str, voice_rate: float, voice_file: str )
app/services/voice.py:634
↓ 1 callersFunctionbuild_command
(codec: str)
app/services/video.py:289
↓ 1 callersFunctionbuild_script_prompt
( video_subject: str, language: str = "", paragraph_number: int = 1, video_script_prompt: str
app/services/llm.py:587
↓ 1 callersFunctionbuild_social_metadata_prompt
( video_subject: str, video_script: str = "", language: str = DEFAULT_SOCIAL_LANGUAGE, platfor
app/services/llm.py:885
↓ 1 callersMethodcheck_queue
(self)
app/controllers/manager/base_manager.py:60
↓ 1 callersFunctionconcat_video_clips_with_ffmpeg
( clip_files: List[str], output_file: str, threads: int, output_dir: str )
app/services/video.py:281
↓ 1 callersFunctionconvert_rate_to_percent
(rate: float)
app/services/voice.py:366
↓ 1 callersFunctioncorrect
(subtitle_file, video_script)
app/services/subtitle.py:200
↓ 1 callersFunctioncreate
(audio_file, subtitle_file: str = "")
app/services/subtitle.py:21
↓ 1 callersFunctioncreate_edge_tts_communicate
按当前已安装的 edge_tts 版本构造 Communicate 对象。 背景: 1. 主线代码已经升级到 edge_tts 7.x,并使用 `boundary` 参数拿到更细的边界事件; 2. 但 Windows 便携包如果更新失败,现场环境可能仍然停留在旧版
app/services/voice.py:477
↓ 1 callersMethodcreate_queue
(self)
app/controllers/manager/base_manager.py:19
↓ 1 callersFunctioncreate_subtitle
优化字幕文件 1. 将字幕文件按照标点符号分割成多行 2. 逐行匹配字幕文件中的文本 3. 生成新的字幕文件
app/services/voice.py:1368
↓ 1 callersFunctioncreate_text_clip
(subtitle_item)
app/services/video.py:835
↓ 1 callersMethoddequeue
(self)
app/controllers/manager/base_manager.py:80
↓ 1 callersFunctiondownload_videos
( task_id: str, search_terms: List[str], source: str = "pexels", video_aspect: VideoAspect = V
app/services/material.py:304
↓ 1 callersMethodenqueue
(self, task: Dict)
app/controllers/manager/base_manager.py:77
↓ 1 callersFunctionestimate_no_voice_duration
为无配音模式估算一个稳定的视频时间轴长度。 无配音仍需要一个音频占位来驱动现有素材裁剪、字幕时间轴和最终合成。 估算策略尽量简单: 1. 中文等 CJK 字符按约 4.2 字/秒估算; 2. 英文/数字按约 2.7 词/秒估算; 3. 其他语种文字
app/services/voice.py:214
↓ 1 callersMethodfeed
(self, chunk)
test/services/test_voice.py:235
↓ 1 callersFunctionfile_iterator
(file_path, offset=0, bytes_to_read=None)
app/controllers/v1/video.py:357
↓ 1 callersFunctionformat_response
(response)
app/services/llm.py:652
↓ 1 callersFunctiongemini_tts
使用Google Gemini TTS生成语音 Args: text: 要转换的文本 voice_name: 语音名称,如 "Zephyr", "Puck" 等 voice_rate: 语音速率(当前未使用)
app/services/voice.py:925
↓ 1 callersFunctiongenerate_audio
Generate audio for the video script. If a custom audio file is provided, it will be used directly. There will be no subtitle maker object
app/services/task.py:75
↓ 1 callersFunctiongenerate_final_videos
( task_id, params, downloaded_videos, audio_file, subtitle_path )
app/services/task.py:199
↓ 1 callersFunctiongenerate_script
( video_subject: str, language: str = "", paragraph_number: int = 1, video_script_prompt: str
app/services/llm.py:623
↓ 1 callersFunctiongenerate_script
(task_id, params)
app/services/task.py:16
↓ 1 callersFunctiongenerate_silent_audio
生成 MP3 静音音频,作为“无配音”模式的时间轴占位。 使用 FFmpeg 的 anullsrc 直接生成静音,比先构造临时 WAV 再转码更少中间 文件。失败时返回 False,让上层按普通 TTS 失败路径处理并记录日志。
app/services/voice.py:251
↓ 1 callersFunctiongenerate_subtitle
Generate subtitle for the video script. If subtitle generation is disabled or no subtitle maker is provided, it will return an empty string.
app/services/task.py:128
↓ 1 callersFunctiongenerate_terms
(video_subject: str, video_script: str, amount: int = 5)
app/services/llm.py:697
↓ 1 callersFunctiongenerate_terms
(task_id, params, video_script)
app/services/task.py:38
↓ 1 callersFunctionget_all_azure_voices
(filter_locals=None)
app/services/voice.py:156
↓ 1 callersFunctionget_all_fonts
()
webui/Main.py:123
↓ 1 callersFunctionget_api_key
(request: Request)
app/controllers/base.py:16
↓ 1 callersFunctionget_application
Initialize FastAPI application. Returns: FastAPI: Application object instance.
app/asgi.py:34
↓ 1 callersFunctionget_audio_duration
获取音频时长 如果是SubMaker对象,则从SubMaker中获取时长 如果是MP3文件,则从MP3文件中获取时长
app/services/voice.py:1426
↓ 1 callersFunctionget_bgm_file
(bgm_type: str = "random", bgm_file: str = "")
app/services/video.py:464
↓ 1 callersFunctionget_container_default_gateway_ip
读取 Linux 容器里的默认网关 IP。 Docker Desktop 通常提供 `host.docker.internal`,但原生 Linux Docker 默认不一定提供这个 DNS 名称。默认网关通常可以作为访问宿主机服务的 兜底地址;如果用户的 Oll
app/config/config.py:65
↓ 1 callersFunctionget_edge_tts_timeout_seconds
获取 Azure TTS V1 单次流式请求的超时时间。 背景: Edge consumer TTS 在网络不通、服务端限流、voice 与文本语言不匹配等场景下, 可能长时间卡在 `stream_sync()` 内部,日志只停留在 `start`。这里提供一个
app/services/voice.py:501
↓ 1 callersFunctionget_groq_model_ids
(api_key: str, base_url: str)
webui/Main.py:222
↓ 1 callersMethodget_srt
(self)
test/services/test_voice.py:238
↓ 1 callersFunctionget_task_id
(request: Request)
app/controllers/base.py:9
↓ 1 callersFunctionget_video_materials
(task_id, params, video_terms, audio_duration)
app/services/task.py:166
↓ 1 callersFunctioninit_log
()
webui/Main.py:180
↓ 1 callersFunctionis_gemini_voice
检查是否是Gemini TTS的声音
app/services/voice.py:193
↓ 1 callersFunctionis_mimo_voice
检查是否是 Xiaomi MiMo TTS 的声音
app/services/voice.py:198
↓ 1 callersFunctionis_no_voice
判断用户是否明确选择了“无配音”模式。 这里刻意不把空字符串当成无配音:空 voice 更可能是配置损坏、旧版本 WebUI 状态丢失或接口参数缺失。只有明确的 sentinel 才进入静音分支, 这样可以避免把真实错误伪装成正常生成。
app/services/voice.py:203
↓ 1 callersMethodis_queue_empty
(self)
app/controllers/manager/base_manager.py:83
↓ 1 callersFunctionis_running_in_container
判断当前进程是否运行在容器内。 这个判断主要用于 Ollama 默认地址选择: - 普通本机运行时,`localhost` 指向用户机器本身; - Docker 容器内,`localhost` 指向容器自己,访问宿主机 Ollama 通常需要使用 `h
app/config/config.py:14
↓ 1 callersFunctionis_siliconflow_voice
检查是否是硅基流动的声音
app/services/voice.py:188
↓ 1 callersFunctionlevenshtein_distance
(s1, s2)
app/services/subtitle.py:174
↓ 1 callersFunctionload_config
()
app/config/config.py:127
↓ 1 callersFunctionmimo_tts
使用 Xiaomi MiMo V2.5 TTS 生成语音。 官方接口兼容 OpenAI Chat Completions,但 TTS 有两个关键差异: 1. 待合成文本必须放在 `assistant` 消息里; 2. 音频以 `message.audio.data
app/services/voice.py:1045
↓ 1 callersFunctionopen_task_folder
(task_id)
webui/Main.py:142
↓ 1 callersMethodqueue_size
(self)
app/controllers/manager/base_manager.py:86
↓ 1 callersFunctionresolve_subtitle_background_color
()
app/services/video.py:827
↓ 1 callersFunctionsave_script_data
(task_id, video_script, video_terms, params)
app/services/task.py:63
↓ 1 callersFunctionsave_video
(video_url: str, save_dir: str = "")
app/services/material.py:244
↓ 1 callersMethodscan
(self, cursor, count)
test/services/test_state.py:22
↓ 1 callersFunctionserialize
(o)
app/utils/utils.py:31
↓ 1 callersFunctionsiliconflow_tts
使用硅基流动的API生成语音 Args: text: 要转换为语音的文本 model: 模型名称,如 "FunAudioLLM/CosyVoice2-0.5B" voice: 声音名称,如 "FunAudioLLM/CosyVoic
app/services/voice.py:689
↓ 1 callersFunctionsplit_long_token
(token)
app/services/video.py:717
↓ 1 callersFunctionstart
(task_id, params: VideoParams, stop_at: str = "video")
app/services/task.py:250
↓ 1 callersFunctionstorage_dir
(sub_dir: str = "", create: bool = False)
app/utils/utils.py:72
↓ 1 callersMethodstream
(self)
test/services/test_voice.py:222
↓ 1 callersFunctionstream_edge_tts_chunks
统一消费 edge_tts 的同步流和旧版异步流。 edge_tts 7.x 提供 `stream_sync()`,可以在同步函数里直接迭代; 更早的版本通常只有异步 `stream()`。为了让 `azure_tts_v1()` 在 旧依赖残留场景下仍能继续工作
app/services/voice.py:587
↓ 1 callersMethodtask_done
(self)
app/controllers/manager/base_manager.py:72
↓ 1 callersMethodupload_video
Upload a video to TikTok and/or Instagram. Args: video_path (str): Path to the video file title (str): Video
app/services/upload_post.py:32
↓ 1 callersFunctionwrap_text
(text, max_width, font="Arial", fontsize=60)
app/services/video.py:699
Method__init__
(self)
test/services/test_video.py:31
Method__init__
(self)
test/services/test_video.py:233
Method__init__
(self)
test/services/test_video.py:389
Method__init__
(self)
test/services/test_video.py:396
Method__init__
(self, text, voice, rate="+0%")
test/services/test_voice.py:217
Method__init__
(self)
test/services/test_voice.py:232
Method__init__
(self, text, voice, rate="+0%", boundary=None)
test/services/test_voice.py:270
Method__init__
(self, data)
test/services/test_voice.py:338
Method__init__
(self, data)
test/services/test_voice.py:342
Method__init__
(self, data)
test/services/test_voice.py:346
Method__init__
(self, data)
test/services/test_voice.py:350
Method__init__
(self, data)
test/services/test_voice.py:354
Method__init__
(self, name)
test/services/test_voice.py:358
Method__init__
(self)
test/services/test_voice.py:408
Method__init__
(self)
test/services/test_voice.py:412
Method__init__
(self)
test/services/test_voice.py:416
Method__init__
(self)
test/services/test_voice.py:420
Method__init__
(self, path)
test/services/test_material.py:101
Method__init__
(self, batches)
test/services/test_state.py:11
Method__init__
(self)
test/services/test_webui_i18n.py:13
Method__init__
(self, max_concurrent_tasks: int, max_queued_tasks: int = 100)
app/controllers/manager/base_manager.py:12
Method__init__
( self, max_concurrent_tasks: int, redis_url: str, max_queued_tasks: int = 100
app/controllers/manager/redis_manager.py:17
Method__init__
(self)
app/services/state.py:25
Method__init__
(self, host="localhost", port=6379, db=0, password=None)
app/services/state.py:63
Method__init__
(self)
app/services/upload_post.py:21
Method__init__
( self, file_path, start_time=None, end_time=None, width=None,
app/services/video.py:40
Method__init__
( self, task_id: str, status_code: int, message: str = "", data: Any = None )
app/models/exception.py:8
Method__len__
(self)
test/services/test_voice.py:429
Method__str__
(self)
app/services/video.py:61
Method_completion
(**kwargs)
test/services/test_llm.py:141
Method_do
()
test/services/test_voice.py:166
Function_handle_chunk
(chunk)
app/services/voice.py:653
Function_produce_chunks
()
app/services/voice.py:553
← previousnext →101–200 of 428, ranked by callers