# \[Hilo\] How to build and play audio files with HiloV2?

**URL:** <https://forum.sierrawireless.com/t/hilo-how-to-build-and-play-audio-files-with-hilov2/6527>\
**Category:** HL Series FAQ\
**Created:** [July 23, 2013, 3:10am UTC](https://forum.sierrawireless.com/t/hilo-how-to-build-and-play-audio-files-with-hilov2/6527 "2013-07-23T03:10:15Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![FAQ\_Poster](https://avatars.discourse-cdn.com/v4/letter/f/f9ae1b/32.png) [@FAQ\_Poster](https://forum.sierrawireless.com/u/FAQ_Poster)\
**Post date:** [July 23, 2013, 3:10am UTC](https://forum.sierrawireless.com/t/hilo-how-to-build-and-play-audio-files-with-hilov2/6527/1 "2013-07-23T03:10:15Z")

</div>

Answer: Hilo supports 2 kinds of audio files: Sierra Wireless proprietary audio format and AMR format.  
KPLAYSOUND can play Sierra Wireless proprietary audio format file which is stored in “/ftp" folder.  
KPLAYAMR can play AMR format file which is stored in “/ftp" folder also.

For the build of Sierra Wireless proprietary audio format files, please refer to "Appendix 14: How to Build an Audio File”.  
For the build of AMR file, you can get some tools from Internet to transfer mp3 to AMR format.

An example for KPLAYAMR: (AMR format)  
AT+KFSFILE=0,"/ftp/test.amr",102433 ----Store the audio file in /ftp folder  
CONNECT  
OK  
AT+KPLAYAMR=0,“test.amr”,10,1 --Start playing with volume 10, with progress display.  
OK  
+AMR playing : 0%  
+AMR playing : 1%  
+AMR playing : 2%  
…  
AT+KPLAYAMR=2 ----Pause  
OK  
AT+KPLAYAMR=3 ----Resume  
OK  
AT+KPLAYAMR=1 ----Stop  
OK  
AT+KFSFILE=4,"/ftp" —List the files  
+KFSFILE: test.amr 102433  
+KFSFILE: 945433 bytes free  
OK  
AT+KFSFILE=2,"/ftp/test.amr" ----Delete the file  
OK

Another example for KPLAYSOUND: (Sierra Wireless proprietary audio format)  
AT+KFSFILE=0,"/ftp/abc.snd",128 ----To store the audio file in /ftp folder  
CONNECT  
OK  
AT+KPLAYSOUND=0, “abc.snd”, 3, 20 ----Play abc.snd in 3 volume for 20 seconds  
OK  
AT+KPLAYSOUND=0, “abc.snd”, 3, 0 ---- play abc.snd file repetitively  
OK  
AT+KPLAYSOUND=0, “abc.snd”, 3 ---- play abc.snd file for one time  
OK  
AT+KPLAYSOUND=1 ----stop playing  
OK  
AT+KFSFILE=1,"/ftp/abc.snd",128 ----Read the audio file  
CONNECT  
R杅?朥??朥?..  
OK  
AT+KFSFILE=4,"/ftp"  
+KFSFILE: abc.snd 128 ----List the audio file  
+KFSFILE: 1047835 bytes free  
OK  
AT+KFSFILE=2,"/ftp/abc.snd" ----Delete the audio file  
OK
