Speech Synthesis

Other topics

Speech Synthesis Example - Hello World

using System;
using System.Speech.Synthesis;
using System.Windows;

namespace Stackoverflow.SpeechSynthesisExample
{
        public partial class SpeechSynthesisSample : Window
        {
                public SpeechSynthesisSample()
                {
                        InitializeComponent();
                        SpeechSynthesizer speechSynthesizer = new SpeechSynthesizer();
                        speechSynthesizer.Speak("Hello, world!");
                }
        }
}

Syntax:

  1. SpeechSynthesizer speechSynthesizerObject = new SpeechSynthesizer();

    speechSynthesizerObject.Speak("Text to Speak");

Contributors

Topic Id: 8368

Example Ids: 26810

This site is not affiliated with any of the contributors.