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
Post a Comment