資源簡介
軟件介紹:
XP系統中使用的中文女聲語音庫,能在WIN7系統上使用,安裝方法:打開或者雙擊ScanSoft_MeiLing_ChineseMandarinVoice.msi開始安裝。安裝這個后,打開語音朗讀軟件,就可以使用這個語音引擎朗讀文字了。NextUp-ScanSoft?Mei-Ling?Mandarin?Chinese?Voice
XP系統中使用的中文女聲語音庫,能在WIN7系統上使用,安裝方法:打開或者雙擊ScanSoft_MeiLing_ChineseMandarinVoice.msi開始安裝。安裝這個后,打開語音朗讀軟件,就可以使用這個語音引擎朗讀文字了。NextUp-ScanSoft?Mei-Ling?Mandarin?Chinese?Voice
代碼片段和文件信息
using?System;
using?System.Collections.Generic;
using?System.ComponentModel;
using?System.Data;
using?System.Drawing;
using?System.Text;
using?System.Windows.Forms;
using?SpeechLib;
namespace?Sound
{
?private?void?buttonSynthesis_Click(object?sender?System.EventArgs?e)?
{?
try?
{?
SpeechVoiceSpeakFlags?SpFlags?=?SpeechVoiceSpeakFlags.SVSFlagsAsync;?
SpVoice?Voice?=?new?SpVoice();?
Voice.Speak(this.textBoxText.Text?SpFlags);?
}?
catch(Exception?er)?
{?
MessageBox.Show(“An?Error?Occured!““SpeechApp“?MessageBoxButtons.OK?MessageBoxIcon.Error);?
}?
}?
//生成聲音文件(Wav)?
private?void?buttonTTStoWave_Click(object?sender?System.EventArgs?e)?
{?
try?
{?
SpeechVoiceSpeakFlags?SpFlags?=?SpeechVoiceSpeakFlags.SVSFlagsAsync;?
SpVoice?Voice?=?new?SpVoice();?
SaveFileDialog?sfd?=?new?SaveFileDialog();?
sfd.Filter?=?“All?files?(*.*)|*.*|wav?files?(*.wav)|*.wav“;?
sfd.title?=?“Save?to?a?wave?file“;?
sfd.FilterIndex?=?2;?
sfd.RestoreDirectory?=?true;?
if?(sfd.ShowDialog()==?DialogResult.OK)?
{?
SpeechStreamFileMode?SpFileMode?=?SpeechStreamFileMode.SSFMCreateForWrite;?
SpFileStream?SpFileStream?=?new?SpFileStream();?
SpFileStream.Open(sfd.FileName?SpFileMode?false);?
Voice.AudioOutputStream?=?SpFileStream;?
Voice.Speak(txtSpeakText.Text?SpFlags);?
Voice.WaitUntilDone(Timeout.Infinite);?
SpFileStream.Close();?
}?
}?
catch(Exception?er)?
{?
MessageBox.Show(“An?Error?Occured!““SpeechApp“?MessageBoxButtons.OK?MessageBoxIcon.Error);?
}?
}
}
?屬性????????????大小?????日期????時間???名稱
-----------?---------??----------?-----??----
?????文件?????176128??2012-03-08?23:04??Sound\Sound\bin\Debug\Interop.SpeechLib.dll
?????文件??????20480??2012-03-08?23:14??Sound\Sound\bin\Debug\Sound.exe
?????文件??????19968??2012-03-08?23:14??Sound\Sound\bin\Debug\Sound.pdb
?????文件???????5632??2005-11-11?22:25??Sound\Sound\bin\Debug\Sound.vshost.exe
?????文件???????1509??2012-03-09?00:00??Sound\Sound\Form1.cs
?????文件???????2517??2012-03-08?23:09??Sound\Sound\Form1.Designer.cs
?????文件???????5814??2012-03-08?23:09??Sound\Sound\Form1.resx
?????文件?????176128??2012-03-08?23:04??Sound\Sound\obj\Debug\Interop.SpeechLib.dll
?????文件????????842??2012-03-08?23:09??Sound\Sound\obj\Debug\Sound.csproj.GenerateResource.Cache
?????文件????????507??2012-03-08?23:04??Sound\Sound\obj\Debug\Sound.csproj.ResolveComReference.cache
?????文件??????20480??2012-03-08?23:14??Sound\Sound\obj\Debug\Sound.exe
?????文件????????180??2012-03-08?23:09??Sound\Sound\obj\Debug\Sound.Form1.resources
?????文件??????19968??2012-03-08?23:14??Sound\Sound\obj\Debug\Sound.pdb
?????文件????????180??2012-03-08?23:09??Sound\Sound\obj\Debug\Sound.Properties.Resources.resources
?????文件???????1085??2012-03-09?00:00??Sound\Sound\obj\Sound.csproj.FileListAbsolute.txt
?????文件????????464??2012-03-08?22:53??Sound\Sound\Program.cs
?????文件???????1158??2012-03-08?22:53??Sound\Sound\Properties\AssemblyInfo.cs
?????文件???????2866??2012-03-08?22:53??Sound\Sound\Properties\Resources.Designer.cs
?????文件???????5612??2012-03-08?22:53??Sound\Sound\Properties\Resources.resx
?????文件???????1090??2012-03-08?22:53??Sound\Sound\Properties\Settings.Designer.cs
?????文件????????249??2012-03-08?22:53??Sound\Sound\Properties\Settings.settings
?????文件???????3541??2012-03-08?23:09??Sound\Sound\Sound.csproj
?????文件????????904??2012-03-08?22:54??Sound\Sound.sln
????..A..H.?????13312??2012-03-09?00:26??Sound\Sound.suo
?????文件???40149013??2012-03-09?10:28??ScanSoft-MeiLing-ChineseMandarinVoice.rar
?????目錄??????????0??2012-03-08?22:53??Sound\Sound\obj\Debug\TempPE
?????目錄??????????0??2012-03-14?12:14??Sound\Sound\bin\Debug
?????目錄??????????0??2012-03-14?12:14??Sound\Sound\obj\Debug
?????目錄??????????0??2012-03-14?12:14??Sound\Sound\bin
?????目錄??????????0??2012-03-14?12:14??Sound\Sound\obj
............此處省略6個文件信息
評論
共有 條評論