C# Speech.Synthesis 语音朗读语调范例
来源:互联网 发布:未来网络总体发展趋势 编辑:程序博客网 时间:2024/04/30 16:06
using System;
using System.Speech.Synthesis;
namespace Speech_Synthesis
{
public partial class Window1 : System.Windows.Window
{
public Window1()
{
InitializeComponent();
SpeechSynthesizer synthesizer = new SpeechSynthesizer();
PromptBuilder promptBuilder = new PromptBuilder();
promptBuilder.AppendTextWithHint("尹成", SayAs.SpellOut);
promptBuilder.AppendText("尹成大哥毕业于山东大学.");
promptBuilder.AppendBreak(new TimeSpan(0, 0, 2));
promptBuilder.AppendText("尹成大哥是谁");
promptBuilder.AppendTextWithHint(DateTime.Now.ToString("hh:mm"), SayAs.Time);
// Pause for 2 seconds
promptBuilder.AppendBreak(new TimeSpan(0, 0, 2));
promptBuilder.AppendText("尹成大哥硕士毕业于中科院?");
promptBuilder.StartVoice("Microsoft Sam");
promptBuilder.AppendTextWithHint("queue", SayAs.SpellOut);
promptBuilder.EndVoice();
promptBuilder.AppendText("Do it faster!");
promptBuilder.StartVoice("Microsoft Sam");
promptBuilder.StartStyle(new PromptStyle(PromptRate.ExtraFast));
promptBuilder.AppendTextWithHint("queue", SayAs.SpellOut);
promptBuilder.EndStyle();
promptBuilder.EndVoice();
// Speak all the content in the PromptBuilder
synthesizer.SpeakAsync(promptBuilder);
}
}
}
- C# Speech.Synthesis 语音朗读语调范例
- C#3.0基于Speech.Synthesis调整语音朗读语调范例
- Text-To-Speech(TTS)语音朗读
- 语音识别综述 awesome-speech-recognition-speech-synthesis-papers
- C#语音朗读
- C#语音朗读
- C#语音朗读
- C#语音朗读
- C#语音朗读
- c#语音朗读类
- c# 语音朗读
- C#语音朗读
- C#之语音朗读
- microsoft speech语音识别技术,语音朗读技术概述
- C#3.0基于 Speech.Recognition的grammerbuilder 语音识别定义模糊语法范例
- C#3.0基于 Speech.Recognition的SRGS 语音识别定义模糊语法范例
- C# 语音朗读及语音识别
- OpenEars 语音处理Welcome to OpenEars: free speech recognition and speech synthesis for the iPhone
- 成长•盛大
- ajax修改实体对应数据库字段
- CORBA基本概念
- warning: no newline at end of file
- ESCAPE在SQL和PL/SQL中的使用
- C# Speech.Synthesis 语音朗读语调范例
- 条件 CHAIN 语句
- windows窗体高级控件
- 标题还没写完
- zigbee与其它近距离无线通信技术的比较
- 使用gethostname()得到主机名
- c#结构体
- WPF程序设计指南(Applications = Code + Markup)实例源码下载
- 单例(单态)模式(C++描述)