# Change default audio extension/format for playback

**URL:** <https://community.asterisk.org/t/change-default-audio-extension-format-for-playback/3509>\
**Category:** Asterisk Support\
**Created:** [January 6, 2006, 10:48am UTC](https://community.asterisk.org/t/change-default-audio-extension-format-for-playback/3509 "2006-01-06T10:48:45Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![neilb](https://avatars.discourse-cdn.com/v4/letter/n/8c91f0/32.png) [@neilb](https://community.asterisk.org/u/neilb)\
**Post date:** [January 6, 2006, 10:48am UTC](https://community.asterisk.org/t/change-default-audio-extension-format-for-playback/3509/1 "2006-01-06T10:48:45Z")

</div>

If I have vm-intro.gsm and vm-intro.wav in the sounds directory (ie same filename apart from extension), and play vm-intro, asterisk will by default play the gsm file. If I move the gsm file aside it will pick up the .wav file and play that.

Is there a way I can change this default so that it will try .wav first, and then .gsm?

And don’t worry, I do know that the real answer is “don’t have .wav and .gsm files in your sounds directory” 😄  
I’m curious whether I can change the behaviour.

thanks,  
Neil

---

<div class="post-metadata">

**Author:** ![jpatten](https://avatars.discourse-cdn.com/v4/letter/j/e36b37/32.png) [@jpatten](https://community.asterisk.org/u/jpatten)\
**Post date:** [January 9, 2006, 8:35am UTC](https://community.asterisk.org/t/change-default-audio-extension-format-for-playback/3509/2 "2006-01-09T08:35:20Z")

</div>

[quote=“neilb”]If I have vm-intro.gsm and vm-intro.wav in the sounds directory (ie same filename apart from extension), and play vm-intro, asterisk will by default play the gsm file. If I move the gsm file aside it will pick up the .wav file and play that.  
[/quote]

You are using gsm codec for voice coding, right? As far as I know, \* shuld use file which doesn’t need transcoding.
