http://b2b.jingpai.com/demo/demo11/
选择单词,可以发音,给一个类似http://dict.cn/做得
选择单词,可以发音,给一个类似http://dict.cn/做得
解决方案 »
- AJAX取值问题
- javascript的正则表达式如何实现正向零宽断言
- document.getElementsByTagName()后如何取得控件的属性值?
- 简单的JS输出问题
- javascript理论上是“基于对象”还是“面向对象”的编程语言呢?这两种类型语言的本质区别何在呢?
- JSP页面搜索引擎,在搜索框中输入关键字,在结果也中返回结果,结果标题中的关键字需要高亮显示,不知如何实现,请高手帮忙,谢谢!
- 如何将PNG档左右反转并透明??
- 关于条件打印的问题,100分求解!
- 怎样用JAVASCRIPT动态新增表格
- 怎样实现javascript的线程安全?
- e.target
- 简单的代码,为什么出错?
obj.Speak( "show me the money", 0 );
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>无标题文档</title>
</head>
<body>
<input type="text" value="show me the money" id="txt"/>
<button onclick="fun()">speak</button><script type="text/javascript">
function fun()
{
var txt = document.getElementById("txt").value;
var obj = new ActiveXObject( "SAPI.SpVoice" );
obj.Speak( txt, 0 );
}
</script>
</body>
</html>
如果播放的是我自己的录音不知道能不能做到 。
<body>
<table width="697" border="0" cellspacing="0" cellpadding="0">
<tr>
<td width="697"><img src="img/audio.gif" width="13" height="14">The two most important words in the English language are
“thank you.” Unfortunately, they are seldom heard. When was the last time you said “thank you”? </td>
</tr>
</table>
</body>
至于语气语调嘛..那是比较难的.