中文文本到语音朗读.NET3.5 For Windows 和Windows Mobile
来源:互联网 发布:古墓丽影10 for mac 编辑:程序博客网 时间:2024/05/22 07:39
非凡科技简单语音朗读二次开发包
应用说明
非凡科技简单语音朗读二次开发包是一种最为简单的语音朗读解决方案,不需要任何的第三方TTS引擎支持(如微软)而可以独立发布的语音朗读开发程序。
非凡科技简单语音朗读二次开发包仅适用于比较小型且简单的应用场合,并不适合复杂场合,对于要求朗读连贯的应用不建议使用。
非凡科技简单语音朗读二次开发包占据存储空间为26MB,朗读语音为女声中文。
朗读语音:女声中文(汉字、基本标点符号、数字)
容错方式:未识别语音将被忽略
适用开发语言:.NET3.5版本及以上
For Windows 平台
命名空间:SantookTTSLibForNET35
工作类名:ClassSpeech
方法
方法名
参数
描述
New()
LibPath As String
初始化语音朗读字典,如果Lib文件夹放置于当前应用程序执行根目录下,则LibPath为当前程序的启动文件夹路径
ReadTextToSpeech
Text As String
朗读参数Text所指定的内容(包括识别中文汉字、阿拉伯数字、基本标点符号),该方法使用当前UI线程进行朗读,要进行较长的朗读,请使用多线程。
属性
属性名
类型
描述
LibDectory
Readonly String
当前字典工作目录,只读
VB.NET示例代码:
Public Class Form1
Private tts As SantookTTSLibForNET35.ClassSpeech
Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click
tts.ReadTextToSpeech(Me.RichTextBox1.Text)
End Sub
Private Sub Form1_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load
tts = New SantookTTSLibForNET35.ClassSpeech(New IO.FileInfo(Application.ExecutablePath).DirectoryName)
End Sub
End Class
C#示例代码:
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;
namespace 非凡科技SampleTTS二次开发包演示代码CSharp
{
public partial class Form1 : Form
{
private SantookTTSLibForNET35.ClassSpeech TTS;
public Form1()
{
InitializeComponent();
}
private void button1_Click(object sender, EventArgs e)
{
TTS.ReadTextToSpeech(this.richTextBox1.Text);
}
private void Form1_Load(object sender, EventArgs e)
{
TTS = new SantookTTSLibForNET35.ClassSpeech(new System.IO.FileInfo(Application.ExecutablePath).DirectoryName);
}
}
}
For Windows Mobile 平台
命名空间:SantookTTSLibraryForWM
工作类名:SpeechTextForWM
方法
方法名
参数
描述
New()
LibPath As String
初始化语音朗读字典,如果Lib文件夹放置于当前应用程序执行根目录下,则LibPath为当前程序的启动文件夹路径
ReadTextToSpeech
Text As String
朗读参数Text所指定的内容(包括识别中文汉字、阿拉伯数字、基本标点符号),该方法使用当前UI线程进行朗读,要进行较长的朗读,请使用多线程。
属性
属性名
类型
描述
LibDectory
Readonly String
当前字典工作目录,只读
VB.NET For Windows Mobile示例代码 :
Public Class Form1
Private TTS As SantookTTSLibraryForWM.SpeechTextForWM
Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click
TTS.ReadTextToSpeech(Me.TextBox1.Text)
End Sub
Private Sub Form1_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load
TTS = New SantookTTSLibraryForWM.SpeechTextForWM(IO.Path.GetDirectoryName(System.Reflection.Assembly.GetExecutingAssembly().GetName().CodeBase))
End Sub
End Class
C# For Windows Mobile 示例代码:
using System;
using System.Linq;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Text;
using System.Windows.Forms;
namespace 非凡TTS开发包CSharpForWM
{
public partial class Form1 : Form
{
private SantookTTSLibraryForWM.SpeechTextForWM TTS;
public Form1()
{
InitializeComponent();
}
private void Form1_Load(object sender, EventArgs e)
{
TTS = new SantookTTSLibraryForWM.SpeechTextForWM(IO.Path.GetDirectoryName(System.Reflection.Assembly.GetExecutingAssembly().GetName().CodeBase));
}
private void button1_Click(object sender, EventArgs e)
{
TTS.ReadTextToSpeech(this.textBox1.Text);
}
}
}
软件开发:宋晓。
邮箱:santook@vip.qq.com
开发包请到我的下载中下载
- 中文文本到语音朗读.NET3.5 For Windows 和Windows Mobile
- Windows 10 Python 语音合成朗读文本
- Windows语音朗读测试
- android 中文语音朗读文本
- Windows Phone 8 新增功能:TTS文本朗读功能 和 语音识别 API
- Windows Phone 8 新增功能:TTS文本朗读功能 和 语音识别 API
- android 中文朗读 语音朗读 tts朗读
- windows本地安装.net3.5
- BeeMobile for Windows Mobile
- C++朗读中文文本
- 基于vc++2008托管代码开发Windows Vista语音朗读
- 编程:windows mobile 如何进行语音呼叫
- 基于Windows Sdk 与visual C++2008 在微软平台上构架自己的语音朗读引擎(适用于windows 2000/xp2003/vista windows CE /mobile),本项目开源,源码请留下你们的Email,我给大家发
- Windows Mobile 6.0 SDK和中文模拟器下载 Windows Mobile 6.5 模拟器(附5.0下载)
- Managed Services for Windows Mobile
- 离线安装windows 10 Net3.5
- 文本语音朗读电子书 2005 免费
- 文本语音朗读软件 c#程序
- JAVA 通过输入的出生日期,计算出岁数
- Siebel Tools 8.0.1在win7 64bit上安装不成功
- x86寄存器简介(2)
- 转贴 fatal error LNK1201:
- WinCE下 WSAWaitForMultipleEvents 事件模型实现并发IO
- 中文文本到语音朗读.NET3.5 For Windows 和Windows Mobile
- MTK:IDLE输入超长号码显示变化
- shell 中time 命令
- android Canvas类介绍
- 网页图片显示分辨率与实际分辨率不一样
- java读书笔记——对象的初始化与清理
- V字仇杀队经典台词
- HBASE和python融合
- jTree 添加、编辑、删除节点