Search
Search titles only
By:
Search titles only
By:
Log in
Register
Search
Search titles only
By:
Search titles only
By:
Menu
Install the app
Install
Forums
New posts
All threads
Latest threads
New posts
Trending threads
Trending
Search forums
What's new
New posts
New ads
New profile posts
Latest activity
Free Ads
Latest reviews
Search ads
Members
Current visitors
New profile posts
Search profile posts
Contact us
Latest ads
NURSING , CAREGIVER , HOTEL & BEAUTY COURSES
IVA Para Medical Campus
Updated:
Today at 9:24 AM
Handmade Character Soft Toys Peppa Pig Family
anil1961
Updated:
Yesterday at 9:58 PM
Ad icon
Video Content Creator
pramukag
Updated:
Sunday at 6:10 AM
Ad icon
QA Engineer Intern
pramukag
Updated:
Sunday at 6:07 AM
Ad icon
Sell your Land, House on idamata.lk for FREE
sajith.xp.pk
Updated:
Jun 25, 2026
Electronics
Vehicles
Property
Search
Reply to thread
Forums
General
ElaKiri Talk!
C# Text to Speech Converter
Get the App
JavaScript is disabled. For a better experience, please enable JavaScript in your browser before proceeding.
You are using an out of date browser. It may not display this or other websites correctly.
You should upgrade or use an
alternative browser
.
Message
<blockquote data-quote="newUser2015" data-source="post: 18389511" data-attributes="member: 536050"><p>This program will read some text enter by user and convert it in to a speech. For this program you need to add Microsoft speech object library reference to your project. And import SpeechLib namespace (using SpeechLib).</p><p> </p><ul> <li data-xf-list-type="ul">First open the Microsoft visual studio IDE and make a new project. Then open the solution explore and right click on the references and select add new reference.</li> <li data-xf-list-type="ul">Then select COM tab and select Microsoft speech object library. Now the refrerence is added to your project.</li> </ul><p> Source Code</p><p></p><p></p><p> <span style="color: blue">[FONT=&quot]using[/FONT]</span>[FONT=&quot] SpeechLib;[/FONT]</p><p></p><p></p><p> [FONT=&quot] <span style="color: blue">public</span> <span style="color: blue">void</span> Speech(<span style="color: blue">string</span> textToSpeech) [/FONT] </p><p> [FONT=&quot] {[/FONT]</p><p> [FONT=&quot] SpeechLib.<span style="color: #2b91af">SpVoice</span> sp =<span style="color: blue"> new</span> <span style="color: #2b91af">SpVoice</span>(); [/FONT]</p><p>[FONT=&quot] s.Speak(textToSpeech);[/FONT]</p><p> [FONT=&quot] }</p><p></p><p><span style="font-size: 10px"><strong>[FONT=&quot]if you have any questions feel free to ask[/FONT]</strong></span></p><p>[/FONT]</p></blockquote><p></p>
[QUOTE="newUser2015, post: 18389511, member: 536050"] This program will read some text enter by user and convert it in to a speech. For this program you need to add Microsoft speech object library reference to your project. And import SpeechLib namespace (using SpeechLib). [LIST] [*]First open the Microsoft visual studio IDE and make a new project. Then open the solution explore and right click on the references and select add new reference. [*]Then select COM tab and select Microsoft speech object library. Now the refrerence is added to your project. [/LIST] Source Code [COLOR=blue][FONT="]using[/FONT][/COLOR][FONT="] SpeechLib;[/FONT] [FONT="] [COLOR=blue]public[/COLOR] [COLOR=blue]void[/COLOR] Speech([COLOR=blue]string[/COLOR] textToSpeech) [/FONT] [FONT="] {[/FONT] [FONT="] SpeechLib.[COLOR=#2b91af]SpVoice[/COLOR] sp =[COLOR=blue] new[/COLOR] [COLOR=#2b91af]SpVoice[/COLOR](); [/FONT] [FONT="] s.Speak(textToSpeech);[/FONT] [FONT="] } [SIZE=2][B][FONT="]if you have any questions feel free to ask[/FONT][/B][/SIZE] [/FONT] [/QUOTE]
Insert quotes…
Verification
Winadiyakata thappara keeyak tibeda?
Post reply
Top
Bottom