-
Notifications
You must be signed in to change notification settings - Fork 295
Closed
Description
java.io.IOException: Server returned HTTP response code: 403 for URL: http://translate.google.com/translate_a/t?client=thello+world
You should look into this.
Code:
String language = "auto";
Synthesiser synth = new Synthesiser(language);
try {
InputStream is = synth.getMP3Data(output);
AudioStream audioStream = new AudioStream(is);
AudioPlayer.player.start(audioStream);
//TODO Use any Java MP3 Implementation to play back the AudioFile from the InputStream.
}
catch (Exception e) {
// TODO Auto-generated catch block
System.out.println("Error");
e.printStackTrace();
return;
}
Metadata
Metadata
Assignees
Labels
No labels