Click here to Skip to main content
15,885,875 members
Please Sign up or sign in to vote.
1.00/5 (2 votes)
See more:
C#
using System;
using System.Windows.Forms;
using System.Speech.Synthesis;

namespace Work_report
{
    public partial class texttospeech : Form
    {
        public texttospeech()
        {
            InitializeComponent();
        }

        private void btnconvert_Click(object sender, EventArgs e)
        {
            SpeechSynthesizer sp = new SpeechSynthesizer();
            sp.Volume = 100;
            sp.Rate = 1;
            sp.Speak(txttext.Text);
        }
    }
}
Posted
Updated 7-Jan-15 19:24pm
v2
Comments
ZurdoDev 5-Mar-15 12:10pm    
What is your question?
[no name] 3-Sep-15 8:37am    
i want to create text to voice converter whose i used code upon the given

1 solution

You need to study the comments at https://msdn.microsoft.com/en-us/library/system.speech.synthesis.speechsynthesizer%28v=vs.110%29.aspx[^], and get a valid synthesiser engine for your language.
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900