Buscar..


Introducción

En el ensamblado System.Speech , Microsoft ha agregado Speech Synthesis , la capacidad de transformar texto en palabras habladas.

Sintaxis

  1. SpeechSynthesizer speechSynthesizerObject = new SpeechSynthesizer ();

    speechSynthesizerObject.Speak ("Text to Speak");

Ejemplo de síntesis de voz - Hola mundo

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!");
                }
        }
}


Modified text is an extract of the original Stack Overflow Documentation
Licenciado bajo CC BY-SA 3.0
No afiliado a Stack Overflow