# AudioRawData PCM parameters

**URL:** <https://devforum.zoom.us/t/audiorawdata-pcm-parameters/63832>\
**Category:** Meeting SDK\
**Created:** [February 5, 2022, 2:42am UTC](https://devforum.zoom.us/t/audiorawdata-pcm-parameters/63832 "2022-02-05T02:42:46Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![sukitha.jayasinghe](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/sukitha.jayasinghe/32/33844_2.png) [@sukitha.jayasinghe](https://devforum.zoom.us/u/sukitha.jayasinghe)\
**Post date:** [February 5, 2022, 2:42am UTC](https://devforum.zoom.us/t/audiorawdata-pcm-parameters/63832/1 "2022-02-05T02:42:46Z")

</div>

Hi All,  
I am accessing raw audio data using AudioRawData::GetBuffer method and dumping it to a file. I want to convert this PCM binary files to wav files using ffmeg command.

```auto
fmpeg -f s16le -ar 32k -ac 1 -i file.pcm file.wav

```

I tried different options but failed to find the correct combination. Can someone point me to the right direction? My question mainly about byte order, resolution and sign of the PCM stream.

Thank You!!!

---

<div class="post-metadata">

**Author:** ![sukitha.jayasinghe](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/sukitha.jayasinghe/32/33844_2.png) [@sukitha.jayasinghe](https://devforum.zoom.us/u/sukitha.jayasinghe)\
**Post date:** [February 5, 2022, 4:17am UTC](https://devforum.zoom.us/t/audiorawdata-pcm-parameters/63832/2 "2022-02-05T04:17:45Z")

</div>

Finally managed to sort the issue, above command is correct. PCM data is 16 bit signed, mono channel and in little endian order. My issue was in file saving format, it has to be in binary format rather text format.

Thank you!!!

---

<div class="post-metadata">

**Author:** ![jon.zoom](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/jon.zoom/32/13495_2.png) [@jon.zoom](https://devforum.zoom.us/u/jon.zoom)\
**Post date:** [February 7, 2022, 11:51pm UTC](https://devforum.zoom.us/t/audiorawdata-pcm-parameters/63832/3 "2022-02-07T23:51:16Z")

</div>

I’m glad to see you were able to figure this out, thanks for sharing the solution!

---

<div class="post-metadata">

**Author:** ![jon.zoom](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/jon.zoom/32/13495_2.png) [@jon.zoom](https://devforum.zoom.us/u/jon.zoom)\
**Post date:** [February 7, 2022, 11:51pm UTC](https://devforum.zoom.us/t/audiorawdata-pcm-parameters/63832/4 "2022-02-07T23:51:23Z")

</div>

Closed on February 7, 2022, 11:51pm UTC


