Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/a943512/PyAibote
/ functions
Functions
402 in github.com/a943512/PyAibote
⨍
Functions
402
◇
Types & classes
62
Method
new_metahuman_text_to_audio
文本转音频 Text to audio server_ip: 声音克隆服务端IP save_audio_path: 保存的音频文件路径 refer_audio_path: 参考
PyAibote/DigitalHumanModel/DigitalHuman.py:152
Method
new_metahuman_text_to_audio_ex
云端算力文本转语音 Cloud computing power text-to-speech appid: APP ID token: Access Token spk_id:
PyAibote/DigitalHumanModel/DigitalHuman.py:286
Method
new_metahuman_text_to_audio_ex_service
云端算力文本转语音(火山引擎)(中转服务) Cloud Computing Text-to-Speech (Volcano Engine) (Transit Service) spk_id: 声音复刻大模型的声音ID 语音合
PyAibote/DigitalHumanModel/DigitalHuman.py:541
Method
new_metahuman_train_base_model
训练基础模型 Training basic model server_ip: 服务端IP call_api_key: 调用密钥 video_or_image_path: 人脸
PyAibote/DigitalHumanModel/DigitalHuman.py:376
Method
new_metahuman_train_base_model_service
训练基础模型(中转服务) Training basic model (transit service) video_or_image_path: 人脸 图片/视频 路径,图片/视频 第一帧必须包含人脸且正脸对着摄像头
PyAibote/DigitalHumanModel/DigitalHuman.py:484
Method
new_metahuman_train_voice_ex
云端算力训练声音 Cloud computing power training voice appid: APP ID token: Access Token spk_id:
PyAibote/DigitalHumanModel/DigitalHuman.py:246
Method
new_metahuman_train_voice_ex_service
云端算力训练声音(火山引擎)(中转服务) Cloud Computing Training Voice (Volcano Engine) (Transit Service) refer_audio_path: 参考音频
PyAibote/DigitalHumanModel/DigitalHuman.py:525
Method
new_page
新建 Tab 并跳转页面 Create a new Tab and jump to the page url: 网址 return: 布尔值 url: website add
PyAibote/WebBotModel/PagesAndNavigation.py:23
Method
open_excel
获取Excel对象 Get Excel objects excel_path: excle路径 return: excel对象或者None excel_path: excle
PyAibote/WindowsBotModel/ExcelOperation.py:10
Method
open_excel_sheet
打开excel表格 Open excel table excel_object: excel对象 sheet_name: 表名 return: 成功返回sheet对象,失败返回
PyAibote/WindowsBotModel/ExcelOperation.py:26
Method
play_audio
播报音频文件 不需要lab文件 Broadcast audio file audio_path: 音频文件路径 is_wait: 是否等待,为True时,等待播放完毕 retu
PyAibote/WindowsBotModel/DigitalHumanOperation.py:481
Method
play_audio_ex
播报音频文件(EX),不能与 metahumanSpeechByFileEx 同步执行 Broadcast audio file (EX), which can't be executed synchronously with metahumanSp
PyAibote/WindowsBotModel/DigitalHumanOperation.py:570
Method
play_media
播报视频文件 (多个视频切换播放 视频和音频编码必须一致) Broadcast video frequency files (video and audio coding must be consistent when playing multipl
PyAibote/WindowsBotModel/DigitalHumanOperation.py:497
Method
power_dialog
打开 开/关机 对话框,基于无障碍权限 Open the on/off dialog box, based on accessibility rights return:成功返回True 失败返回False
PyAibote/AndroidBotModel/EquipmentOperation.py:225
Method
press_release_by_ele
按压元素并释放 Press the element and release. xpath: 要按压的元素 duration: 按压时长,单位秒 wait_time: 查找元素的
PyAibote/AndroidBotModel/ElementOperation.py:38
Method
pull_file
将手机文件传输到电脑端 Transfer mobile phone files to the computer. remote_path: 手机端文件路径 local_path: 电脑本地文件存储路径
PyAibote/AndroidBotModel/FileTransfer.py:64
Method
push_file
将电脑文件传输到手机端 Transfer computer files to the mobile phone origin_path: 源文件路径 to_path: 安卓外部存储根目录 /stora
PyAibote/AndroidBotModel/FileTransfer.py:43
Method
quit
退出浏览器 Exit the browser return: 布尔值 return: bool
PyAibote/WebBotModel/WindowOperation.py:49
Method
read_android_file
读取安卓文件 Read Android file remote_path: 安卓文件路径 /storage/emulated/0/: 安卓文件根目录 return: 文件内容
PyAibote/AndroidBotModel/EquipmentOperation.py:352
Method
read_excel_num
读取excel表格数字 Read excel table numbers excel_object: excel对象 row: 行 col: 列 ret
PyAibote/WindowsBotModel/ExcelOperation.py:95
Method
read_excel_str
读取excel表格字符串 Read excel table string excel_object: excel对象 row: 行 col: 列 ret
PyAibote/WindowsBotModel/ExcelOperation.py:113
Method
refresh
刷新 refresh return: 布尔值 return: bool
PyAibote/WebBotModel/PagesAndNavigation.py:56
Method
remove_excel_col
删除excel表格列 Delete excel table columns excel_object: excel对象 col_first: 起始列 col_last: 结束列
PyAibote/WindowsBotModel/ExcelOperation.py:148
Method
remove_excel_row
删除excel表格行 Delete excel table rows excel_object: excel对象 row_first: 起始行 row_last: 结束行
PyAibote/WindowsBotModel/ExcelOperation.py:131
Method
replace_background
替换数字人背景 Replace the background of digital people bg_file_path: 数字人背景 图片/视频 路径,默认不替换背景。仅替换绿幕背景的数字人模型
PyAibote/WindowsBotModel/DigitalHumanOperation.py:102
Method
restart_clone_audio_server
重启声音克隆服务,需要部署服务端 To restart the voice cloning service, the server needs to be deployed clone_server_ip: 克隆声音服务端
PyAibote/WindowsBotModel/DigitalHumanOperation.py:467
Method
run
线程入口 Thread entry
PyAibote/Tool/WebsocketsServer.py:73
Method
save_element_screenshot
保存元素截图 Save element screenshot image_name: 图片名称,保存在手机 /storage/emulated/0/ 路径下 xpath: xpath路径
PyAibote/AndroidBotModel/ScreenshotOperation.py:97
Method
save_excel
保存excel文档 Save excel document excel_object: excel对象 return: True或者False excel_object: e
PyAibote/WindowsBotModel/ExcelOperation.py:44
Method
save_screenshot
截图,返回 PNG 格式的 base64, 保存图片时尽量不要把浏览器开全屏会出现异常抛错情况 Screenshot, return to base64 in PNG format xpath: 元素路径,如果指定该参数则截
PyAibote/WebBotModel/ElementOperation.py:281
Method
save_screenshot
截图 screenshot hwnd: 窗口句柄 save_path: 图片存储路径 region: 截图区域,默认全屏,``region = (起点x、起点y、终点x、终点y
PyAibote/WindowsBotModel/ColorOperation.py:10
Method
score_captcha
查询验证码剩余题分 Query the remaining questions of verification code username: 用户名 password: 密码
PyAibote/AndroidBotModel/VerificationCodeOperation.py:70
Method
score_captcha
查询验证码剩余题分 Query the remaining questions of verification code username: 用户名 password: 密码
PyAibote/WindowsBotModel/VerificationCodeOperation.py:102
Method
script_main
(self)
test_android.py:22
Method
script_main
(self)
test_new_digital_human.py:23
Method
script_main
(self)
test_web.py:39
Method
script_main
(self)
test_windows.py:24
Method
scroll_element
滚动元素,0 向上滑动,1 向下滑动 xpath: xpath 路径 direction: 滚动方向,0 向上滑动,1 向下滑动 return: 成功返回True 失败返回False
PyAibote/AndroidBotModel/ElementOperation.py:189
Method
scroll_element
滚动元素 Rolling element hwnd: 窗口句柄 xpath: 元素路径 horizontal: 水平百分比 -1不滚动 vertical
PyAibote/WindowsBotModel/ElementOperation.py:244
Method
scroll_mouse
滚动鼠标 Scroll mouse point 鼠标x, y坐标位置 offset_x: 水平滚动条移动的距离 offset_y: 垂直滚动条移动的距离
PyAibote/WebBotModel/KeymouseOperation.py:81
Method
scroll_mouse
滚动鼠标 Scroll mouse hwnd: 当前窗口句柄 x: 横坐标 y: 纵坐标 count: 鼠标滚动次数, 负数下滚鼠标, 正数上滚鼠标
PyAibote/WindowsBotModel/KeymouseOperation.py:48
Method
scroll_mouse_by_element
根据元素位置滚动鼠标 Scroll the mouse according to the element position. xpath: 元素路径 offset_x: 水平滚动条移动的距离
PyAibote/WebBotModel/KeymouseOperation.py:36
Method
select_mysql
查询MySql数据库数据 Query MySql database data sql: sql语句 return: 成功返回字典数据,失败返回Error sql: sql statement return: dictionary data is return
PyAibote/Tool/DatabaseFunc.py:141
Method
select_sqlite3
查询sqlite3数据库 Query sqlite3 database sql: 查询数据库的sql语句 return: 查询的列表数据数据或者False sql: sql statement for querying the database return
PyAibote/Tool/Sqlite3DataBase.py:76
Method
send_keys
发送文本,需要打开 AiBot 输入法 To send text, you need to open the AiBot input method text: 文本内容 return: 成功返回Tr
PyAibote/AndroidBotModel/EquipmentOperation.py:170
Method
send_keys
用于模拟键盘输入,输入的字符会往后叠加;如果元素不能设置焦点,应先 click_mouse 点击元素获得焦点后再输入 Used to simulate keyboard input, and the input characters will be
PyAibote/WebBotModel/ElementOperation.py:183
Method
send_keys
输入文本 Input text text: 输入的文本 return: 总是返回True text: Entered text return: Alw
PyAibote/WindowsBotModel/KeymouseOperation.py:92
Method
send_keys_by_hwnd
后台输入文本(杀毒软件可能会拦截) Enter text in the background (antivirus software may intercept it) hwnd: 窗口句柄 text
PyAibote/WindowsBotModel/KeymouseOperation.py:105
Method
send_msg
发送短信 send a text message mobile: 手机号码 text: 短信内容 return: 成功返回True 失败返回False
PyAibote/AndroidBotModel/EquipmentOperation.py:248
Method
send_vk
发送 vk , 需要打开 AiBot 输入法 Send vk vk: 虚拟键值 return: 成功返回True 失败返回False 虚拟键值按键对照表 https://bl
PyAibote/AndroidBotModel/EquipmentOperation.py:183
Method
send_vk
发送Vk虚拟键码, 按键对照表: http://www.atoolbox.net/Tool.php?Id=815 Send Vk virtual key code Key comparison table vk: 输入内容
PyAibote/WebBotModel/ElementOperation.py:213
Method
send_vk
输入虚拟键值(VK) Enter the virtual key value (VK) vk: VK键值 按键对照表: https://blog.csdn.net/qq_42372031/article/details/1
PyAibote/WindowsBotModel/KeymouseOperation.py:120
Method
send_vk_by_hwnd
后台输入虚拟键值(VK) Background input virtual key value (VK) hwnd: 窗口句柄 vk: VK键值 typ: 输入类型,按下弹起:
PyAibote/WindowsBotModel/KeymouseOperation.py:135
Method
send_websocket_data
发送WebSocket数据给客户端需要指定Token Sending WebSocket data to the client needs to specify Token data: 需要发送到客户端的数据
PyAibote/Tool/WebsocketsServer.py:120
Method
set_android_timeout
设置安卓客户端接收超时,默认为永久等待 Set the receiving timeout of Android client, and the default is permanent waiting timeout: 超
PyAibote/AndroidBotModel/EquipmentOperation.py:483
Method
set_clipboard_text
设置剪切板文本 Set clipboard text text: 文本 return: 成功返回True 失败返回False text: text r
PyAibote/AndroidBotModel/EquipmentOperation.py:285
Method
set_clipboard_text
设置剪切板内容 Set the clipboard contents text: 要设置的内容 return: 成功返回True 失败返回 False text: what
PyAibote/WindowsBotModel/SystemOperation.py:10
Method
set_cookies
设置指定 url 的 Cookies Set Cookies for the specified url url: 要设置 Cookie 的域 name: Cookie 名 v
PyAibote/WebBotModel/CookiesOperation.py:41
Method
set_download_dir
设置浏览器默认下载目录 Set the browser default download directory dir_name:下载目录 dir_name: download directory
PyAibote/WebBotModel/DrivingOperation.py:51
Method
set_element_attr
设置元素属性 Set element properties xpath: 元素 xpath 路径 attr_name: 属性名称 attr_value: 属性值
PyAibote/WebBotModel/ElementOperation.py:226
Method
set_element_focus
设置元素焦点 Set element focus xpath: xpath 路径 return: 布尔值 xpath: xpath path retu
PyAibote/WebBotModel/ElementOperation.py:170
Method
set_element_focus
设置元素作为焦点 Set element as focus hwnd: 窗口句柄 xpath: 元素路径 wait_time: 等待时间,默认取 5秒
PyAibote/WindowsBotModel/ElementOperation.py:187
Method
set_element_state
设置窗口状态 Set window state hwnd: 窗口句柄 xpath: 元素路径 state: 0正常 1最大化 2 最小化 return:
PyAibote/WindowsBotModel/ElementOperation.py:318
Method
set_element_text
设置元素文本 Set element text xpath: 元素路径 text: 设置的文本 wait_time: 等待时间,默认取 self.wait_timeout
PyAibote/AndroidBotModel/ElementOperation.py:111
Method
set_element_value
设置元素值 (与send_keys原理一样不同的是set_element_value不会往后叠加字符) Set the element value (the same difference as the principle of send_keys
PyAibote/WebBotModel/ElementOperation.py:198
Method
set_element_value
设置元素文本 Set element text hwnd: 窗口句柄 xpath: 元素路径 value: 要设置的内容 wait_time: 等待时间
PyAibote/WindowsBotModel/ElementOperation.py:215
Method
set_media_volume_scale
调节 playMedia 音量大小(底层用的内存共享,支持多进程控制) Adjust the volume of playMedia (memory sharing for the bottom layer, supporting multi-pro
PyAibote/WindowsBotModel/DigitalHumanOperation.py:535
Method
set_window_pos
设置窗口位置和窗口大小窗口状态 Set window position and window size window state status: 正常:"normal" 最小化:"minimized" 最大化:"maxi
PyAibote/WebBotModel/WindowOperation.py:27
Method
set_window_pos
设置窗口位置 Set window position hwnd: 当前窗口句柄 left: 左上角横坐标 top: 左上角纵坐标 width: 窗口宽度
PyAibote/WindowsBotModel/WindowOperation.py:154
Method
set_window_top
设置窗口到最顶层 Set the window to the top level hwnd: 当前窗口句柄 top: 是否置顶,True 置顶, False 取消置顶 retu
PyAibote/WindowsBotModel/WindowOperation.py:175
Method
show_speech_text
显示数字人说话的文本 Displays the text spoken by a digital person origin_y, 第一个字显示的起始Y坐标点。 默认0 自适应高度 font_type
PyAibote/WindowsBotModel/DigitalHumanOperation.py:123
Method
show_toast
Toast 弹窗 Toast popup window text: 弹窗内容 duration: 弹窗持续时间默认3秒 return: 成功返回True 失败返回False
PyAibote/AndroidBotModel/EquipmentOperation.py:155
Method
show_window
显示/隐藏窗口 Show/hide window hwnd: 当前窗口句柄 isShow: 显示窗口 True 隐藏窗口 False return: 布尔值
PyAibote/WindowsBotModel/WindowOperation.py:112
Method
show_xpath
显示元素xpath路径,页面加载完毕再调用。 调用此函数后,可在页面移动鼠标会显示元素区域。移动并按下ctrl键,会在浏览器控制台打印相对xpath 和 绝对xpath路径 ifrmae 内的元素,需要先调用 switchFr
PyAibote/WebBotModel/ElementOperation.py:304
Method
start_activity
Intent 跳转 Intent jump action: 动作,例如 "android.intent.action.VIEW" uri: 跳转链接,例如:打开支付宝扫一扫界面,"alipayqr:/
PyAibote/AndroidBotModel/EquipmentOperation.py:309
Method
start_app
启动 APP Start APP name: APP名字或者包名 wait_time: 等待时间,默认取 5秒 interval_time: 轮询间隔时间,默认取 0.5秒
PyAibote/AndroidBotModel/EquipmentOperation.py:10
Method
start_process
启动指定程序 Start the specified program cmd: 命令 show_window: 是否显示窗口,默认显示 is_wait: 是否等待程序结束, 默
PyAibote/WindowsBotModel/SystemOperation.py:34
Method
stop
停止服务器 Stop the server
PyAibote/Tool/WebsocketsServer.py:87
Method
stop_server
(self)
PyAibote/Tool/SocketServer.py:32
Method
switch_action
切换新的人物形象动作,此函数无需训练数字人模型,直接切换各种人物形象动作和场景 Switch new character movements. This function can directly switch various character m
PyAibote/WindowsBotModel/DigitalHumanOperation.py:304
Method
switch_clone_audio_model
切换声音克隆模型,需要部署服务端(切换到与原模型无关音色的模型,切记更换参考音频和文本) To switch the voice cloning model, you need to deploy the server cl
PyAibote/WindowsBotModel/DigitalHumanOperation.py:449
Method
switch_to_frame
切换到指定 frame Switch to the specified frame xpath: xpath 路径 return: 布尔值 xpath: xpath path
PyAibote/WebBotModel/IframeOperation.py:9
Method
switch_to_main_frame
切回主 frame Switch back to the main frame return: 布尔值 return: bool
PyAibote/WebBotModel/IframeOperation.py:22
Method
switch_to_page
切换到指定页面 Switch to the specified page page_id: 你要切换的页面ID return: 布尔值 page_id: ID of the
PyAibote/WebBotModel/PagesAndNavigation.py:92
Method
take_screenshot
保存截图,返回图像字节格式或者None, 此功能如果做投屏scale参数需要缩放3倍以上不然很慢 region: 截图区域,默认全屏,``region = (起点x、起点y、终点x、终点y)``,得到一个矩形 algorit
PyAibote/AndroidBotModel/ScreenshotOperation.py:116
Method
text_to_audio_and_lab_file
文本合成语音保存到本地音频文件 Text synthesis speech is saved to a local audio file save_audio_path: 保存的音频文件路径,扩展为.MP3格式。同名的 .l
PyAibote/WindowsBotModel/DigitalHumanOperation.py:423
Method
text_to_audio_file
文本合成音频并保存到文件 Text synthesizes audio and saves it to a file. ssml_path_or_text: 要转换语音的文本或者".xml"格式文件路径
PyAibote/WindowsBotModel/VoiceService.py:76
Method
text_to_bullhorn
文本合成音频到扬声器 Text synthesis audio to speakers ssml_path_or_text: 要转换语音的文本或者".xml"格式文件路径 language: 语言,参
PyAibote/WindowsBotModel/VoiceService.py:59
Method
train_human_model
训练数字人,训练时长为10-30分钟 Train digital people for 10-30 minutes call_apiKey: 调用函数的密钥 train_video_or_image:
PyAibote/WindowsBotModel/DigitalHumanOperation.py:320
Method
update_mysql
更新MySql数据库数据 Update multiple MySql database data sql: sql语句 return: 成功返回True, 失败返回False sql: sql statement return: True on succes
PyAibote/Tool/DatabaseFunc.py:119
Method
upload_file_by_element
通过元素上传文件 Upload files through elements xpath: 元素 xpath 路径 file_path: 文件路径 return: 布尔值
PyAibote/WebBotModel/ElementOperation.py:243
Method
url_request
获取请求地址html数据 Get that html data of the request address url: 请求的地址 http://www.ai-bot.net requestType:
PyAibote/AndroidBotModel/UrlRequest.py:10
Method
wait_network_data
等待获取网络数据,此函数必须在 goto、点击跳转等操作后立刻执行。执行完自动关闭 enableNetwork 设置的监听目标 Waiting to obtain network data, this function must be execute
PyAibote/WebBotModel/PagesAndNavigation.py:163
Method
wen_xin_bot
文心一言ChatGPT模型 ERNIE Bot ChatGPT model api_key: 文心一言签发的api_key, 获取地址:https://console.bce.baidu.com/ s
PyAibote/CommonUse/ChatGenerative.py:11
Method
write_android_file
写入安卓文件 Write to Android file remote_path: 安卓文件默认根目录:/storage/emulated/0/, 文件名必须是.txt后缀结 text: 写入的内
PyAibote/AndroidBotModel/EquipmentOperation.py:330
Method
write_excel_num
写入数字到excel表格 Write numbers to excel tables excel_object: excel对象 row: 行 col: 列
PyAibote/WindowsBotModel/ExcelOperation.py:57
Method
write_excel_str
写入字符串到excel表格 Write a string to an excel table excel_object: excel对象 row: 行 col: 列
PyAibote/WindowsBotModel/ExcelOperation.py:76
Method
yolo
yolo 目标检测 Yolo target detection ocr_server_id: yolo服务端IP,端口固定为9528 scale: 图片缩放率, 默认为 1.0 原大小。大于 1.0
PyAibote/AndroidBotModel/YoloService.py:28
Method
yolo_by_file
yolo 根据图片进行目标检测 Yolo carries out target detection according to the picture. ocr_server_id: yolo服务端IP,端口固定为9528
PyAibote/WindowsBotModel/YoloOperation.py:49
Method
yolo_by_hwnd
yolo 根据窗口句柄目标检测 Yolo target detection based on window handle ocr_server_id: yolo服务端IP,端口固定为9528 hwnd
PyAibote/WindowsBotModel/YoloOperation.py:27
← previous
next →
301–400 of 402, ranked by callers