Inquiry:How to convert .wav sound files to .gsm format with sox utility
Linux - NewbieThis Linux forum is for members that are new to Linux.
Just starting out and have a question?
If it is not in the man pages or the how-to's this is the place!
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
Inquiry:How to convert .wav sound files to .gsm format with sox utility
Dear All
Can you please do me favor and let me know how can I convert .wav sound files to .gsm format as I have an application for this usage ? Please be informed that I have made use of the sox utility for this purpose , as the followings , but it didn't get through :
#sox FR00003.wav -r 8000 -c 1 FR0003.gsm resample -ql
Can you please let me know what is the problem in my case ?
Regards
H.Motamedi
Did you get an error message using the command above or is it just the quality of the output file not good? What if you try without any option?
Code:
sox FR00003.wav FR0003.gsm
Please, can you post the output of the following command (to see the sampling rate of the original wave file)?
Code:
file FR00003.wav
Thank you for your reply . Please find below the reuested info :
"[root@statsvr zaptel-1.4.12.1]# file /usr/local/src/FR00003.wav
/usr/local/src/FR00003.wav: RIFF (little-endian) data, WAVE audio, ITU G.711 A-law, mono 8000 Hz"
Thank you for your reply . Please find below the reuested info :
"[root@statsvr zaptel-1.4.12.1]# file /usr/local/src/FR00003.wav
/usr/local/src/FR00003.wav: RIFF (little-endian) data, WAVE audio, ITU G.711 A-law, mono 8000 Hz"
The wave file already is mono and 8kHZ, so that you don't need the -c1 and -r8000 options respectively. Have you tried without any option? What is the quality of the output file? Another question: which Linux OS are you running the sox command on?
The wave file already is mono and 8kHZ, so that you don't need the -c1 and -r8000 options respectively. Have you tried without any option? What is the quality of the output file? Another question: which Linux OS are you running the sox command on?
Thank you very much for your reply . Please be informed that I run the command without any option and it seems that it gets through . The sizes of the *.gsm converted files are as :
sizes : 4752 bytes & 5841 bytes
Can you please confirm if they are correctly converted ?
Please be informed that my client Linux OS is of CentOS 5 .
Thank you very much for your reply . Please be informed that I run the command without any option and it seems that it gets through . The sizes of the *.gsm converted files are as :
sizes : 4752 bytes & 5841 bytes
Can you please confirm if they are correctly converted ?
Well... it's difficult to tell just knowing the size of the output file. If the sox command didn't throw any error message, most likely the conversion succeeded. You can test the quality of the result using the play command provided by the sox package:
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.