0
如何從網站"http://translate.google.com/translate_tts?tl=en&q=hello+world"
下載Google翻譯mp3?在windows phone 7中,如何從網站「http://translate.google.com/translate_tts?tl=en&q=hello+world」下載谷歌翻譯mp3?
我用下面的代碼:
WebClient wc = new WebClient();
wc.Encoding = Encoding.UTF8;
wc.AllowReadStreamBuffering = true;
wc.OpenReadCompleted += WcOpenReadCompleted;
wc.OpenReadAsync(new Uri("http://translate.google.com/translate_tts?tl=en&q=hello+world", UriKind.Absolute));
void WcOpenReadCompleted(object sender, OpenReadCompletedEventArgs e)
{
}
在讀取完成後,我越來越System.Net.WebException
。
如何從該頁面讀取mp3文件?
還是有什麼辦法播放該mp3文件?
又是什麼異常說呢? WebException中的錯誤消息通常很不錯... – 2010-12-17 07:14:47