Question: how to convert .wave faile to .au file using java sound in aim to get an au file smaller than wave file? when i convert wave to au by the audiosystem.write i got an au file but with same size of the wave file , and i am looking for a compressed file

Answer: I dont know how to change the format in java.sound, I assume there must be a method to change the encoding type of the contained sound signal.\n\nI've found that the .au format has many encoding options.\n\nfrom ref 1:\nThe supported format is described in the 4th word of the header. The options are: \n\n1 = 8 bit ISDN u-law\n2 = 8 bit linear PCM\n3 = 16 bit linear PCM\n4 = 24 bit linear PCM\n5 = 32 bit linear PCM\n6 = 32 bit IEEE floating point\n7 = 64 bit IEE floating point\n23 = 4 bit CCITT G721 ADPCM\n24 = CCITT G722 ADPCM\n25 = CCITT G723 ADPCM\n26 = 5 bit CCITT G723 ADPCM\n27 = 8 bit ISDN a-law\n\nCheck to see if before you write the audiostream you have an option to change the encoding scheme.
This question from the Yahoo Q&A forum is categorized in the topic: Society & Culture