当前位置: 代码迷 >> 综合 >> 做一个能够在线阅读单词的网站
  详细解决方案

做一个能够在线阅读单词的网站

热度:37   发布时间:2023-10-02 00:12:15.0

做一个能够在线阅读单词的网站。

SoundPlayer sp = new SoundPlayer("c:/1.wav");

sp.PlaySync();

TTS(Text To Speech);

快速为单词录制音频的功能。用数据库。

实现句子连读功能。

用户控件:界面控件的复用,新建“用户控件”,按照要求拖放控件,设置供其他类调用的属性、方法。ASP.Net、Silverlight中都有这个概念。

录音的例子:如何录音?如何停止录音?如何保存录音?下面的代码就能实现,拷贝放到需要的地方(比如一个类class里)就可以了,具体不用研究。

[DllImport("winmm.dll", EntryPoint = "mciSendString", CharSet = CharSet.Auto)]private static extern int mciSendString(string lpstrCommand,string lpstrReturnString,int uReturnLength,int hwndCallback);private static void mciSendString(String cmd){mciSendString(cmd, "", 0, 0);}private static void StartRecord(){mciSendString("close movie");mciSendString("open new type WAVEAudio alias movie");mciSendString("record movie");}private static void StopRecord(string filename){mciSendString("stop movie");mciSendString("save movie " + filename);mciSendString("close movie");}

 

  相关解决方案