We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Mp3Encoder.Options options = new Mp3Encoder.Options() .sampleRate(24000) .bitrate(128) .numChannels(1) .quality(5) .mode(Mp3Encoder.Options.MONO);
wav的格式为 channel 1 bitNumber 16 sampleRate 24000
The text was updated successfully, but these errors were encountered:
找到解决办法了: https://stackoverflow.com/questions/16926725/audio-speed-changes-on-converting-wav-to-mp3 转换单声道wav要在mp3_encoder.c中做以下修改 sizeof(short int) * 2 -> sizeof(short int) lame_encode_buffer_interleaved(...) -> lame_encode_buffer(gf, wav_buffer, NULL, read, mp3_buffer, 8192)
sizeof(short int) * 2
sizeof(short int)
lame_encode_buffer_interleaved(...)
lame_encode_buffer(gf, wav_buffer, NULL, read, mp3_buffer, 8192)
Sorry, something went wrong.
谢谢,有时间了我改下
4332weizi
No branches or pull requests
Mp3Encoder.Options options = new Mp3Encoder.Options()
.sampleRate(24000)
.bitrate(128)
.numChannels(1)
.quality(5)
.mode(Mp3Encoder.Options.MONO);
wav的格式为
channel 1
bitNumber 16
sampleRate 24000
The text was updated successfully, but these errors were encountered: