﻿{"id":1036,"date":"2016-07-14T16:49:26","date_gmt":"2016-07-14T08:49:26","guid":{"rendered":"http:\/\/www.tansoo.cn\/?p=1036"},"modified":"2016-07-14T16:50:52","modified_gmt":"2016-07-14T08:50:52","slug":"microsoft-speech-sdk%e4%b8%ad%e5%a4%9a%e5%a3%b0%e5%8d%a1%e5%88%87%e6%8d%a2%e7%9a%84%e6%96%b9%e6%b3%95","status":"publish","type":"post","link":"http:\/\/www.tansoo.cn\/?p=1036","title":{"rendered":"Microsoft Speech SDK\u4e2d\u591a\u58f0\u5361\u5207\u6362\u7684\u65b9\u6cd5"},"content":{"rendered":"<p>\u5728\u5f00\u53d1\u4e00\u4e2a\u8bed\u97f3\u62a5\u8b66\u7684\u7a0b\u5e8f\u4e2d\uff0c\u8981\u7528\u5230\u591a\u58f0\u5361\u5207\u6362\u529f\u80fd\uff0c\u5728\u7f51\u4e0a\u67e5\u627e\u4e86\u597d\u4e45\u90fd\u6ca1\u6709\u8fd9\u4ecb\u7ecd\uff0c\u666e\u901a\u8fd0\u7528\u5230\u662f\u4e0d\u5c11\u3002\u901a\u8fc7MSDN\u53ca\u4e0d\u65ad\u7684\u5c1d\u8bd5\uff0c\u7ec8\u4e8e\u627e\u5230\u4e86\u5207\u6362\u65b9\u6cd5\uff0c\u53d1\u51fa\u6765\u4f9b\u5927\u5bb6\u53c2\u8003\uff1a<\/p>\n<p>1\u3001\u9996\u5148\u786e\u5b9a\u7535\u8111\u4e2d\u58f0\u5361\u7684\u6570\u91cf\uff0c\u63d0\u53d6\u58f0\u5361\u540d\u79f0\uff1a<\/p>\n<pre class=\"lang:delphi decode:true \">procedure TForm2.FormCreate(Sender: TObject);\r\nvar\r\n  i,count:Integer;\r\nbegin\r\n  count:= SpVoice1.GetAudioOutputs('','').Count;\r\n  for I := 0 to count-1 do\r\n    ComboBox1.Items.Add(SpVoice1.GetAudioOutputs('','').Item(i).GetDescription(0));\r\nend;<\/pre>\n<p>2\u3001\u6839\u636e\u9700\u8981\u9009\u62e9\u58f0\u5361\uff1a<\/p>\n<pre class=\"lang:delphi decode:true \">procedure TForm2.ComboBox1Change(Sender: TObject);\r\nbegin\r\n  SpVoice1.AudioOutput := SpVoice1.GetAudioOutputs('','').Item(ComboBox1.ItemIndex);\r\nend;<\/pre>\n<p>3\u3001\u6700\u540e\u5c31\u53ef\u4ee5\u6839\u636e\u4f60\u7684\u9009\u62e9\uff0c\u4ece\u4e0d\u540c\u7684\u97f3\u7bb1\u64ad\u653e\u5185\u5bb9\u4e86\uff1a<\/p>\n<pre class=\"lang:delphi decode:true \">procedure TForm2.btn2Click(Sender: TObject);\r\nbegin\r\n  SpVoice1.Speak('BG6RSH\u7684\u535a\u5ba2\uff0c\u7f51\u5740\uff1awww.tansoo.cn',SVSFlagsAsync);\r\nend;<\/pre>\n<p>&nbsp;<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u5728\u5f00\u53d1\u4e00\u4e2a\u8bed\u97f3\u62a5\u8b66\u7684\u7a0b\u5e8f\u4e2d\uff0c\u8981\u7528\u5230\u591a\u58f0\u5361\u5207\u6362\u529f\u80fd\uff0c\u5728\u7f51\u4e0a\u67e5\u627e\u4e86\u597d\u4e45\u90fd\u6ca1\u6709\u8fd9\u4ecb\u7ecd\uff0c\u666e\u901a\u8fd0\u7528\u5230\u662f\u4e0d\u5c11\u3002\u901a\u8fc7MSDN [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[2],"tags":[61,60,59],"class_list":["post-1036","post","type-post","status-publish","format-standard","hentry","category-program","tag-sapi","tag-speech","tag-spvoice"],"_links":{"self":[{"href":"http:\/\/www.tansoo.cn\/index.php?rest_route=\/wp\/v2\/posts\/1036","targetHints":{"allow":["GET"]}}],"collection":[{"href":"http:\/\/www.tansoo.cn\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/www.tansoo.cn\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/www.tansoo.cn\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"http:\/\/www.tansoo.cn\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=1036"}],"version-history":[{"count":0,"href":"http:\/\/www.tansoo.cn\/index.php?rest_route=\/wp\/v2\/posts\/1036\/revisions"}],"wp:attachment":[{"href":"http:\/\/www.tansoo.cn\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=1036"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/www.tansoo.cn\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=1036"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/www.tansoo.cn\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=1036"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}