?? codeproject audio_ostream - a text-to-speech ostream_ free source code and programming help.htm
字號:
href="http://www.codeproject.com/KB/work/">Work Issues</A></DIV>
<DIV class=MI id=Section126><A
href="http://www.codeproject.com/KB/codegen/">Code
Generation</A></DIV></DIV>
<DIV class=MenuChapter><A onclick="return ToggleMenu('Chapter7');"
href="http://www.codeproject.com/script/Content/Chapter.aspx?chptId=7">General
Reading</A></DIV>
<DIV class=MenuSectionBlock id=Chapter7 style="DISPLAY: none">
<DIV class=MI id=Section60><A
href="http://www.codeproject.com/KB/books/">Book Chapters</A></DIV>
<DIV class=MI id=Section61><A
href="http://www.codeproject.com/KB/book-reviews/">Book Reviews</A></DIV>
<DIV class=MI id=Section109><A
href="http://www.codeproject.com/KB/hardware-review/">Hardware
Reviews</A></DIV>
<DIV class=MI id=Section63><A
href="http://www.codeproject.com/KB/interviews/">Interviews</A></DIV>
<DIV class=MI id=Section62><A
href="http://www.codeproject.com/KB/scrapbook/">Scrapbook</A></DIV>
<DIV class=MI id=Section48><A
href="http://www.codeproject.com/KB/system/">Hardware &
System</A></DIV></DIV>
<DIV class=MenuChapter><A onclick="return ToggleMenu('Chapter12');"
href="http://www.codeproject.com/script/Content/Chapter.aspx?chptId=12">Third
Party Products</A></DIV>
<DIV class=MenuSectionBlock id=Chapter12 style="DISPLAY: none">
<DIV class=MI id=Section65><A
href="http://www.codeproject.com/KB/showcase/">Product Showcase</A></DIV>
<DIV class=MI id=Section124><A
href="http://www.codeproject.com/KB/solution-center/">Solution
Center</A></DIV></DIV></DIV><BR>
<DIV class=MenuCat>Services</DIV>
<DIV class=MenuChapter><A
href="http://www.codeproject.com/script/Jobs/List.aspx">Job
Board</A></DIV>
<DIV class=MenuChapter><A
href="http://www.codeproject.com/Services/coffee.aspx">Code Project
Coffee</A></DIV>
<DIV class=MenuChapter><A
href="http://www.codeproject.com/Services/TradePub.aspx">Free
Magazines</A></DIV><BR>
<DIV class=MenuCat>Feature Zones</DIV>
<DIV class=MenuChapter><A
href="http://www.codeproject.com/kb/Showcase/">Product Showcase</A></DIV>
<DIV class=MenuChapter><A href="http://www.codeproject.com/Zones/IBM">IBM
DeveloperWorks</A></DIV>
<DIV class=MenuChapter><A
href="http://www.codeproject.com/Zones/WhitePapers">WhitePapers /
Webcasts</A></DIV>
<DIV class=MenuChapter><A
href="http://www.codeproject.com/Zones/Acresso">InstallShield
2009</A></DIV>
<DIV class=MenuChapter><A
href="http://www.codeproject.com/Zones/APress">Apress
Bookstore</A></DIV><BR>
<DIV style="MARGIN-BOTTOM: 10px; TEXT-ALIGN: center">
<SCRIPT type=text/javascript>document.write(unescape("%3ca%20href%3d%22http%3a%2f%2fwww.codeproject.com%2fRedir.aspx%3fadid%3d7979%26way%3dban%22%20target%3d%22_blank%22%20rel%3d%22nofollow%22%3e%3cimg%20src%3d%22http%3a%2f%2fwww.codeproject.com%2fscript%2fAdm%2fServeImg.aspx%3fFile%3d%252fscript%252fAdm%252fimages%252fcp_ms_mobile_contest_150x80animated.gif%26C%3dFalse%26adid%3d7979%22%20alt%3d%22%22%20border%3d%220%22%20width%3d%22150%22%20height%3d%2280%22%3e%3c%2fa%3e"));</SCRIPT>
</DIV>
<SCRIPT type=text/javascript>document.write(unescape("%3ca%20href%3d%22http%3a%2f%2fwww.codeproject.com%2fRedir.aspx%3fadid%3d7308%26way%3dban%22%20target%3d%22_blank%22%20rel%3d%22nofollow%22%3e%3cimg%20src%3d%22http%3a%2f%2fwww.codeproject.com%2fscript%2fAdm%2fServeImg.aspx%3fFile%3d%252fscript%252fAdm%252fimages%252fesecutech_160by600.gif%26C%3dFalse%26adid%3d7308%22%20alt%3d%22%22%20border%3d%220%22%20width%3d%22160%22%20height%3d%22600%22%3e%3c%2fa%3e"));</SCRIPT>
</TD>
<TD class=ArticlePane vAlign=top>
<TABLE class=SearchHeaderBar cellSpacing=0 width="100%">
<TBODY>
<TR>
<TD style="WIDTH: 60%; WHITE-SPACE: nowrap" vAlign=center
align=right><FORM style="MARGIN: 0px" name=Search
action=/info/search.aspx method=get><B>Search </B> <INPUT
class=SmallText style="WIDTH: 200px" name=artkw> <SELECT
class=SmallText style="FONT-WEIGHT: bold" name=sbo> <OPTION
value=kw selected>Articles</OPTION> <OPTION
value=fm>Messages</OPTION> <OPTION value=s>Jobs</OPTION></SELECT> <INPUT class=SmallText style="FONT-WEIGHT: bold" type=submit value=" Go! ">
</FORM></TD>
<TD class=TinyText style="WHITE-SPACE: nowrap"><A
href="http://www.codeproject.com/info/search.aspx">Advanced
Search</A><BR><A
href="http://www.codeproject.com/script/Content/SiteMap.aspx">Sitemap</A>
| <A id=ctl00_SearchBarCtrl_AddToIESearchLnk
title="Add The Code Project to your IE search Providers"
onclick="window.external.AddSearchProvider('http://www.codeproject.com/info/OpenSearch.xml');return false;"
href="http://www.codeproject.com/">Add to IE Search</A>
</TD></TR></TBODY></TABLE><SPAN id=ctl00_ResultMessage></SPAN>
<DIV id=ctl00_ArtDiv>
<TABLE cellSpacing=0 cellPadding=0 border=0>
<TBODY>
<TR vAlign=top>
<TD vAlign=top width="100%">
<TABLE>
<TBODY></TBODY></TABLE>
<DIV class=SmallText><IMG style="VERTICAL-ALIGN: middle" height=16
alt=print
src="CodeProject audio_ostream - A Text-to-Speech ostream_ Free source code and programming help_files/print.gif"
width=16> <A id=ctl00_ArticleHeaderLinks_PrintLnk
href="http://www.codeproject.com/KB/audio-video/audio_ostream.aspx?display=Print">Print</A>
<IMG style="VERTICAL-ALIGN: middle" height=16
alt="Broken Article?"
src="CodeProject audio_ostream - A Text-to-Speech ostream_ Free source code and programming help_files/report.gif"
width=16> <A id=ctl00_ArticleHeaderLinks_BrokenLnk
href="http://www.codeproject.com/script/Articles/Report.aspx?aid=17897">Report
Article</A> <IMG style="VERTICAL-ALIGN: middle" alt=Watch
src="CodeProject audio_ostream - A Text-to-Speech ostream_ Free source code and programming help_files/watchon.png">
<A class="" id=ctl00_ArticleHeaderLinks_ArticleBmkWatch_WatchMe
onclick="return watchMe(17897, 2);"
href="http://www.codeproject.com/script/Bookmarks/Add.aspx?obid=17897&obtid=2&bma=AddWatch"
name=bmw_17897_2>Watch</A> <SPAN class=TinyText
id=ctl00_ArticleHeaderLinks_ArticleBmkWatch_StatusMsg
style="VISIBILITY: hidden" name="bmw_17897_2"></SPAN> <IMG
style="VERTICAL-ALIGN: middle" height=16 alt=Bookmark
src="CodeProject audio_ostream - A Text-to-Speech ostream_ Free source code and programming help_files/link.png"
width=16> <A class=""
id=ctl00_ArticleHeaderLinks_ArticleBmk_BookmarkMe
onclick="return bookmarkMe(17897, 2);"
href="http://www.codeproject.com/script/Bookmarks/Add.aspx?obid=17897&obtid=2&bma=AddBookmark"
name=bm_17897_2>Bookmark</A> <SPAN class=TinyText
id=ctl00_ArticleHeaderLinks_ArticleBmk_StatusMsg
style="VISIBILITY: hidden" name="bm_17897_2"></SPAN> <IMG
style="VERTICAL-ALIGN: middle" height=16 alt=Discuss
src="CodeProject audio_ostream - A Text-to-Speech ostream_ Free source code and programming help_files/discuss.gif"
width=15> <A
href="http://www.codeproject.com/KB/audio-video/audio_ostream.aspx#_comments">Discuss</A>
<IMG style="VERTICAL-ALIGN: middle" height=16
alt="Recommend Article"
src="CodeProject audio_ostream - A Text-to-Speech ostream_ Free source code and programming help_files/mail.gif"
width=16> <A id=ctl00_ArticleHeaderLinks_Recommend
href="http://www.codeproject.com/script/common/TellFriend.aspx?obtid=2&obid=17897">Send to a friend</A>
</DIV></TD>
<TD style="WIDTH: 100px; WHITE-SPACE: nowrap; TEXT-ALIGN: right">
<TABLE id=CurRat>
<TBODY>
<TR>
<TD>
<TABLE>
<TBODY>
<TR>
<TD class=SmallText id=ctl00_ArticleRating_VL
style="WHITE-SPACE: nowrap" align=right><SPAN
id=ctl00_ArticleRating_VoteLabel>20 votes for this
Article.</SPAN></TD>
<TD>
<TABLE cellSpacing=0 cellPadding=0 border=1>
<TBODY>
<TR>
<TD width=20 bgColor=white height=7><IMG height=7
src="CodeProject audio_ostream - A Text-to-Speech ostream_ Free source code and programming help_files/red.gif"
width=20 align=center border=0></TD>
<TD width=20 bgColor=white height=7><IMG height=7
src="CodeProject audio_ostream - A Text-to-Speech ostream_ Free source code and programming help_files/red.gif"
width=20 align=center border=0></TD>
<TD width=20 bgColor=white height=7><IMG height=7
src="CodeProject audio_ostream - A Text-to-Speech ostream_ Free source code and programming help_files/red.gif"
width=20 align=center border=0></TD>
<TD width=20 bgColor=white height=7><IMG height=7
src="CodeProject audio_ostream - A Text-to-Speech ostream_ Free source code and programming help_files/red.gif"
width=20 align=center border=0></TD>
<TD noWrap width=20 bgColor=white height=7><IMG
height=7
src="CodeProject audio_ostream - A Text-to-Speech ostream_ Free source code and programming help_files/red.gif"
width=16 align=center
border=0></TD></TR></TBODY></TABLE></TD></TR>
<TR id=ctl00_ArticleRating_PopularityRow>
<TD class=SmallText align=right colSpan=2><A
id=ctl00_ArticleRating_PopularityLnk
title="Calculated as rating x Log10(# votes)"
href="http://www.codeproject.com/script/Articles/TopArticles.aspx?ta_so=1">Popularity:
6.23</A> <SPAN
id=ctl00_ArticleRating_PopularityLbl></SPAN><SPAN
id=ratingVal>Rating: <B>4.79</B> out of
5</SPAN></TD></TR></TBODY></TABLE></TD>
<TD>
<DIV>
<TABLE class=HistTable
title="Voting Distribution. Recent data only">
<TBODY>
<TR>
<TD><IMG title="0 votes, 0.0%" height=1
alt="0 votes, 0.0%" src="" width=10 border=0><BR>1</TD>
<TD><IMG title="0 votes, 0.0%" height=1
alt="0 votes, 0.0%" src="" width=10 border=0><BR>2</TD>
<TD><IMG title="2 votes, 10.0%" height=2
alt="2 votes, 10.0%"
src="CodeProject audio_ostream - A Text-to-Speech ostream_ Free source code and programming help_files/pollcol.gif"
width=10 border=0><BR>3</TD>
<TD><IMG title="1 vote, 5.0%" height=1
alt="1 vote, 5.0%"
src="CodeProject audio_ostream - A Text-to-Speech ostream_ Free source code and programming help_files/pollcol.gif"
width=10 border=0><BR>4</TD>
<TD><IMG title="17 votes, 85.0%" height=20
alt="17 votes, 85.0%"
src="CodeProject audio_ostream - A Text-to-Speech ostream_ Free source code and programming help_files/pollcol.gif"
width=10
border=0><BR>5</TD></TD></TR></TBODY></TABLE></DIV></TD></TR></TBODY></TABLE></TD></TR></TBODY></TABLE>
<DIV id=contentdiv><!-- Main Page Contents Start --><!-- Article Starts -->
<UL class=download>
<LI><A
href="http://www.codeproject.com/KB/audio-video/audio_ostream/audio_ostream_demo.zip">Download
demo project - 3.3 Kb </A>
<LI><A
href="http://www.codeproject.com/KB/audio-video/audio_ostream/audio_ostream_src.zip">Download
source - 1.1 Kb</A> </LI></UL>
<P><IMG height=200 alt="Screenshot - audio_ostream.png"
src="CodeProject audio_ostream - A Text-to-Speech ostream_ Free source code and programming help_files/audio_ostream.png"
width=206></P>
<H2>Introduction</H2>
<P>In this article I'll show you how to add Text-to-Speech (TTS)
capabilities to your program.</P>
<P>You'll be able to do it with, essentially, 1 line of code, using the
familiar standard <CODE>ostream</CODE> syntax.</P>
<P>Additionally, I'll show how using open source C++ tools can make your
code short (my whole code is less than 50 lines), reliable, more robust
and more general than the original APIs.</P>
<P>What I'll show:</P>
<UL>
<LI>How to add simple TTS to your program.
<LI>A simple use of <A
href="http://synesis.com.au/software/comstl/">COMSTL</A> and various
other <A href="http://synesis.com.au/software/stlsoft/">STLSoft</A>
components.
?? 快捷鍵說明
復制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -