22 de abril de 2017

Convertir el Texto a Voz en C Sharp


Un Video Tutorial donde muestro como convertir el texto a voz en un proyecto de Visual Studio con el lenguaje de programación C Sharp.



Código Fuente

1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Forms;
using System.Speech.Synthesis;
using System.Threading;

namespace TextoVoz
{
    public partial class Form1 : Form
    {
        public Form1()
        {
            InitializeComponent();
        }

        private void bthablar_Click(object sender, EventArgs e)
        {
            Thread tarea = new Thread(new ParameterizedThreadStart(hablar));
            tarea.Start(rtexto.Text);
        }

        private void hablar(object texto)
        {
            SpeechSynthesizer voz = new SpeechSynthesizer();
            voz.SetOutputToDefaultAudioDevice();
            voz.Speak(texto.ToString());
        }
    }
}

Reacciones:

3 comentarios:

  1. Hola a todos, He sido renuente a comprar esta tarjeta de cajero en blanco que he oído hablar en línea porque todo parece demasiado bueno para ser verdad, pero me convenció y sorprendió cuando mi amigo en mi lugar de trabajo recibió la tarjeta de América Express Hackers & we ambos lo confirmaron si realmente funciona .. Verdaderamente, la tarjeta trabajó y sin demora lo probé también. Desde entonces he estado retirando $ 10.000 diarios de la tarjeta y el dinero ha estado en mi propia cuenta. Estoy contento de haber dado un intento en el último y esta tarjeta ha cambiado mi vida financieramente sin ser atrapado, es real y realmente funciona y me hizo rico! En lugar de obtener un préstamo, le aconsejaré obtener esta tarjeta de cajero automático en blanco ahora! Este ciudadano de Carmella Raymond de Estados Unidos. Póngase en contacto con los hackers a través de correo electrónico y texto para obtener más información.

    Correo electrónico: americaexpresscard@hotmail.com
    Número de Celular: +1 (518) 460-6400

    ResponderEliminar
  2. FINANCIAL BREAKTHROUGH

    Life indeed is GRACE, I'am Daan Sophia currently in California USA. I would like to share my experience with you guys on how I got a loan of $185,000.00 USD to clear my bank draft and start up a new business. It all started when i lost my home and belongings due to the bank draft I took to offset some bills and some personal needs. I became so desperate and began to seek for funds at all means. Luckily for me I heard a colleague of mine talking about this company, I got interested although i was scared of being scammed, I was compelled by my situation and had no choice than to seek advise from my friend regarding this very company and was given their contact number, getting intouch with them really made me skeptical due to my past experience with online lenders, little did i know this very Company "PROGRESSIVE LOAN INC. was a godsent to me and my family and the entire Internet World, this company has been of great help to me and some of my colleague and today am a proud owner of well organized business and responsibilities are well handled all thanks to Josef Lewis of (progresiveloan@yahoo.com).. So if really you are genuinely in need of a loan either to expand or start up your own business or in any form of financial difficulty, i advise you give Mr Josef Lewis of Progressive loan the opportunity of financial upliftment in your life Email: progresiveloan@yahoo.com OR Call/Text +1(603) 786-7565 and not fall victim of online scam in the name of getting a loan. thanks


    ResponderEliminar

  3. ALL THANKS TO UPSTART LOAN AM NOW FINANCIALLY STABLE . upstartloan@yahoo.com
    I am Michelle Huxford from Casper, Wyoming. I was in a very chronic financial issue and terminal health situation some few weeks back. After all my search for assistance from friends and neighbors proved abortive, I feel there was no one who truly cares. I became so emaciated due to lack of good food and my 2 kids age 5 and 8 were not also good looking due to lack of proper care as a result of finance. One faithful morning I saw an old time friend of my late husband and I told him all I have been going through and he said the only way he could help was to direct me to a good loan agency that also helped him, He explained to me on how he was financially down and how he got boosted by this loan agency UPSTART LOAN INC ( upstartloan@yahoo.com ) who grant him 245,000 USD loan at an affordable rate. He further assured me that they were the only legit loan firm he found in the quest of seeking for loan after been scammed by various fake loan lenders online. He gave me their email: upstartloan@yahoo.com or text/call (574) 301-1639, That was how i applied and was also granted a loan and my life changed for the good. CONTACT THE ONLY GENUINE LENDERS( UPSTART LOAN INC) VIA email: upstartloan@yahoo.com or call +1 (574) 301-1639 to resolve your financial mess. _)(

    ResponderEliminar