How to write an application that reads text and delivers speech

I am an IT student. I want to write a web browser for the blind. How can I use C # or java to write an application to pronounce some text from an XML file (Text to Speech)?

+3
source share
4 answers

You can use the SpeechSynthesizer class from the .Net Framework:

  • Add link to System.Speech.dll
  • Add using statement for System.Speech.Synthesis
  • Use this code:

    SpeechSynthesizer synthesizer = new SpeechSynthesizer();
    synthesizer.Speak("Hello world! How are you?");
    
+3
source

For .NET, check out the Speech APIs . Here is a brief introduction to it here .

Hope this is enough to get you started.

+2
+1

Java " ", - , . - - ( , .NET ), Windows TTS , , -.

.NET Speech API Internet Explorer, -. , Windows.

0

Source: https://habr.com/ru/post/1717016/