帖子

[demo分享] 【经验分享】C#版的windows演示(合成、录音、识别)

  [复制链接]

该用户从未签到

3042697 syscall 发表于 2011-11-18 08:45:53 1#

演示程序:iFlyDemo.zip(1.11MB)
框内的内容为录音后识别的结果@!
说明:程序运行需要dot net4.0的环境,如没有请自行下载安装dot net4.0


重新修改后的源文件,修改了在vs2012下编译出错的问题!
iFlyTTS.zip(3.58MB)

说明:程序的语音合成其实还有一个很棒的功能没有说明,就是可以合成英语考试用的的听力材料,样本如下:

xy#二〇一一至二〇一二学年期末质量检测九年级英语听力部分。第一节。听下面5段对话。每段对话后有一个小题,从题中所给的A、B、C三个选项中选出最佳答案,并将其标号填入题前括号内。每段对话读两遍。
ting
henry#1,It’s raining outside.
mary#Yes, it’s really wet. I hate it.
stop2
henry#It’s raining outside.
mary#Yes, it’s really wet. I hate it.
stop10

ting
henry#,Did you watch the football game yesterday?
mary#Yes, I did. It was great.
stop2
henry#Did you watch the football game yesterday?
mary#Yes, I did. It was great.
stop10

ting
mary#3,I’m looking for some information about traveling to Yuntai Mountain. I want to visit it next week.
henry#Oh , it’s a beautiful place to visit. You’ll enjoy yourself there.
stop2
mary# I’m looking for some information about traveling to Yuntai Mountain. I want to visit it next week.
henry#Oh , it’s a beautiful place to visit. You’ll enjoy yourself there.
stop2

ting
mary#4,Do you usually go to school on foot?
henry# Yes, I usually walk to school because it’s good for health.
stop2
mary# Do you usually go to school on foot?
henry# Yes, I usually walk to school because it’s good for health.
stop10

ting
henry#5,Where is Peter?
mary#He has gone to Nanjing. He was asked to give a talk there.
stop2
henry#Where is Peter?
mary#He has gone to Nanjing. He was asked to give a talk there.
stop10

xy#第二节。听下面几段对话或独白。每段对话或独白后有几个小题,从所给的A、B、C三个选项中选出最佳答案,并将其标号填入题前括号内。每段对话或独白读两遍。听下面一段对话,回答第6至第7 二个小题。
ting
henry#You have bought a bike, haven’t you?
mary# Yes, I bought my bike yesterday. What do you think of it?
henry#It’s very nice except the color.
mary# You mean, you don’t like green? What color do you like better?
henry#I prefer blue. By the way, how much is it?
mary# It’s about 300 yuan.
henry# Really? It’s not expensive. Is it made in Tianjin?
mary# No, it’s made in Shanghai.
stop2

henry#You have bought a bike, haven’t you?
mary# Yes, I bought my bike yesterday. What do you think of it?
henry#It’s very nice except the color.
mary# You mean, you don’t like green? What color do you like better?
henry#I prefer blue. By the way, how much is it?
mary# It’s about 300 yuan.
henry# Really? It’s not expensive. Is it made in Tianjin?
mary# No, it’s made in Shanghai.
stop10

xy#听下面一段独白,回答第8至第10 三个小题。
ting
henry# Playing sports is a good way to have fun. Chen Lei often goes to the school gym to do sports on weekends. It was Saturday yesterday. Chen Lei went to the gym with some friends. They had great fun playing basketball. Today they are in the gym again. Look! Chen Lei and Wang Kai are playing tennis. Zhang Hong and Yu Yang are dancing. How happy they are!
stop2

henry# Playing sports is a good way to have fun. Chen Lei often goes to the school gym to do sports on weekends. It was Saturday yesterday. Chen Lei went to the gym with some friends. They had great fun playing basketball. Today they are in the gym again. Look! Chen Lei and Wang Kai are playing tennis. Zhang Hong and Yu Yang are dancing. How happy they are!
stop10

xy#听下面一段对话,回答第11至第13 三个小题。
ting
henry# Good morning!
mary# Morning! What’s wrong with you ?
henry# I didn’t sleep well. I coughed almost the whole night and I don’t like eating anything.
mary# Have you taken your temperature at home ?
henry# Yes, it’s not high.
mary# Open your mouth and say “ah”.
henry# Ah.
mary# How long have you been like this?
henry# About two days.
mary# You’ve got a cold. It’s not serious.
henry# Can I go to work?
mary# You’d better take some medicine and stay at home for three days.
henry# How often should I take the medicine ?
mary# Twice a day. And please don’t forget to drink more water.
henry# OK, I’ll do that, thank you ,doctor.
stop2

henry# Good morning!
mary# Morning! What’s wrong with you ?
henry# I didn’t sleep well. I coughed almost the whole night and I don’t like eating anything.
mary# Have you taken your temperature at home ?
henry# Yes, it’s not high.
mary# Open your mouth and say “ah”.
henry# Ah.
mary# How long have you been like this?
henry# About two days.
mary# You’ve got a cold. It’s not serious.
henry# Can I go to work?
mary# You’d better take some medicine and stay at home for three days.
henry# How often should I take the medicine ?
mary# Twice a day. And please don’t forget to drink more water.
henry# OK, I’ll do that, thank you ,doctor.
stop10

xy#听下面一段独白,回答第14至第15 两个小题。
ting
henry# Attention, please,This is your monitor, Chen Tao. I have something to tell you. This Friday, April 18th, we’ll go to Stone Field Country Park for this year’s spring trip. The park is in the south of Zhengzhou. It’s a very beautiful place. We can see many kinds of plants there. We can have sports games f or fun and BBQ meals in the park. But remember that fire can only be allowed in the barbecue places.
stop2

henry# Attention, please,This is your monitor, Chen Tao. I have something to tell you. This Friday, April 18th, we’ll go to Stone Field Country Park for this year’s spring trip. The park is in the south of Zhengzhou. It’s a very beautiful place. We can see many kinds of plants there. We can have sports games f or fun and BBQ meals in the park. But remember that fire can only be allowed in the barbecue places.
stop10

xy#第三节。听下面一篇短文。找出与所听短文内容相符的图片,并将其标号填入题号后的横线上。短文读两遍。
ting
mary# Betty’s daughter is a six-year-old girl. She wants to be a musician when she grows up, so she plays the piano every day. Sara’s son is ten years old. He is interested in water sports. He said he hoped to be a sailor in the future. Alice learned to dance when she was young. Now she is a successful dancer. She wants her little daughter to follow her steps. Mary is always worried about her daughter, who is poor at math and English at school. So the poor girl has to do many exercises every day. Gina’s son is a football fan. He knows about almost all the well-known football players. He wishes to be a football star.
stop2

mary# Betty’s daughter is a six-year-old girl. She wants to be a musician when she grows up, so she plays the piano every day. Sara’s son is ten years old. He is interested in water sports. He said he hoped to be a sailor in the future. Alice learned to dance when she was young. Now she is a successful dancer. She wants her little daughter to follow her steps. Mary is always worried about her daughter, who is poor at math and English at school. So the poor girl has to do many exercises every day. Gina’s son is a football fan. He knows about almost all the well-known football players. He wishes to be a football star.

样本说明:
1、ting插入叮的一声
2、stop+数字,暂停几秒,秒数有数字确定
3、#前为朗读者,mary英语女声,henry英语男声,xy中文女声,具体可参考演讲者的枚举,#后为朗读的内容。

评分

参与人数 2语点 +15 收起 理由
17865915810@163 + 5 很给力!
edzhu + 10 很给力!

查看全部评分

hutule110 发表于 2011-11-18 09:32:45
2#
好贴要顶,感谢楼主的无私分享.
使用道具 举报 回复
xf1980 发表于 2011-11-18 15:20:58
3#
楼主怎么做的?我想用C++来做,需要哪些东西?指点一下小弟。
使用道具 举报 回复
jdyu 发表于 2011-11-18 17:12:19
4#
楼主怎么做的?我想用C++来做,需要哪些东西?指点一下小弟。
xf1980 发表于 2011-11-18 15:20


C++开发选择很多,可以使用MFC、WTL等类库,调用接口的demo可以下载,封装成为你需要的界面即可。
使用道具 举报 回复
ycwang2 发表于 2011-11-21 20:08:19
5#
楼主辛苦了
使用道具 举报 回复
malan11 发表于 2011-11-30 14:06:11
6#
问下。楼主源码可否提供啊,我的录音文件在识别的时候,识别结果差距太大了。悲剧
使用道具 举报 回复
sxyzy 发表于 2012-1-9 16:50:45
7#
本帖最后由 sxyzy 于 2012-1-10 15:55 编辑

感谢楼主分享!能正常使用。能否加一些进度提示,现在感觉只能等待,交互性需要一点。
使用道具 举报 回复
dollies 发表于 2012-1-19 16:10:54
8#
malan11 发表于 2011-11-30 14:06
问下。楼主源码可否提供啊,我的录音文件在识别的时候,识别结果差距太大了。悲剧 ...

同求。。。希望楼主能分享一下
使用道具 举报 回复
yosoulxfyy 发表于 2012-1-20 08:38:08
9#
C#调用语音识别 QISRAudioWrite 这个接口时 总是返回10108错误 不知道楼主遇到没??  
楼主可否共享下源码?
使用道具 举报 回复
火鸡哥 发表于 2012-1-31 15:13:39
10#
为嘛 我想到的 就一定有人在我之前做到了  -0- 吼吼。
使用道具 举报 回复