SpeakTextExample error.

57 views
Skip to first unread message

David M.

unread,
Jul 30, 2013, 11:07:57 PM7/30/13
to microsoft-tran...@googlegroups.com
I'm trying to get the SpeakTextExample error and I'm having some errors. Here's the output:

java>java -cp microsoft-tran
slator-java-api-0.6.2-jar-with-dependencies.jar; SpeakTextExample

http://api.microsofttranslator.com/V2/http.svc/Speak?appId=Bearer+http%253a%252f
%252fschemas.xmlsoap.org%252fws%252f2005%252f05%252fidentity%252fclaims%252fname
identifier%3dDMTest%26http%253a%252f%252fschemas.microsoft.com%252faccesscontrol
service%252f2010%252f07%252fclaims%252fidentityprovider%3dhttps%253a%252f%252fda
tamarket.accesscontrol.windows.net%252f%26Audience%3dhttp%253a%252f%252fapi.micr
osofttranslator.com%26ExpiresOn%3d1375240397%26Issuer%3dhttps%253a%252f%252fdata
market.accesscontrol.windows.net%252f%26HMACSHA256%3dFYG4xy9KIPgxnLf0P2Nu5cofMly
emFQiXEpWSvfVuns%253d&text=Did+you+enjoy+the+2011+Cricket+World+Cup%3f&language=
en-in
Exception in thread "main" java.io.IOException: mark/reset not supported
        at sun.net.www.http.KeepAliveStream.reset(KeepAliveStream.java:125)
        at java.io.FilterInputStream.reset(FilterInputStream.java:226)
        at sun.net.www.protocol.http.HttpURLConnection$HttpInputStream.reset(Htt
pURLConnection.java:2930)
        at com.sun.media.sound.SoftMidiAudioFileReader.getAudioInputStream(SoftM
idiAudioFileReader.java:135)
        at javax.sound.sampled.AudioSystem.getAudioInputStream(AudioSystem.java:
1111)
        at SpeakTextExample.playClip(SpeakTextExample.java:82)
        at SpeakTextExample.main(SpeakTextExample.java:61)

Any thoughts?
Reply all
Reply to author
Forward
0 new messages