我用System.Speech.Synthesis做一個(gè)網(wǎng)絡(luò)語音合成的Webservice,服務(wù)端的代碼如下:[WebMethod] public bool tts(string txt, string fileName) { bool result = false; fileName = @"C:\Inetpub\NXUTTS\" + fileName; Speach _speach = new Speach(); _speach.SelectVoice("VW Lily"); if (txt != string.Empty && fileName != string.Empty) { _speach.SpeakOutFile(txt, fileName); result = true; } _speach.Dispose(); return result; }運(yùn)行后,語音文件正常合成,但是新彈出的頁面一直假死,不結(jié)束。
Webservice不響應(yīng)
幕布斯6054654
2018-10-10 06:07:41