title: Get sound from a URL with Java
body: <p>I'm learning english and I'd like to develop a software to help me with the pronunciation.</p>
  
  <p>There is a site called HowJSay, if you enter here: <a href="http://www.howjsay.com/index.php?word=car" rel="nofollow">http://www.howjsay.com/index.php?word=car</a>
  immediatly you'll hear the pronunciation of the word car . I'd like to develop a software in JAVA that could play this sound without necessity of enter in the site =]</p>
  
  <p>I tried this, but doesn't work =/</p>
  
  <pre><code>public static void main(String[] args) throws Exception {
      URL url = new URL("http://www.howjsay.com/index.php?word=car");
      url.openConnection();
      AudioStream as = new AudioStream(url.openStream());
      AudioPlayer.player.start(as);
      AudioPlayer.player.stop(as);
  }
  </code></pre>
  
  <p>Any Ideas? Please.</p>