How to download the Google translate mp3 from site "http://translate.google.com/translate_tts?tl=en&q=hello+world"
?
I'm using the following code:
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)
{
}
In read completed, I'm getting System.Net.WebException
.
How can I read the mp3 file from that page?
or is there any way to play that mp3 file?