/*
软件作者:https://xuhss.com/oxox/pro
*/
//*******************************************************************************************************************
//在QQ聊天界面点击语音按钮后调用QQVoice命令
//将会自动切换到录音并自动操作
//原作者QQ:3068758340
//经过略微改进
//支持aac音频文件 mp3好像不能
//配合fooview工具剪辑音频可得到aac文件
//发送失败可能是音频太长或者合适不支持
qqVoice("/storage/emulated/0/1.aac", 528235171)
//调用方法:Fpath为要发送的音频文件完整路径,QQ是你要用的QQ号
function qqVoice(Fpath, QQ) {
if (QQ == undefined) {
QQ = "3068758340"
}
var date1 = (new Date().getYear() + 1900) * 100 + new Date().getMonth() + 1
var date2 = new Date().getDate()
var path = "/storage/emulated/0/tencent/MobileQQ/" + QQ + "/ptt/" + date1 + "/" + date2 + "/";
files.removeDir(path);
files.ensureDir(path);
sleep(200)
click("录音")
sleep(200)
//bounds(379, 1356, 700, 1677).find().click()
desc("开始录音").click();
sleep(2000) //录音时长,可随意指定,不建议太短
//bounds(379, 1356, 700, 1677).find().click()
desc("停止录音").click()
toastLog(path);
sleep(500)
var fileName = files.listDir(path);
files.removeDir(path) //删除生成录音文件
files.ensureDir(path) //确保目录存在
files.copy(Fpath, path + "1.aac") //复制要发送的音频文件
files.rename(path + "1.aac", fileName[0]) //更名,让QQ发送替换后的音频文件
sleep(200)
click("发送")
}
没有合适的资源?快使用搜索试试~ 我知道了~
AutoJs源码-QQ语音替换
![preview](https://csdnimg.cn/release/downloadcmsfe/public/img/white-bg.ca8570fa.png)
共1个文件
js:1个
![preview-icon](https://csdnimg.cn/release/downloadcmsfe/public/img/scale.ab9e0183.png)
需积分: 1 2 下载量 108 浏览量
2022-11-15
04:11:08
上传
评论
收藏 1011B 7Z 举报
温馨提示
AutoJs源码-QQ语音替换。本资源购买前提醒:本源码都是实际autojs项目模板,安装好autojs直接运行即可打开。1、支持低版本autojs。2、资源仅供学习与参考,请勿用于商业用途,否则产生的一切后果将由您自己承担!。3、安装过程详见具体资源,不会使用autojs谨慎下载
资源推荐
资源详情
资源评论
![thumb](https://img-home.csdnimg.cn/images/20210720083646.png)
![thumb](https://img-home.csdnimg.cn/images/20210720083646.png)
![thumb](https://img-home.csdnimg.cn/images/20210720083646.png)
![thumb](https://img-home.csdnimg.cn/images/20210720083646.png)
![thumb](https://img-home.csdnimg.cn/images/20210720083646.png)
![thumb](https://img-home.csdnimg.cn/images/20210720083646.png)
![thumb](https://img-home.csdnimg.cn/images/20210720083646.png)
![thumb](https://img-home.csdnimg.cn/images/20210720083646.png)
![thumb](https://img-home.csdnimg.cn/images/20210720083646.png)
![thumb](https://img-home.csdnimg.cn/images/20210720083646.png)
![thumb](https://img-home.csdnimg.cn/images/20210720083646.png)
![thumb](https://img-home.csdnimg.cn/images/20210720083646.png)
![thumb](https://img-home.csdnimg.cn/images/20210720083646.png)
![thumb](https://img-home.csdnimg.cn/images/20210720083646.png)
![thumb](https://img-home.csdnimg.cn/images/20210720083646.png)
![thumb](https://img-home.csdnimg.cn/images/20210720083646.png)
![thumb](https://img-home.csdnimg.cn/images/20210720083646.png)
![thumb](https://img-home.csdnimg.cn/images/20210720083646.png)
![thumb](https://img-home.csdnimg.cn/images/20210720083646.png)
![thumb](https://img-home.csdnimg.cn/images/20210720083646.png)
![thumb](https://img-home.csdnimg.cn/images/20210720083646.png)
![thumb](https://img-home.csdnimg.cn/images/20210720083646.png)
![thumb](https://img-home.csdnimg.cn/images/20210720083646.png)
![thumb](https://img-home.csdnimg.cn/images/20210720083646.png)
![thumb](https://img-home.csdnimg.cn/images/20210720083646.png)
![thumb](https://img-home.csdnimg.cn/images/20210720083646.png)
![thumb](https://img-home.csdnimg.cn/images/20210720083646.png)
![thumb](https://img-home.csdnimg.cn/images/20210720083646.png)
收起资源包目录
![package](https://csdnimg.cn/release/downloadcmsfe/public/img/package.f3fc750b.png)
![file-type](https://csdnimg.cn/release/download/static_files/pc/images/minetype/UNKNOWN.png)
共 1 条
- 1
资源评论
![avatar-default](https://csdnimg.cn/release/downloadcmsfe/public/img/lazyLogo2.1882d7f4.png)
![avatar](https://profile-avatar.csdnimg.cn/default.jpg!1)
[虚幻私塾】
- 粉丝: 335
- 资源: 1559
上传资源 快速赚钱
我的内容管理 展开
我的资源 快来上传第一个资源
我的收益
登录查看自己的收益我的积分 登录查看自己的积分
我的C币 登录后查看C币余额
我的收藏
我的下载
下载帮助
![voice](https://csdnimg.cn/release/downloadcmsfe/public/img/voice.245cc511.png)
![center-task](https://csdnimg.cn/release/downloadcmsfe/public/img/center-task.c2eda91a.png)
安全验证
文档复制为VIP权益,开通VIP直接复制
![dialog-icon](https://csdnimg.cn/release/downloadcmsfe/public/img/green-success.6a4acb44.png)