2010-04-09 4 views

답변

3

당신은이에 대한 .NET 3.0가 필요합니다

public void TextToSpeech(string text, string fileName) 
{ 
    using (var stream = File.Create(fileName)) 
    { 
     SpeechSynthesizer speechEngine = new SpeechSynthesizer(); 
     speechEngine.SetOutputToWaveStream(stream); 
     speechEngine.Speak(text); 
     stream.Flush(); 
    } 
} 
관련 문제