jasperg / talkiewalkie Goto Github PK
View Code? Open in Web Editor NEWAndroid application for PTT voice communication using Opus 1.1.4
Android application for PTT voice communication using Opus 1.1.4
hi, When build “armeabi” libtalkwalkopus.so ,I catch an error. Other abi is sucess build,
ENV:
Android studio 2.3.1 for mac
android-ndk-r14b
android-ndk-r13b
android-ndk-r11b
other ndk version be tried,the same result,what wrong?
The build log as follow, holp to help me ,thanks very much !
:talkiewalkie:generateJsonModelDebug UP-TO-DATE
:talkiewalkie:externalNativeBuildDebug
building /work_studio/android/TalkieWalkie-master/talkiewalkie/build/intermediates/ndkBuild/debug/obj/local/mips64/libtalkwalkopus.so
building /work_studio/android/TalkieWalkie-master/talkiewalkie/build/intermediates/ndkBuild/debug/obj/local/mips/libtalkwalkopus.so
building /work_studio/android/TalkieWalkie-master/talkiewalkie/build/intermediates/ndkBuild/debug/obj/local/x86_64/libtalkwalkopus.so
building /work_studio/android/TalkieWalkie-master/talkiewalkie/build/intermediates/ndkBuild/debug/obj/local/x86/libtalkwalkopus.so
building /work_studio/android/TalkieWalkie-master/talkiewalkie/build/intermediates/ndkBuild/debug/obj/local/arm64-v8a/libtalkwalkopus.so
building /work_studio/android/TalkieWalkie-master/talkiewalkie/build/intermediates/ndkBuild/debug/obj/local/armeabi-v7a/libtalkwalkopus.so
building /work_studio/android/TalkieWalkie-master/talkiewalkie/build/intermediates/ndkBuild/debug/obj/local/armeabi/libtalkwalkopus.so
fatal error: error in backend: Cannot select: 0x7fcc26189720: i32 = ARMISD::SSAT 0x7fcc26114490, Constant:i32<15>
0x7fcc26114490: i32 = sra 0x7fcc261178e0, Constant:i32<1>
0x7fcc261178e0: i32 = add 0x7fcc26116d10, Constant:i32<1>
...
0x7fcc26114a40: i32 = Constant<15>
In function: silk_noise_shape_quantizer_del_dec
clang: error: clang frontend command failed with exit code 70 (use -v to see invocation)
Android clang version 3.8.275480 (based on LLVM 3.8.275480)
Target: armv5te-none-linux-android
Thread model: posix
InstalledDir: /Users/huanghuorong3/Library/Android/sdk/ndk-bundle/toolchains/llvm/prebuilt/darwin-x86_64/bin
clang: note: diagnostic msg: PLEASE submit a bug report to http://llvm.org/bugs/ and include the crash backtrace, preprocessed source, and associated run script.
make: *** [/work_studio/android/TalkieWalkie-master/talkiewalkie/build/intermediates/ndkBuild/debug/obj/local/armeabi/objs-debug/talkwalkopus/silk/NSQ_del_dec.o] Error 70
:talkiewalkie:externalNativeBuildDebug FAILED
FAILURE: Build failed with an exception.
Build command failed.
Error while executing '/Users/huanghuorong3/Library/Android/sdk/ndk-bundle/ndk-build' with arguments {NDK_PROJECT_PATH=null APP_BUILD_SCRIPT=/work_studio/android/TalkieWalkie-master/talkiewalkie/src/main/jni/Android.mk NDK_APPLICATION_MK=/work_studio/android/TalkieWalkie-master/talkiewalkie/src/main/jni/Application.mk APP_ABI=armeabi NDK_ALL_ABIS=armeabi NDK_DEBUG=1 APP_PLATFORM=android-14 NDK_OUT=/work_studio/android/TalkieWalkie-master/talkiewalkie/build/intermediates/ndkBuild/debug/obj NDK_LIBS_OUT=/work_studio/android/TalkieWalkie-master/talkiewalkie/build/intermediates/ndkBuild/debug/lib /work_studio/android/TalkieWalkie-master/talkiewalkie/build/intermediates/ndkBuild/debug/obj/local/armeabi/libtalkwalkopus.so}
[armeabi] Compile thumb : talkwalkopus <= bands.c
[armeabi] Compile thumb : talkwalkopus <= NSQ.c
[armeabi] Compile thumb : talkwalkopus <= NSQ_del_dec.c
fatal error: error in backend: Cannot select: 0x7fcc26189720: i32 = ARMISD::SSAT 0x7fcc26114490, Constant:i32<15>
0x7fcc26114490: i32 = sra 0x7fcc261178e0, Constant:i32<1>
...
0x7fcc26114a40: i32 = Constant<15>
In function: silk_noise_shape_quantizer_del_dec
clang: error: clang frontend command failed with exit code 70 (use -v to see invocation)
Android clang version 3.8.275480 (based on LLVM 3.8.275480)
Target: armv5te-none-linux-android
Thread model: posix
InstalledDir: /Users/huanghuorong3/Library/Android/sdk/ndk-bundle/toolchains/llvm/prebuilt/darwin-x86_64/bin
clang: note: diagnostic msg: PLEASE submit a bug report to http://llvm.org/bugs/ and include the crash backtrace, preprocessed source, and associated run script.
make: *** [/work_studio/android/TalkieWalkie-master/talkiewalkie/build/intermediates/ndkBuild/debug/obj/local/armeabi/objs-debug/talkwalkopus/silk/NSQ_del_dec.o] Error 70
Hello,
In file Output.java it seem that the bufferSize can be wrong because of wrong use of Configuration.AUDIO_CHANNEL_IN:
final int bufferSize = AudioTrack.getMinBufferSize(Configuration.AUDIO_SAMPLERATE, Configuration.AUDIO_CHANNEL_IN, Configuration.AUDIO_FORMAT);
FIX with:
final int bufferSize = AudioTrack.getMinBufferSize(Configuration.AUDIO_SAMPLERATE, Configuration.AUDIO_CHANNEL_OUT, Configuration.AUDIO_FORMAT);
Hello,
If you run with android 6 or later you have to ask for the RECORD_AUDIO permission at runtime.
Otherwise Input fail when create AudioRecord.
FIX:
if(android.os.Build.VERSION.SDK_INT >= android.os.Build.VERSION_CODES.M)
requestPermissions(new String[]{Manifest.permission.RECORD_AUDIO}, 0);
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.