如何从网站下载谷歌翻译 mp3 "http://translate.google.com/translate_tts?tl=en&q=hello+world"
?
我正在使用以下代码:
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 文件?