Skip to content
This repository has been archived by the owner on Oct 3, 2024. It is now read-only.

How to convert GSM to MP3 using sox #6

Open
jmaghuyop opened this issue Jun 14, 2017 · 0 comments
Open

How to convert GSM to MP3 using sox #6

jmaghuyop opened this issue Jun 14, 2017 · 0 comments

Comments

@jmaghuyop
Copy link

jmaghuyop commented Jun 14, 2017

Hi. After i'd tried this code to convert GSM to MP3, It was converted successfully but when i tried to play, there's no content.
i cannot directly convert it to wav due to the error of the audio file: WAV:RIFF Header not found
sox -t gsm -r 8000 -c 1 -e signed-integer 003533-dialer-Feb-01-2017-16-00-17-PM.WAV -t wav -e signed-integer 0017.wav

file 0017.wav
0017.wav: RIFF (little-endian) data, WAVE audio, Microsoft PCM, 16 bit, mono 8000 Hz
sample output.
sox 0017.wav -n stat
Samples read: 0
Length (seconds): 0.000000
Scaled by: 2147483647.0
Maximum amplitude: 0.000000
Minimum amplitude: 0.000000
Midline amplitude: 0.000000
Mean norm: -nan
Mean amplitude: -nan
RMS amplitude: -nan
Maximum delta: 0.000000
Minimum delta: 0.000000
Mean delta: -0.000000
RMS delta: -0.000000
Rough frequency: -2147483648
Probably text, not sound

image

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant