找回密码
 立即注册

QQ登录

只需一步,快速开始

在此廾匸你

金牌服务用户

13

主题

71

帖子

196

积分

金牌服务用户

积分
196

时代开发者征文活动

在此廾匸你
金牌服务用户   /  发表于:2024-8-27 09:08  /   查看:385  /  回复:8
10金币
活字格有没有什么方法能够录入数据时进行语音提示呢?比如设置完成数,每录入一条数据,语音提示一次?

最佳答案

查看完整内容

var text=Forguncy.Page.getCell('aaa').getValue(); var rate=Forguncy.Page.getCell('rate').getValue(); var pitch=Forguncy.Page.getCell('pitch').getValue(); var volume=Forguncy.Page.getCell('volume').getValue(); var msg = new SpeechSynthesisUtterance(text); msg.rate =rate; msg.pitch = pitch; msg.volume = volume; window.speechSynthesis.speak(msg); aaa是你要读的单元格 ...

8 个回复

倒序浏览
最佳答案
最佳答案
stranger
银牌会员   /  发表于:2024-8-27 09:08:09
来自 6#


var text=Forguncy.Page.getCell('aaa').getValue();
var rate=Forguncy.Page.getCell('rate').getValue();
var pitch=Forguncy.Page.getCell('pitch').getValue();
var volume=Forguncy.Page.getCell('volume').getValue();


var msg = new SpeechSynthesisUtterance(text);
   msg.rate =rate;
   msg.pitch = pitch;
   msg.volume = volume;
window.speechSynthesis.speak(msg);




aaa是你要读的单元格文字


本帖子中包含更多资源

您需要 登录 才可以下载或查看,没有帐号?立即注册

x
回复 使用道具 举报
Erik.Xue讲师达人认证 悬赏达人认证 活字格认证 Wyn认证
超级版主   /  发表于:2024-8-27 09:10:31
2#
您好,可以参考使用这个插件哦:

https://marketplace.grapecity.co ... tabName=Tabs_detail
回复 使用道具 举报
在此廾匸你
金牌服务用户   /  发表于:2024-8-27 09:58:13
3#
Erik.Xue 发表于 2024-8-27 09:10
您好,可以参考使用这个插件哦:

https://marketplace.grapecity.com.cn/ApplicationDetails?productID= ...

谢谢,请问你知道是如何购买插件吗?是一次性的哇?
回复 使用道具 举报
在此廾匸你
金牌服务用户   /  发表于:2024-8-27 10:22:37
4#
还有其他方法吗?
回复 使用道具 举报
Erik.Xue讲师达人认证 悬赏达人认证 活字格认证 Wyn认证
超级版主   /  发表于:2024-8-27 11:18:01
5#
在此廾匸你 发表于 2024-8-27 09:58
谢谢,请问你知道是如何购买插件吗?是一次性的哇?

https://www.grapecity.com.cn/mar ... aid-plugins-for-hzg

可以参考上面的文档购买~
回复 使用道具 举报
在此廾匸你
金牌服务用户   /  发表于:2024-8-27 14:11:16
7#
Erik.Xue 发表于 2024-8-27 11:18
https://www.grapecity.com.cn/marketplace/docs/user-guide/howto-buy-and-install-paid-plugins-for-hz ...

谢谢
回复 使用道具 举报
在此廾匸你
金牌服务用户   /  发表于:2024-8-27 14:11:26
8#
stranger 发表于 2024-8-27 09:08
var text=Forguncy.Page.getCell('aaa').getValue();
var rate=Forguncy.Page.getCell('rate').getVal ...

谢谢
回复 使用道具 举报
Simon.Sun活字格认证 Wyn认证
超级版主   /  发表于:2024-8-27 15:14:14
9#
感谢大佬的支持
回复 使用道具 举报
您需要登录后才可以回帖 登录 | 立即注册
返回顶部