kevinho / opencore-amr-android Goto Github PK
View Code? Open in Web Editor NEWopencore amr codec for android
License: Apache License 2.0
opencore amr codec for android
License: Apache License 2.0
执行完毕调用AmrEncoder.exit(),时候报的错误,发生的原因暂不清楚,stack上面有说我尝试访问无权访问的地址
if not ,does it need a lot work to support AMR WB
AmrEncoder 初始化的时候应该传什么值? 我想设定dtx的话 。
Trying to load lib /data/app-lib/。。。/libamr-codec.so 0x42c52660
Added shared lib /data/app-lib/。。。/libamr-codec.so 0x42c52660
No JNI_OnLoad found in /data/app-lib/。。。/libamr-codec.so 0x42c52660, skipping init
还是可以播放,不过是杂音,请问下这个是什么原因?
我用录制的PCM数据,然后从新编码amr,播放是成功的正常的
我用我的wav去掉头应该就是pcm数据了,编码amr声音是原来的2倍,被拉长了
I could see there is a sample for ArmFileDecoder. Would be great if there is a sample for ArmFileEncoder as well so that it would be easy to use. Thanks in advance.
I replace demo.amr with my amr file and weird noise plays.. This is my amr file.
dlopen failed: "/data/app/......../lib/arm64/libamr-codec.so" is 32-bit instead of 64-bit
Instabug Issue Number: 3
Instabug Issue URL: https://instabug.com/applications/instabug-ios/issues/3
Instabug Issue Type: bug
Instabug Issue Status: New
Email: [email protected]
Comment:
This is a sample bug. Reported by Instabug.
Location: San Francisco, USA
Device: iPhone 4 / iOS 7.0
Memory: Used: 3084.42 MB, Free: 1000.87 MB
Storage: Used: 25.15 GB, Free: 5.32 GB
Connectivity: Carrier: Verizon, WiFi: Home WiFi
Battery: 80 , Unplugged
App Version: 1.3 (1.3)
Duration: 00:00:08
User Data: You can attach extra data items with each bug reported.
userid = 721899;
username = jack.edward;
Console Log:
This is your app log at the time of reporting the bug.
2014-03-25 16:19:00.111 AppDemo[69166:60b] ViewLoaded
2014-03-25 16:19:00.113 AppDemo[69166:60b] Request completed
2014-03-25 16:19:00.123 AppDemo[69166:60b] User isnt logged in
2014-03-25 16:19:00.213 AppDemo[69166:60b] Login view
Instabug Log:
User Steps:
These are the steps that the user did before sending the bug, all the user touches and interactions are recorded here.
2014-03-25 16:19:00.010 - Application: DidBecomeActive
2014-03-25 16:19:00.213 - Top View: LoginViewController
2014-03-25 16:19:40.817 - Touch: _usernameTextField (UITextField) in LoginViewController
2014-03-25 16:19:42.128 - Touch: (UIKeyboardLayoutStar) in LoginViewController
2014-03-25 16:19:48.828 - Touch: _passwordTextField (UITextField) in LoginViewController
2014-03-25 16:19:49.023 - Touch: (UIKeyboardLayoutStar) in LoginViewController
2014-03-25 16:19:50.011 - Touch: _loginButton (UIButton) in LoginViewController
2014-03-25 16:19:50.111 - Top View: HomeViewController
2014-03-25 16:20:19.322 - Touch: _friendsListButton (UIButton) in HomeViewController
2014-03-25 16:20:20.725 - Top View: FriendsListViewController
2014-03-25 16:21:10.510 - Shake in: FriendsListViewController
The output amr file is noise, not the original music. In addition, the length of music is changed. And I adjust the argument of inbytebuffer as 44100 * 2 * 0.02 * 16 = 3578, the length is right, but the sound also is noise. How should I do?
int byteSize = 3578;
byte[] buff = new byte[byteSize];
int len = AmrEncoder.encode(AmrEncoder.Mode.MR122.ordinal(), buff, outbuff);
Hi,
as I can see, your library support only 'armeabi' and 'armeabi-v7a' architecture. Is it possible to add other architectures like 'x86', 'x86_64', 'mips', 'mips64' and 'arm64_v8a' to support all android devices? Otherwise I cannot really use this library.
Thanks.
pcm转出来的amr声音低沉,貌似是码率问题
Error is
C:\Users\Admin\Desktop\opencore-amr-android-master\opencore-amr-android-master\Codec\amr\src\main>ndk-build
make.exe: *** No rule to make target `jni/opencore/../jni/opencore/../amr_encoder.cpp', needed by `obj/local/arm64-v8a/objs/amr-codec/jni/opencore/__/amr_encoder.o'. Stop.
I need to support higher sample rate (16000) and in AMR NB(Narrow Band)the maximum sample rate is 8000. Would like to know whether is project is only for AMR NB or it has AMR WB(Wide Band) capability also?
你好,我最近在做安卓的语音识别功能。但是为了兼容ios,我这里只能用amr raw格式的。但是百度的语音识别接口要求用pcm格式的语音文件,或者amr wb格式的语音文件。请问下我要怎样将amr raw格式的转换成pcm或者wav格式呢?谢谢!
I have the ios .a lib, and I also need the Android .so lib. but the auther' lib is not generate by the original file. He add some code. and if i use it , i need change the code that used by common(ios and android). so i need a lib*.so generated by original file;
大佬,请教一下这个是什么问题呢
signal 11 (SIGSEGV), code 1 (SEGV_MAPERR), fault addr 0x0
backtrace:
#00 pc 00009044 /data/app/com.cwt.tap-1/lib/arm/libamr-codec.so (cl_ltp+59)
#1 pc 00004dff /data/app/com.cwt.tap-1/lib/arm/libamr-codec.so (cod_amr+1014)
#2 pc 00004751 /data/app/com.cwt.tap-1/lib/arm/libamr-codec.so (GSMEncodeFrame+76)
#3 pc 00003ee9 /data/app/com.cwt.tap-1/lib/arm/libamr-codec.so (AMREncode+80)
#4 pc 00003e2b /data/app/com.cwt.tap-1/lib/arm/libamr-codec.so (Encoder_Interface_Encode+32)
#5 pc 00003cad /data/app/com.cwt.tap-1/lib/arm/libamr-codec.so (Java_io_kvh_media_amr_AmrEncoder_encode+116)
#6 pc 011483b9 /data/app/com.cwt.tap-1/oat/arm/base.odex (offset 0x1081000)
Instabug Issue Number: 3
Instabug Issue URL: https://instabug.com/applications/instabug-ios/issues/3
Instabug Issue Type: bug
Instabug Issue Status: New
Email: [email protected]
Comment:
This is a sample bug. Reported by Instabug.
Location: San Francisco, USA
Device: iPhone 4 / iOS 7.0
Memory: Used: 3084.42 MB, Free: 1000.87 MB
Storage: Used: 25.15 GB, Free: 5.32 GB
Connectivity: Carrier: Verizon, WiFi: Home WiFi
Battery: 80 , Unplugged
App Version: 1.3 (1.3)
Duration: 00:00:08
User Data: You can attach extra data items with each bug reported.
userid = 721899;
username = jack.edward;
Console Log:
This is your app log at the time of reporting the bug.
2014-03-25 16:19:00.111 AppDemo[69166:60b] ViewLoaded
2014-03-25 16:19:00.113 AppDemo[69166:60b] Request completed
2014-03-25 16:19:00.123 AppDemo[69166:60b] User isnt logged in
2014-03-25 16:19:00.213 AppDemo[69166:60b] Login view
Instabug Log:
User Steps:
These are the steps that the user did before sending the bug, all the user touches and interactions are recorded here.
2014-03-25 16:19:00.010 - Application: DidBecomeActive
2014-03-25 16:19:00.213 - Top View: LoginViewController
2014-03-25 16:19:40.817 - Touch: _usernameTextField (UITextField) in LoginViewController
2014-03-25 16:19:42.128 - Touch: (UIKeyboardLayoutStar) in LoginViewController
2014-03-25 16:19:48.828 - Touch: _passwordTextField (UITextField) in LoginViewController
2014-03-25 16:19:49.023 - Touch: (UIKeyboardLayoutStar) in LoginViewController
2014-03-25 16:19:50.011 - Touch: _loginButton (UIButton) in LoginViewController
2014-03-25 16:19:50.111 - Top View: HomeViewController
2014-03-25 16:20:19.322 - Touch: _friendsListButton (UIButton) in HomeViewController
2014-03-25 16:20:20.725 - Top View: FriendsListViewController
2014-03-25 16:21:10.510 - Shake in: FriendsListViewController
First of all, thank you very much for making this library. I really appreciate it.
The AmrDecoder requires the 6 byte .amr file header of "23 21 41 4D 52 0A" "#!amr." to be removed when decoding .amr files. Otherwise the decoded pcm, sounds something like alien morse code. When you remove it, the decoded pcm sounds fine. Not difficult to manually in a hex editor or skip in an android app but maybe it would be nice to tell people about.
(The demo.amr included in the repository has the header in it so I was a bit confused why the demo sounded like alien morse code.)
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.