I am new to Audio technology. I am trying to create AudioInputStream from compressed Audio Byte array, but its not working as expected, its returning 0's only.
Asked
Active
Viewed 639 times
-2
-
any help regarding AudioInputStream would be helpful. – Rajj Oct 19 '13 at 17:20
-
1Post your code. What type of compressed data is? Wav or Mp3 or any other? – nullptr Oct 19 '13 at 17:22
-
1For better help sooner, post an [SSCCE](http://sscce.org/). – Andrew Thompson Oct 19 '13 at 17:23
-
I am getting audio data compressed by speex codec. – Rajj Oct 19 '13 at 17:26
-
Code is very simple, I am just reading data from socket and trying to create audio input stream. – Rajj Oct 19 '13 at 17:27
-
You should use some sound SPI to decode speex. I don't think java.sound can decode speex. – nullptr Oct 19 '13 at 17:41
1 Answers
-1
okay, the solutions is you should decompress it and then you should create audio input stream.

Rajj
- 101
- 7
-
1It's something like I'm sending you a chocolate with wrapper and you are eating it without removing wrapper. Isn't it part of common sense to remove wrapper before eating a chocolate !!! – kAmol Feb 02 '16 at 10:10