c# - Speech in using System.Speech.Synthesis is not recognized. -



c# - Speech in using System.Speech.Synthesis is not recognized. -

i'm trying utilize speech synthesis function universal app. looked @ microsoft documentation , says name space system.speech.synthesis. however, when type system.speech.synthesis. says speech not recognized. doing wrong?

here working example:

using system.speech.synthesis; static void main(string[] args) { ... // speech helper speechsynthesizer reader = new speechsynthesizer(); const string msg = "hello"; console.writeline(msg); reader.speakasync(msg); }

also, create sure referencing 'system.speech':

c# win-universal-app speech-synthesis

Comments

Popular posts from this blog

Delphi change the assembly code of a running process -

json - Hibernate and Jackson (java.lang.IllegalStateException: Cannot call sendError() after the response has been committed) -

C++ 11 "class" keyword -