# Playing encoded audio!

**URL:** <https://forum.kirupa.com/t/playing-encoded-audio/320379>\
**Category:** Uncategorized\
**Created:** [March 22, 2011, 7:24am UTC](https://forum.kirupa.com/t/playing-encoded-audio/320379 "2011-03-22T07:24:18Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![patsla](https://avatars.discourse-cdn.com/v4/letter/p/96bed5/32.png) [@patsla](https://forum.kirupa.com/u/patsla)\
**Post date:** [March 22, 2011, 7:24am UTC](https://forum.kirupa.com/t/playing-encoded-audio/320379/1 "2011-03-22T07:24:18Z")

</div>

Hi all,

I have been trying in vain to play speex encoded sound. It is really frustrating.

I record the microphone audio and encode it using speex codec. The rate used is 16kHz when I use speex and I cant change this. I want to play this recorded audio. Using Sound object I cant play this audio well, bcoz it requires the audio to be in 44.1kHz.

“How can I play sound that is speex encoded and stored in ByteArray??”

I have been searching for any related articles or topics, but did not find any. Please help!

Regards,  
Pat
