MCPcopy Create free account

hub / github.com/Ninot1Quyi/Qwen2.5-Omni-multimodal-chat / functions

Functions123 in github.com/Ninot1Quyi/Qwen2.5-Omni-multimodal-chat

↓ 18 callersMethodget
从队列获取项
core_pipeline.py:96
↓ 10 callersMethodclear
清空队列
core_pipeline.py:104
↓ 9 callersMethodempty
检查队列是否为空
core_pipeline.py:100
↓ 8 callersMethod_update_state
更新状态并通知监听器
processors.py:400
↓ 6 callersMethodsend_downstream
向下游发送帧
core_pipeline.py:144
↓ 6 callersMethodtask_done
标记任务完成
core_pipeline.py:114
↓ 5 callersFunctionextract_version
从version文件中提取版本号
build-scripts/windows/build.py:538
↓ 5 callersMethodstart
启动语音对话系统
Agent.py:125
↓ 5 callersMethodstop_immediately
立即停止所有播放
mouth.py:391
↓ 4 callersMethodadd_processor
添加处理器到管道
core_pipeline.py:259
↓ 4 callersMethodprocess_frame
处理单个帧,子类必须实现
core_pipeline.py:166
↓ 4 callersMethodstop_stream
关闭音频流但不中断当前播放
mouth.py:345
↓ 3 callersMethod_end_speech_collection
结束语音收集并将音频发送到AI处理器
ears.py:189
↓ 3 callersMethodenqueue_frame
将帧放入处理队列
core_pipeline.py:162
↓ 3 callersMethodis_cancelled
检查是否已取消
core_pipeline.py:76
↓ 3 callersMethodsend_upstream
向上游发送帧(用于控制和反馈)
core_pipeline.py:153
↓ 3 callersMethodstart_conversation
开始语音对话
webview_api.py:100
↓ 3 callersMethodstop_mic_stream
停止麦克风流
ears.py:299
↓ 3 callersFunctionupdateUIStatus
(status)
web/static/js/app.js:147
↓ 3 callersFunctionupdateWaveHeights
()
web/static/js/app.js:48
↓ 2 callersMethodadd_audio_data
添加音频数据到队列
mouth.py:106
↓ 2 callersMethodclose
关闭并清理资源
mouth.py:414
↓ 2 callersMethodevaluate_js
安全地执行JavaScript代码
webview_api.py:21
↓ 2 callersMethodput
添加项到队列
core_pipeline.py:92
↓ 2 callersMethodset_window
设置pywebview窗口对象
webview_api.py:80
↓ 2 callersMethodstop
停止语音对话系统
Agent.py:152
↓ 2 callersMethodstop_conversation
停止语音对话
webview_api.py:131
↓ 1 callersMethod__init__
(self, name="ai_processor")
processors.py:14
↓ 1 callersMethod_convert_frames_to_base64
将音频帧转换为base64编码的WAV数据
ears.py:235
↓ 1 callersMethod_detect_speech
使用VAD模型检测语音 基于 Silero VAD ONNX 模型 Args: audio_float32: 输入音频帧 (float32 格式) Returns: b
ears.py:249
↓ 1 callersMethod_interrupt_response
中断当前响应
processors.py:170
↓ 1 callersMethod_load_vad_model
加载VAD模型
ears.py:58
↓ 1 callersMethod_save_audio_to_file
保存音频帧到文件 Args: frames: 音频帧列表 base64_data: 可选的base64编码的音频数据
ears.py:351
↓ 1 callersMethod_setup_processors
设置处理器管道
Agent.py:62
↓ 1 callersMethod_start_response_thread
启动响应处理线程
processors.py:157
↓ 1 callersFunctionanimateToTargetHeights
()
web/static/js/app.js:63
↓ 1 callersFunctionapply_windows_compatibility_patches
为Windows平台应用兼容性补丁,解决对象类型比较问题
utils.py:4
↓ 1 callersFunctionbuild_executable
使用PyInstaller构建可执行文件
build-scripts/windows/build.py:197
↓ 1 callersMethodcancel
触发取消信号
core_pipeline.py:44
↓ 1 callersMethodcheck_connection
检查与后端的连接
webview_api.py:96
↓ 1 callersFunctioncheck_dependencies
检查必要的依赖
build-scripts/windows/build.py:38
↓ 1 callersFunctionclean_dist
清理旧的构建文件
build-scripts/windows/build.py:26
↓ 1 callersMethodclose
清理资源
Agent.py:190
↓ 1 callersMethodclose
关闭资源
ears.py:345
↓ 1 callersMethodconfigure_agent
配置Agent参数
webview_api.py:84
↓ 1 callersMethodconnect_processors
连接所有处理器
core_pipeline.py:265
↓ 1 callersFunctioncopy_additional_files
复制其他必要的运行时文件
build-scripts/windows/build.py:355
↓ 1 callersFunctioncreate_shortcut
创建快捷方式批处理文件
build-scripts/windows/build.py:389
↓ 1 callersFunctioncreate_spec_file
创建PyInstaller的spec文件
build-scripts/windows/build.py:75
↓ 1 callersFunctioncreate_version_file
创建版本信息文件,如果文件已存在则跳过
build-scripts/windows/build.py:490
↓ 1 callersFunctionendConversation
()
web/static/js/app.js:193
↓ 1 callersFunctionfind_pyinstaller
查找PyInstaller可执行文件的路径
build-scripts/windows/build.py:178
↓ 1 callersFunctionframes_to_wav_base64
将音频帧转换为base64编码的WAV数据
core_pipeline.py:330
↓ 1 callersFunctiongenerateWavePattern
(minHeight, maxHeight)
web/static/js/app.js:93
↓ 1 callersMethodget_available_microphones
获取可用麦克风列表
ears.py:323
↓ 1 callersFunctioninstall_requirements
安装所需的依赖
build-scripts/windows/build.py:52
↓ 1 callersFunctionint16_to_float32
将int16音频数据转换为float32格式 (-1.0 到 1.0 范围)
core_pipeline.py:322
↓ 1 callersFunctionmain
主函数,运行打包流程
build-scripts/windows/build.py:555
↓ 1 callersFunctionmonkey_patch_threading_event
为threading.Event添加补丁,避免与Rectangle类型比较问题
utils.py:54
↓ 1 callersMethodnew_session
创建新会话
core_pipeline.py:80
↓ 1 callersFunctionpatch_class_eq
为类添加安全的__eq__方法
utils.py:35
↓ 1 callersMethodqsize
获取队列大小
core_pipeline.py:118
↓ 1 callersFunctionrename_dist_folder
将英文目录重命名为中文(可选),并添加平台信息
build-scripts/windows/build.py:437
↓ 1 callersMethodrequest_smooth_interrupt
请求平滑打断播放
mouth.py:322
↓ 1 callersMethodreset
重置取消状态
core_pipeline.py:64
↓ 1 callersFunctionrun_console
运行命令行版本
app.py:101
↓ 1 callersFunctionrun_server
启动pywebview服务器 Args: headless: 如果为True,则以无GUI模式运行
app.py:13
↓ 1 callersFunctionsanitize_key_json
处理key.json文件,替换真实API密钥为示例值
build-scripts/windows/build.py:288
↓ 1 callersMethodset_context
设置处理器上下文
core_pipeline.py:134
↓ 1 callersMethodset_next
设置下一个处理器
core_pipeline.py:138
↓ 1 callersMethodshow_system_info
显示系统信息
Agent.py:116
↓ 1 callersMethodstart
启动处理器
core_pipeline.py:170
↓ 1 callersMethodstart_mic_stream
启动麦克风流
ears.py:68
↓ 1 callersMethodstart_stream
启动音频输出流
mouth.py:37
↓ 1 callersMethodstop
停止处理器
core_pipeline.py:181
↓ 1 callersMethodstop
停止所有处理器
core_pipeline.py:295
↓ 1 callersFunctionstopAnimation
()
web/static/js/app.js:131
↓ 1 callersMethodupdate_status
更新UI状态
webview_api.py:160
Method__eq__
(self, other)
webview_api.py:32
Method__eq__
(self, other)
webview_api.py:64
Method__hash__
(self)
webview_api.py:39
Method__hash__
(self)
webview_api.py:76
Method__init__
初始化语音对话代理 Args: gui_mode: 是否使用GUI模式,默认为True debug: 是否启用调试模式,打印详细日志 on_state_change: 状态变化回调函数,用于GU
Agent.py:34
Method__init__
(self, name="event_processor", on_state_change=None)
processors.py:368
Method__init__
(self, name="audio_input")
ears.py:27
Method__init__
(self, type: FrameType, data=None, metadata=None)
core_pipeline.py:28
Method__init__
(self)
core_pipeline.py:40
Method__init__
(self)
core_pipeline.py:71
Method__init__
(self, maxsize=0)
core_pipeline.py:88
Method__init__
(self, name)
core_pipeline.py:124
Method__init__
(self, context)
core_pipeline.py:218
Method__init__
(self)
core_pipeline.py:245
Method__init__
(self, window=None)
webview_api.py:15
Method__init__
(self)
webview_api.py:43
Method__init__
(self, name="audio_output")
mouth.py:14
Method__str__
(self)
core_pipeline.py:35
Method_audio_callback
音频回调函数
ears.py:104
Method_generate_response
生成AI响应的线程函数
processors.py:188
Method_play_audio_continuous
后台持续音频播放线程
mouth.py:157
Method_process_loop
处理循环
core_pipeline.py:193
next →1–100 of 123, ranked by callers