当前位置:网站首页>播报语音 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
边栏推荐
- BGP的路由黑洞和防环
- 易基因|宏病毒组测序技术介绍
- QT基础第一天 (1)QT,GUI(图形用户接口)开发
- 81.(cesium之家)cesium修改灰色背景(默认蓝色)
- serializable接口的作用是什么?
- Transaction rollback and record exception information at the same time
- Google's new programming language is called carbon
- Easy gene | introduction to macrovirus sequencing technology
- Leetcode-300 longest increasing subsequence
- Gartner released the latest market guide for Chinese AI start-ups, and Hongji cyclone was once again rated as a representative enterprise
猜你喜欢
随机推荐
opencv dnn部署onnx模型
传奇GEE引擎版本如何封挂?通过脚本+引擎封玩家账号教程
BTC和ETH不确定性增强 因加息逼近?美国经济将面临更多痛苦
拦截器、、
JDBC的引入
It is said that HP / Dell / Microsoft / Amazon are considering transferring some hardware production lines outside the mainland
Common operations of ndarray in numpy
Buu brush inscription 2
Shell函数、系统函数、basename [string / pathname] [suffix] 可以理解为取路径里的文件名称 、dirname 文件绝对路径、自定义函数
Swiftui 4's new function of real-time access to click location.Ontapgeture {location in} (tutorial with source code)
美国应用材料公司宣布将以22亿美元现金收购国际电气
QT基础第一天 (1)QT,GUI(图形用户接口)开发
AI technology, simplifying the complex world | teatalk online application practical series, issue 2
[pytoch foundation] torch.stack() function analysis
Experiment 5 OSPF comprehensive experiment
解决IBGP的水平分割和BGP选路原则
Leetcode hash table class
Keepalived高可用介绍与配置详解
传惠普/戴尔/微软/亚马逊考虑将部分硬件生产线转到大陆以外
NVIDIA canvas first experience~









