百度TTS封装&字符数统计

百度TTS调用封装,字符数统计方法

This script should not be not be installed directly. It is a library for other scripts to include with the meta directive // @require https://greasyfork.org/scripts/402986-%E7%99%BE%E5%BA%A6tts%E5%B0%81%E8%A3%85-%E5%AD%97%E7%AC%A6%E6%95%B0%E7%BB%9F%E8%AE%A1/code/%E7%99%BE%E5%BA%A6TTS%E5%B0%81%E8%A3%85%E5%AD%97%E7%AC%A6%E6%95%B0%E7%BB%9F%E8%AE%A1.js?version=803398

Author
涛之雨
Ratings
0 0 0
Version
0.0.1.20200510035729
Created
Updated
License
N/A
Applies to
All sites

Author's Description

百度·TTS封装

自动解决Chrome自动播放音频的限制。 参数请见方法前的注释

文本字数统计

包括

//RetType:返回类型
//1:汉字数
//2:字数
//3:字符数
//4:标点数(全角)
//5:标点数(英文)
//6:英文字母
//7:数字