当前位置:网站首页>播报语音 h5 SpeechSynthesisUtterance
播报语音 h5 SpeechSynthesisUtterance
2022-07-26 20:02:00 【bug调教师】
const synth = window.speechSynthesis;
const msg = new SpeechSynthesisUtterance();
handleSpeak(txt) {
msg.text = txt;
msg.lang = “zh-CN”;
msg.volume = “1”;
msg.rate = 1;
msg.pitch = 1;
synth.speak(msg);
},
this.handleSpeak(“您有新的告警订单,请及时处理!”);// 调用
、可以参考文章: https://blog.csdn.net/qq_40571631/article/details/89738575
边栏推荐
- 传奇GEE引擎版本如何封挂?通过脚本+引擎封玩家账号教程
- Correct the classpath of your application so that it contains compatible versions of the classes com
- Marketing and sales document management and workflow solutions
- 7-year-old boy playing chess too fast? The robot actually broke its finger
- Build etcd distributed storage system +web management interface from scratch
- 传惠普/戴尔/微软/亚马逊考虑将部分硬件生产线转到大陆以外
- 【问题篇】浏览器get请求带token
- arm tz硬件支撑
- 让华为吃了败诉的CNEX Labs到底有何来头?
- 易基因|宏病毒组测序技术介绍
猜你喜欢
随机推荐
消息队列——引入的问题:重复消费&顺序消费&分布式事务
[experiment sharing] CCIE BGP routing black hole experiment]
Keepalived high availability introduction and configuration details
易基因|宏病毒组测序技术介绍
营销与销售文件管理以及工作流程解决方案
培训软件测试能不能就业
Shell函数、系统函数、basename [string / pathname] [suffix] 可以理解为取路径里的文件名称 、dirname 文件绝对路径、自定义函数
Group convolution
Houdini 求中点,点连成线
【问题篇】将集合[‘‘,‘‘]处理成(‘‘,‘‘)
BTC和ETH不确定性增强 因加息逼近?美国经济将面临更多痛苦
LeetCode链表问题——19.删除链表的倒数第N个节点(一题一文学会链表)
Basic configuration and aggregation of BGP
Easy gene | introduction to macrovirus sequencing technology
Correct the classpath of your application so that it contains compatible versions of the classes com
Green and sustainable development of data center
实验5 OSPF综合实验
NVIDIA Canvas 初体验~
Bean注入和生命周期
Leetcode array class








