Giter VIP home page Giter VIP logo

android-alize's People

Contributors

ferrone84 avatar tevamerlin avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

android-alize's Issues

Inaccurate Recognition

I managed to use PCM 16 bit Voice data, Sampling rate is 44100Hz.
The recognition result always get true even the completely different sound data.

Sent with GitHawk

What and where to put Alize core and LIA RAL folders

In the read me section it is mentioned to download both the repositories. I have downloaded and extracted the repositories. Now there are many folder in each project. For example Alize core has include,src and win cfg. Now should I put only the src folder or both src and include folders in {project_root}/alize/src/main/cpp/ . This is not clear in the Read Me section. Same doubt with LIA RAL. There are many folders in LIA RAL. Also what about spro? Please let me know.

About the result score

Hi,
I'd like to ask how can I evaluate the score in the result?
I ran the examples of Alize website and after normalization, the scores are shown as
spk01 -0.269968 0.247707

However, the android-alize result shows score as 40 or 110 when I ran it in android app.
Can you tell me how to interpret the result?

Thanks!

cannot load module file: Android-ALIZE.iml cannot load module file: alize.iml does not exist

I've had this error displayed when i've downloaded the android-alize code from here and put the required files alize-core and LIA_RAL and spro in their locations main/cpp. Then opened the project with android studio.

Previously, i would remove selected modules and then build apk. However i would like to know the reason for this error message and should i ignore it like i have done till now ?

[Edit] Forgot to Sync Gradle files.

Crashing with "UBM not found" when executing alizeSystem.createSpeakerModel(userName);

Stack-trace

04-17 14:29:31.216 5546-5546/com.example.channa.poc_alize W/IInputConnectionWrapper: getTextAfterCursor on inactive InputConnection
04-17 14:29:31.253 5546-5546/com.example.channa.poc_alize W/IInputConnectionWrapper: reportFullscreenMode on inexistent InputConnection
04-17 14:29:31.253 5546-5546/com.example.channa.poc_alize W/IInputConnectionWrapper: finishComposingText on inactive InputConnection
04-17 14:29:33.184 5546-5546/com.example.channa.poc_alize I/System.out: content://com.android.externalstorage.documents/document/primary%3AAudioClipsForSpeakerRecognition%2F1%2Fspeaker_1.wav
04-17 14:29:34.155 5546-5546/com.example.channa.poc_alize W/System.err: AlizeSpkRec.AlizeException: [ Exception 0x7c4ca25480 ]
      message   = "UBM not found"
      source file = /Users/channa/Documents/Projects/Work/Sample Projects/android-alize/alize/src/main/cpp/LIA_RAL/LIA_SpkDet/SimpleSpkDetSystem/src/SimpleSpkDetSystem.cpp
      line number = 869
        at AlizeSpkRec.SimpleSpkDetSystem.createSpeakerModel(Native Method)
        at com.example.channa.poc_alize.SpeakerRecognition.trainSpeakerModel(SpeakerRecognition.java:40)
        at com.example.channa.poc_alize.MainActivity.onActivityResult(MainActivity.java:97)
        at android.app.Activity.dispatchActivityResult(Activity.java:7226)
        at android.app.ActivityThread.deliverResults(ActivityThread.java:4477)
        at android.app.ActivityThread.handleSendResult(ActivityThread.java:4524)
        at android.app.ActivityThread.-wrap22(ActivityThread.java)
        at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1691)
        at android.os.Handler.dispatchMessage(Handler.java:102)
        at android.os.Looper.loop(Looper.java:154)
        at android.app.ActivityThread.main(ActivityThread.java:6692)
        at java.lang.reflect.Method.invoke(Native Method)
        at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:1468)
        at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:1358)
04-17 14:29:34.182 5546-5586/com.example.channa.poc_alize D/mali_winsys: EGLint new_window_surface(egl_winsys_display*, void*, EGLSurface, EGLConfig, egl_winsys_surface**, egl_color_buffer_format*, EGLBoolean) returns 0x3000,  [1440x2560]-format:1
04-17 14:29:34.183 5546-5546/com.example.channa.poc_alize D/ViewRootImpl@52672bd[MainActivity]: MSG_RESIZED_REPORT: ci=Rect(0, 96 - 0, 0) vi=Rect(0, 96 - 0, 0) or=1
    MSG_WINDOW_FOCUS_CHANGED 1

./configure doesn't work in LIA-RAL

Please i want to install Alize but when i run ./configure i following this error
checking for /home/hanane/Bureau/PACK-ALIZE/LIA_RAL-master/../alize-core/lib/libalize_Linux_x86_64.a... no
checking for /home/hanane/Bureau/PACK-ALIZE/LIA_RAL-master/../alize-core/lib/libalize.a... no
configure: error: alize library (libalize.a or libalize_Linux_x86_64) not found - searched in "/home/hanane/Bureau/PACK-ALIZE/LIA_RAL-master/../alize-core/lib

Cannot use raw file to create speaker model

Hi,

I am using a raw audio file to create the speaker model, the code is as following:

            AssetFileDescriptor audioFile = getApplicationContext().getAssets().openFd("raw.wav");

            //Translating from AssetDescriptor to Byte array
            byte[] audio = new byte[(int)audioFile.getLength()];
            audioFile.createInputStream().read(audio);

            // Send audio to the system
            alizeSystem.addAudio(audio);     //only the bytes

            // Train a model with the audio
            System.out.println("Creating speaker model...");
            alizeSystem.createSpeakerModel("speaker1");

The raw.wav file is actually a raw file, I changed the extension to .wav since I put the file in android assets and it only accept some kinds of extensions.

And my alize config file is as following:

distribType			GD
maxLLK				200
minLLK				-200
bigEndian			false
saveMixtureFileFormat		RAW
loadMixtureFileFormat		RAW
loadFeatureFileFormat		RAW
featureServerBufferSize		ALL_FEATURES
featureFilesPath		data/
mixtureFilesPath		data/

MAPAlgo				                MAPOccDep
loadFeatureFileExtension		.prm

After ran the program, I got the exception:

I/System.out: Creating speaker model...
W/System.err: AlizeSpkRec.AlizeException: [ InvalidDataException 0x73732f4c80 ]
W/System.err:   message   = "Wrong number of data"
W/System.err:   source file = /Workspace/alize/android-alize/alize/src/main/cpp/alize-core/src/FeatureFileReaderRaw.cpp
W/System.err:   line number = 98
W/System.err:   fileName =  /data/user/0/com.example.android.voicecamera/files/data/171113_200409.prm
W/System.err:     at AlizeSpkRec.SimpleSpkDetSystem.createSpeakerModel(Native Method)

I traced the FeatureFileReaderRaw.cpp and think it might be the problem of loadFeatureFileVectSize, and add loadFeatureFileVectSize 16 in the config file, and it crashed in addAudio function.

I/System.out: {AssetFileDescriptor: {ParcelFileDescriptor: java.io.FileDescriptor@e58a10a} start=13611864 len=354048}
W/System.err: AlizeSpkRec.AlizeException: [ IOException 0x73732f48c0 ]
W/System.err:   message   = "Failed to parameterize audio file"
W/System.err:   source file = /Workspace/alize/android-alize/alize/src/main/cpp/LIA_RAL/LIA_SpkDet/SimpleSpkDetSystem/src/SimpleSpkDetSystem.cpp
W/System.err:   line number = 558
W/System.err:   fileName =  /data/user/0/com.example.android.voicecamera/files/171113_200822.audio
W/System.err:     at AlizeSpkRec.SimpleSpkDetSystem.addAudio(Native Method)
...
A/libc: Fatal signal 11 (SIGSEGV), code 1, fault addr 0x220140000c in tid 15662 (FinalizerDaemon)

        [ 11-13 14:08:22.978   376:  376 W/         ]
        debuggerd: handling request: pid=15653 uid=10111 gid=10111 tid=15662
Application terminated.

Is there any suggestion that I can do here? Thanks.

SPro version

In the documentation it is mentioned that SPro 5.0 which is available through the given link is not compatible to the project. But I did not find any newer version (revision 155 or higher) of SPro. Can you please share the compatible version of SPro?

Question about createSpeaModel

Hi,
I'm having error in alizeSystem.createSpeaModel. The error message is as following

W/System.err: AlizeSpkRec.AlizeException: [ FileNotFoundException 0x73732f4c80 ]
W/System.err:   message   = ""
W/System.err:   source file = /Users/ra2637/Workspace/alize/android-alize/alize/src/main/cpp/alize-core/src/FileReader.cpp
W/System.err:   line number = 101
W/System.err:   fileName = /data/user/0/com.example.android.voicerecognition/files//171111_073122.norm.prm
W/System.err:     at AlizeSpkRec.SimpleSpkDetSystem.createSpeakerModel(Native Method)
W

It looks like the system would like to read the /data/user/0/com.example.android.voicerecognition/files//171111_073122.norm.prm file and couldn't find it. I am not sure that should I provide the .prm file? or is it because the alize.cfg has wrong setting?

I even tried to change the workDir to /data/data/com.example.android.voicerecognition/files when create the SimpleSpkDetSystem instance, but I still cannot find this file in my device.

I am really lost, I will be appreciated if you could help me out to know what's happened here. I also put my alize.cfg file as following.

distribType			GD
maxLLK				200
minLLK				-200
bigEndian			false
saveMixtureFileFormat		RAW
loadMixtureFileFormat		RAW
loadFeatureFileFormat		SPRO4
featureServerBufferSize		ALL_FEATURES
featureFilesPath		/
mixtureFilesPath		data/

MAPAlgo				                MAPOccDep
loadFeatureFileExtension		.norm.prm

Segmentation Fault When Calling addAudio(short[])

Many thanks to @tevamerlin for adding the new addAudio(short[]) method to support PCM input. Unfortunately, whenever we call this method with any PCM input, we get an immediate SIGSEGV. Can you verify that this method currently works, or might there be a bug in the implementation?

Fatal signal 11 (SIGSEGV), code 2, fault addr 0x7fdf479ff0

Many thanks!

Audio format of alize

Please tell what is the audio format accepted by alize
Little endian or big endian
16 bit PCM SIGNED OR UNSIGNED
8000HZ OR 16000HZ

In alize android will the wav filed converted to byte array should have singed or unsigned bytes

Is theere any sample code to covnvert wav to byte array. i do have some sample code to convert wav to bytes i will check and contribute it they work.

But please help me out with about the specs

about building apk

hi. as told I downloaded core and lıa_ral as zip file.(maybe I understood wrong) then I copy and paste it to cpp with spro. in SimpleSpkDetSystem class <<System.loadLibrary("alize-native"); >> takes place. but I didnot download alize-naitive? and the methods like featurecounts,speakercounts,set option etc. all of them says "cannot resolve corrresponding JNI function".

unfortunately I failed with it. can anybody help me about it. my mail is [email protected]

Errors occurred when compiled the project

Build command failed.
Error while executing process D:\Android\Sdk\cmake\3.6.4111459\bin\cmake.exe with arguments {--build C:\Users\1\Desktop\android-alize-master\alize\.externalNativeBuild\cmake\debug\mips64 --target alize-native}
[1/69] Building CXX object CMakeFiles/alize-native.dir/src/main/cpp/alize-core/src/DistribGF.cpp.o
[2/69] Building CXX object CMakeFiles/alize-native.dir/src/main/cpp/alize-core/src/DistribGD.cpp.o
[3/69] Building CXX object CMakeFiles/alize-native.dir/src/main/cpp/alize-core/src/FeatureFileReaderHTK.cpp.o
[4/69] Building CXX object CMakeFiles/alize-native.dir/src/main/cpp/alize-core/src/FeatureFileReaderSPro4.cpp.o
[5/69] Building CXX object CMakeFiles/alize-native.dir/src/main/cpp/alize-core/src/FeatureFileReaderRaw.cpp.o
[6/69] Building CXX object CMakeFiles/alize-native.dir/src/main/cpp/alize-core/src/FeatureFileReaderSingle.cpp.o
FAILED: D:\Android\Sdk\android-ndk-r12b-windows-x86_64\android-ndk-r12b\toolchains\llvm\prebuilt\windows-x86_64\bin\clang++.exe  -target mips64el-none-linux-android -gcc-toolchain D:/Android/Sdk/android-ndk-r12b-windows-x86_64/android-ndk-r12b/toolchains/mips64el-linux-android-4.9/prebuilt/windows-x86_64 --sysroot=D:/Android/Sdk/android-ndk-r12b-windows-x86_64/android-ndk-r12b/platforms/android-21/arch-mips64  -DHAVE_LIMITS_H -DHAVE_MATH_H -DHAVE_STDLIB_H -DHAVE_SYS_TYPES_H -DHAVE_UNISTD_H -DSIZEOF_LONG=sizeof(long) -DSIZEOF_SHORT=sizeof(short) -DSPRO -DSTDC_HEADERS -Dalize_native_EXPORTS -I../../../../src/main/cpp/spro -I../../../../src/main/cpp/alize-core/include -I../../../../src/main/cpp/LIA_RAL/LIA_SpkTools/include -I../../../../src/main/cpp/LIA_RAL/include/Eigen -I../../../../src/main/cpp/LIA_RAL/include/lapacke -I../../../../src/main/cpp/LIA_RAL/LIA_SpkDet/ComputeJFAStats/include -I../../../../src/main/cpp/LIA_RAL/LIA_SpkDet/ComputeNorm/include -I../../../../src/main/cpp/LIA_RAL/LIA_SpkDet/ComputeTest/include -I../../../../src/main/cpp/LIA_RAL/LIA_SpkDet/CovIntra/include -I../../../../src/main/cpp/LIA_RAL/LIA_SpkDet/EigenChannel/include -I../../../../src/main/cpp/LIA_RAL/LIA_SpkDet/EigenVoice/include -I../../../../src/main/cpp/LIA_RAL/LIA_SpkDet/EnergyDetector/include -I../../../../src/main/cpp/LIA_RAL/LIA_SpkDet/EstimateDMatrix/include -I../../../../src/main/cpp/LIA_RAL/LIA_SpkDet/IvExtractor/include -I../../../../src/main/cpp/LIA_RAL/LIA_SpkDet/IvNorm/include -I../../../../src/main/cpp/LIA_RAL/LIA_SpkDet/IvTest/include -I../../../../src/main/cpp/LIA_RAL/LIA_SpkDet/NormFeat/include -I../../../../src/main/cpp/LIA_RAL/LIA_SpkDet/NormFeatWindowMode/include -I../../../../src/main/cpp/LIA_RAL/LIA_SpkDet/PLDA/include -I../../../../src/main/cpp/LIA_RAL/LIA_SpkDet/RemoteSpkDet/include -I../../../../src/main/cpp/LIA_RAL/LIA_SpkDet/ShiftedDeltaFeat/include -I../../../../src/main/cpp/LIA_RAL/LIA_SpkDet/SimpleSpkDetSystem/include -I../../../../src/main/cpp/LIA_RAL/LIA_SpkDet/SpkAdapt/include -I../../../../src/main/cpp/LIA_RAL/LIA_SpkDet/TotalVariability/include -I../../../../src/main/cpp/LIA_RAL/LIA_SpkDet/TrainTarget/include -I../../../../src/main/cpp/LIA_RAL/LIA_SpkDet/TrainWorld/include -I../../../../src/main/cpp/LIA_RAL/LIA_SpkSeg/AcousticSegmentation/include -I../../../../src/main/cpp/LIA_RAL/LIA_SpkSeg/ReSegmentation/include -I../../../../src/main/cpp/LIA_RAL/LIA_SpkSeg/Segmentation/include -I../../../../src/main/cpp/LIA_RAL/LIA_SpkSeg/TurnDetection/include -I../../../../src/main/cpp/LIA_RAL/LIA_Utils/BNGram/include -I../../../../src/main/cpp/LIA_RAL/LIA_Utils/ExtractParams/include -I../../../../src/main/cpp/LIA_RAL/LIA_Utils/FusionScore/include -I../../../../src/main/cpp/LIA_RAL/LIA_Utils/GmmTokenizer/include -I../../../../src/main/cpp/LIA_RAL/LIA_Utils/Hist/include -I../../../../src/main/cpp/LIA_RAL/LIA_Utils/LabelFusion/include -I../../../../src/main/cpp/LIA_RAL/LIA_Utils/LabelNGram/include -I../../../../src/main/cpp/LIA_RAL/LIA_Utils/PolyExp/include -I../../../../src/main/cpp/LIA_RAL/LIA_Utils/ReadFeatFile/include -I../../../../src/main/cpp/LIA_RAL/LIA_Utils/ReadModel/include -I../../../../src/main/cpp/LIA_RAL/LIA_Utils/Scoring/include -I../../../../src/main/cpp/LIA_RAL/LIA_Utils/SequenceExtractor/include -I../../../../src/main/cpp/LIA_RAL/LIA_Utils/Svm/include -isystem D:/Android/Sdk/android-ndk-r12b-windows-x86_64/android-ndk-r12b/sources/cxx-stl/gnu-libstdc++/4.9/include -isystem D:/Android/Sdk/android-ndk-r12b-windows-x86_64/android-ndk-r12b/sources/cxx-stl/gnu-libstdc++/4.9/libs/mips64/include -isystem D:/Android/Sdk/android-ndk-r12b-windows-x86_64/android-ndk-r12b/sources/cxx-stl/gnu-libstdc++/4.9/include/backward -g -DANDROID -ffunction-sections -funwind-tables -fstack-protector-strong -no-canonical-prefixes -Wa,--noexecstack -Wformat -Werror=format-security -fno-exceptions -fno-rtti -g -DANDROID -ffunction-sections -funwind-tables -fstack-protector-strong -no-canonical-prefixes -Wa,--noexecstack -Wformat -Werror=format-security -fno-exceptions -fno-rtti -fexceptions -O0 -fno-limit-debug-info -O0 -fno-limit-debug-info  -fPIC   -D HAVE_STRING_H -MD -MT CMakeFiles/alize-native.dir/src/main/cpp/alize-core/src/DistribGF.cpp.o -MF CMakeFiles\alize-native.dir\src\main\cpp\alize-core\src\DistribGF.cpp.o.d -o CMakeFiles/alize-native.dir/src/main/cpp/alize-core/src/DistribGF.cpp.o -c C:\Users\1\Desktop\android-alize-master\alize\src\main\cpp\alize-core\src\DistribGF.cpp
C:\Users\1\Desktop\android-alize-master\alize\src\main\cpp\alize-core\src\DistribGF.cpp:133:24: error: cannot use dynamic_cast with -fno-rtti
  const DistribGF* p = dynamic_cast<const DistribGF*>(&d);
                       ^
C:\Users\1\Desktop\android-alize-master\alize\src\main\cpp\alize-core\src\DistribGF.cpp:155:24: error: cannot use dynamic_cast with -fno-rtti
  const DistribGF* p = dynamic_cast<const DistribGF*>(&d);
                       ^
2 errors generated.
FAILED: D:\Android\Sdk\android-ndk-r12b-windows-x86_64\android-ndk-r12b\toolchains\llvm\prebuilt\windows-x86_64\bin\clang++.exe  -target mips64el-none-linux-android -gcc-toolchain D:/Android/Sdk/android-ndk-r12b-windows-x86_64/android-ndk-r12b/toolchains/mips64el-linux-android-4.9/prebuilt/windows-x86_64 --sysroot=D:/Android/Sdk/android-ndk-r12b-windows-x86_64/android-ndk-r12b/platforms/android-21/arch-mips64  -DHAVE_LIMITS_H -DHAVE_MATH_H -DHAVE_STDLIB_H -DHAVE_SYS_TYPES_H -DHAVE_UNISTD_H -DSIZEOF_LONG=sizeof(long) -DSIZEOF_SHORT=sizeof(short) -DSPRO -DSTDC_HEADERS -Dalize_native_EXPORTS -I../../../../src/main/cpp/spro -I../../../../src/main/cpp/alize-core/include -I../../../../src/main/cpp/LIA_RAL/LIA_SpkTools/include -I../../../../src/main/cpp/LIA_RAL/include/Eigen -I../../../../src/main/cpp/LIA_RAL/include/lapacke -I../../../../src/main/cpp/LIA_RAL/LIA_SpkDet/ComputeJFAStats/include -I../../../../src/main/cpp/LIA_RAL/LIA_SpkDet/ComputeNorm/include -I../../../../src/main/cpp/LIA_RAL/LIA_SpkDet/ComputeTest/include -I../../../../src/main/cpp/LIA_RAL/LIA_SpkDet/CovIntra/include -I../../../../src/main/cpp/LIA_RAL/LIA_SpkDet/EigenChannel/include -I../../../../src/main/cpp/LIA_RAL/LIA_SpkDet/EigenVoice/include -I../../../../src/main/cpp/LIA_RAL/LIA_SpkDet/EnergyDetector/include -I../../../../src/main/cpp/LIA_RAL/LIA_SpkDet/EstimateDMatrix/include -I../../../../src/main/cpp/LIA_RAL/LIA_SpkDet/IvExtractor/include -I../../../../src/main/cpp/LIA_RAL/LIA_SpkDet/IvNorm/include -I../../../../src/main/cpp/LIA_RAL/LIA_SpkDet/IvTest/include -I../../../../src/main/cpp/LIA_RAL/LIA_SpkDet/NormFeat/include -I../../../../src/main/cpp/LIA_RAL/LIA_SpkDet/NormFeatWindowMode/include -I../../../../src/main/cpp/LIA_RAL/LIA_SpkDet/PLDA/include -I../../../../src/main/cpp/LIA_RAL/LIA_SpkDet/RemoteSpkDet/include -I../../../../src/main/cpp/LIA_RAL/LIA_SpkDet/ShiftedDeltaFeat/include -I../../../../src/main/cpp/LIA_RAL/LIA_SpkDet/SimpleSpkDetSystem/include -I../../../../src/main/cpp/LIA_RAL/LIA_SpkDet/SpkAdapt/include -I../../../../src/main/cpp/LIA_RAL/LIA_SpkDet/TotalVariability/include -I../../../../src/main/cpp/LIA_RAL/LIA_SpkDet/TrainTarget/include -I../../../../src/main/cpp/LIA_RAL/LIA_SpkDet/TrainWorld/include -I../../../../src/main/cpp/LIA_RAL/LIA_SpkSeg/AcousticSegmentation/include -I../../../../src/main/cpp/LIA_RAL/LIA_SpkSeg/ReSegmentation/include -I../../../../src/main/cpp/LIA_RAL/LIA_SpkSeg/Segmentation/include -I../../../../src/main/cpp/LIA_RAL/LIA_SpkSeg/TurnDetection/include -I../../../../src/main/cpp/LIA_RAL/LIA_Utils/BNGram/include -I../../../../src/main/cpp/LIA_RAL/LIA_Utils/ExtractParams/include -I../../../../src/main/cpp/LIA_RAL/LIA_Utils/FusionScore/include -I../../../../src/main/cpp/LIA_RAL/LIA_Utils/GmmTokenizer/include -I../../../../src/main/cpp/LIA_RAL/LIA_Utils/Hist/include -I../../../../src/main/cpp/LIA_RAL/LIA_Utils/LabelFusion/include -I../../../../src/main/cpp/LIA_RAL/LIA_Utils/LabelNGram/include -I../../../../src/main/cpp/LIA_RAL/LIA_Utils/PolyExp/include -I../../../../src/main/cpp/LIA_RAL/LIA_Utils/ReadFeatFile/include -I../../../../src/main/cpp/LIA_RAL/LIA_Utils/ReadModel/include -I../../../../src/main/cpp/LIA_RAL/LIA_Utils/Scoring/include -I../../../../src/main/cpp/LIA_RAL/LIA_Utils/SequenceExtractor/include -I../../../../src/main/cpp/LIA_RAL/LIA_Utils/Svm/include -isystem D:/Android/Sdk/android-ndk-r12b-windows-x86_64/android-ndk-r12b/sources/cxx-stl/gnu-libstdc++/4.9/include -isystem D:/Android/Sdk/android-ndk-r12b-windows-x86_64/android-ndk-r12b/sources/cxx-stl/gnu-libstdc++/4.9/libs/mips64/include -isystem D:/Android/Sdk/android-ndk-r12b-windows-x86_64/android-ndk-r12b/sources/cxx-stl/gnu-libstdc++/4.9/include/backward -g -DANDROID -ffunction-sections -funwind-tables -fstack-protector-strong -no-canonical-prefixes -Wa,--noexecstack -Wformat -Werror=format-security -fno-exceptions -fno-rtti -g -DANDROID -ffunction-sections -funwind-tables -fstack-protector-strong -no-canonical-prefixes -Wa,--noexecstack -Wformat -Werror=format-security -fno-exceptions -fno-rtti -fexceptions -O0 -fno-limit-debug-info -O0 -fno-limit-debug-info  -fPIC   -D HAVE_STRING_H -MD -MT CMakeFiles/alize-native.dir/src/main/cpp/alize-core/src/DistribGD.cpp.o -MF CMakeFiles\alize-native.dir\src\main\cpp\alize-core\src\DistribGD.cpp.o.d -o CMakeFiles/alize-native.dir/src/main/cpp/alize-core/src/DistribGD.cpp.o -c C:\Users\1\Desktop\android-alize-master\alize\src\main\cpp\alize-core\src\DistribGD.cpp
C:\Users\1\Desktop\android-alize-master\alize\src\main\cpp\alize-core\src\DistribGD.cpp:124:24: error: cannot use dynamic_cast with -fno-rtti
  const DistribGD* p = dynamic_cast<const DistribGD*>(&d);
                       ^
C:\Users\1\Desktop\android-alize-master\alize\src\main\cpp\alize-core\src\DistribGD.cpp:146:24: error: cannot use dynamic_cast with -fno-rtti
  const DistribGD* p = dynamic_cast<const DistribGD*>(&d);
                       ^
2 errors generated.
C:\Users\1\Desktop\android-alize-master\alize\src\main\cpp\alize-core\src\FeatureFileReaderSingle.cpp:366:27: warning: comparison of unsigned expression >= 0 is always true [-Wtautological-compare]
    return _seekWantedIdx >= 0;
           ~~~~~~~~~~~~~~ ^  ~
1 warning generated.
ninja: build stopped: subcommand failed.

How to fix it ? I am the first time to compile a C++ project on Android.

How to use saveSpeakerModel ?

Hi,

How do i use the saveSpeakerModel to save a speaker model and more importantly where will that model be saved and what will be its extension ?

Can i use this function to generate a universal background model by giving as input an audio of multiple speakers and generating the model with createSpeakerModel ?

Thanks @tevamerlin

ExternalSystemException when importing alize-debug.aar to the Android Studio project

Android Studio throws following exception when importing AAR to the project.

com.intellij.openapi.externalSystem.model.ExternalSystemException: 
	at org.jetbrains.plugins.gradle.service.execution.GradleExecutionHelper.execute(GradleExecutionHelper.java:218)
	at com.android.tools.idea.gradle.project.build.invoker.GradleTasksExecutorImpl.invokeGradleTasks(GradleTasksExecutorImpl.java:397)
	at com.android.tools.idea.gradle.project.build.invoker.GradleTasksExecutorImpl.run(GradleTasksExecutorImpl.java:165)
	at com.intellij.openapi.progress.impl.CoreProgressManager$TaskRunnable.run(CoreProgressManager.java:713)
	at com.intellij.openapi.progress.impl.CoreProgressManager.lambda$runProcess$1(CoreProgressManager.java:157)
	at com.intellij.openapi.progress.impl.CoreProgressManager.registerIndicatorAndRun(CoreProgressManager.java:543)
	at com.intellij.openapi.progress.impl.CoreProgressManager.executeProcessUnderProgress(CoreProgressManager.java:488)
	at com.intellij.openapi.progress.impl.ProgressManagerImpl.executeProcessUnderProgress(ProgressManagerImpl.java:94)
	at com.intellij.openapi.progress.impl.CoreProgressManager.runProcess(CoreProgressManager.java:144)
	at com.intellij.openapi.progress.impl.ProgressManagerImpl$2.run(ProgressManagerImpl.java:165)
	at com.intellij.openapi.application.impl.ApplicationImpl$1.run(ApplicationImpl.java:315)
	at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511)
	at java.util.concurrent.FutureTask.run(FutureTask.java:266)
	at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
	at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
	at java.lang.Thread.run(Thread.java:745)

Example .cfg file?

Hello! I was wondering if you could provide the "AlizeDefault.cfg" file that you have in the example code in the readme. Additionally, I was wondering where I could find assets like "gmm/world.gmm".

Thanks.

about the global model world.gmm

Hi,

I’m trying to run the ALIZE android library for speaker verification, i’ve downloaded the library and followed the steps in https://github.com/ALIZE-Speaker-Recognition/android-alize

however, i’m confused regarding the world.gmm file, i know its the universal background model but i don’t know how to generate it.

Edit: I've used another source on the web to generate a universal background model https://appliedmachinelearning.wordpress.com/2017/06/14/voice-gender-detection-using-gmms-a-python-primer/ the male.gmm model was generated following the link. Now, i'm trying to use this male.gmm model for the world.gmm model and use the train_data samples available in the link to perform a demo of speaker verification, however i'm getting the following error,
screen shot 2018-03-17 at 2 55 53 pm

Any help would be much appreciated, Thanks !

File not found exception

I am getting following error while trying to initialize Alizesystem.
My AlizeDefault.cfg file is attached.

AlizeSpkRec.AlizeException: [ FileNotFoundException 0x7f8c8de0c0 ]
11-12 12:50:10.378 19909-19909/com.teamvoicebot.speakerrecognition W/System.err: message = ""
11-12 12:50:10.378 19909-19909/com.teamvoicebot.speakerrecognition W/System.err: source file = G:\android-alize-master\alize\src\main\cpp\alize-core\src\FileReader.cpp
11-12 12:50:10.378 19909-19909/com.teamvoicebot.speakerrecognition W/System.err: line number = 101
11-12 12:50:10.378 19909-19909/com.teamvoicebot.speakerrecognition W/System.err: fileName = /data/user/0/com.teamvoicebot.speakerrecognition/files/./world.gmm
11-12 12:50:10.487 19909-19909/com.teamvoicebot.speakerrecognition W/System.err: at AlizeSpkRec.SimpleSpkDetSystem.initSystem(Native Method)
11-12 12:50:10.487 19909-19909/com.teamvoicebot.speakerrecognition W/System.err: at AlizeSpkRec.SimpleSpkDetSystem.(SimpleSpkDetSystem.java:16)
11-12 12:50:10.487 19909-19909/com.teamvoicebot.speakerrecognition W/System.err: at com.teamvoicebot.speakerrecognition.Main.onCreate(Main.java:62)
11-12 12:50:10.487 19909-19909/com.teamvoicebot.speakerrecognition W/System.err: at android.app.Activity.performCreate(Activity.java:6298)
11-12 12:50:10.487 19909-19909/com.teamvoicebot.speakerrecognition W/System.err: at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1113)
11-12 12:50:10.487 19909-19909/com.teamvoicebot.speakerrecognition W/System.err: at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2608)
11-12 12:50:10.487 19909-19909/com.teamvoicebot.speakerrecognition W/System.err: at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2725)
11-12 12:50:10.487 19909-19909/com.teamvoicebot.speakerrecognition W/System.err: at android.app.ActivityThread.-wrap12(ActivityThread.java)
11-12 12:50:10.487 19909-19909/com.teamvoicebot.speakerrecognition W/System.err: at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1572)
11-12 12:50:10.487 19909-19909/com.teamvoicebot.speakerrecognition W/System.err: at android.os.Handler.dispatchMessage(Handler.java:111)
11-12 12:50:10.487 19909-19909/com.teamvoicebot.speakerrecognition W/System.err: at android.os.Looper.loop(Looper.java:207)
11-12 12:50:10.487 19909-19909/com.teamvoicebot.speakerrecognition W/System.err: at android.app.ActivityThread.main(ActivityThread.java:5896)
11-12 12:50:10.487 19909-19909/com.teamvoicebot.speakerrecognition W/System.err: at java.lang.reflect.Method.invoke(Native Method)
11-12 12:50:10.487 19909-19909/com.teamvoicebot.speakerrecognition W/System.err: at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:789)
11-12 12:50:10.487 19909-19909/com.teamvoicebot.speakerrecognition W/System.err: at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:679)

alize.zip

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.