# How to specify the audio format for recording?

**URL:** <https://discourse.processing.org/t/how-to-specify-the-audio-format-for-recording/8609>\
**Category:** Libraries\
**Created:** [February 21, 2019, 11:26pm UTC](https://discourse.processing.org/t/how-to-specify-the-audio-format-for-recording/8609 "2019-02-21T23:26:28Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![hollo](https://avatars.discourse-cdn.com/v4/letter/h/a9adbd/32.png) [@hollo](https://discourse.processing.org/u/hollo)\
**Post date:** [February 21, 2019, 11:26pm UTC](https://discourse.processing.org/t/how-to-specify-the-audio-format-for-recording/8609/1 "2019-02-21T23:26:28Z")

</div>

I would like to record audio for a telephony application in 8kHz, uLaw codec but I do not see any method to specify the audio recording format for the record() function (sampling rate, channels, sample bit size, codec)  
Is that possible or I need to postprocess the recording?
