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

c - Compilation of a code: unkown type name string -

java - Bypassing "final local variable defined in an enclosing type" -

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