QuickLyric / fpcalc-android

Use chromaprint library easily on Android with fpcalc-android
Other
13 stars 6 forks source link

implementation 'com.github.QuickLyric:fpcalc-android:1.0.1' #8

Open rodgarcialima opened 5 years ago

rodgarcialima commented 5 years ago

Hi all,

I'm trying to use the lib, but I don't think it is available on any repository.

Can you help me?

Thank you,

Rod

endybits commented 5 years ago

Hi. I also have the same problem. I'd like to know if you could solve it.

amCap1712 commented 5 years ago

Hi, @endyleon @rodgarcialima I too was facing the same problem. I used JitPack to solve it. Here's is the direct link QuickLyric FpCalc Android .

endybits commented 5 years ago

@amCap1712,, I am doing something bad. Your suggest was well. But i have the following error: image Tell me please if you know about it-

amCap1712 commented 5 years ago

@endyleon I don't think there is an error. I would suggest you to try fingerprinting the audio file you want to. It works fine for me. If any error persists, sharing the code if you can would help to debug the issue.

endybits commented 5 years ago

@amCap1712 look at the three lines above of the logcat... This is the code that generate the logcat output: String[] args ={"-version"}; String res =FpCalc.fpCalc(args); Log.d("-VERSION", res );

endybits commented 5 years ago

This is my out:

2019-08-03 23:31:09.984 6729-6729/? I/ple.chromafpca: Late-enabling -Xcheck:jni 2019-08-03 23:31:10.019 6729-6729/? I/ple.chromafpca: report jit thread pid = 6740 2019-08-03 23:31:10.289 6729-6729/com.example.chromafpcal W/ple.chromafpca: JIT profile information will not be recorded: profile file does not exits. 2019-08-03 23:31:10.293 6729-6729/com.example.chromafpcal I/chatty: uid=10247(com.example.chromafpcal) identical 10 lines 2019-08-03 23:31:10.293 6729-6729/com.example.chromafpcal W/ple.chromafpca: JIT profile information will not be recorded: profile file does not exits. 2019-08-03 23:31:10.336 6729-6729/com.example.chromafpcal I/InstantRun: starting instant run server: is main process 2019-08-03 23:31:10.537 6729-6729/com.example.chromafpcal I/DecorView: createDecorCaptionView >> DecorView@e4c3cd9[], isFloating: false, isApplication: true, hasWindowDecorCaption: false, hasWindowControllerCallback: true 2019-08-03 23:31:10.680 6729-6729/com.example.chromafpcal W/ple.chromafpca: Accessing hidden method Landroid/view/View;->computeFitSystemWindows(Landroid/graphics/Rect;Landroid/graphics/Rect;)Z (light greylist, reflection) 2019-08-03 23:31:10.683 6729-6729/com.example.chromafpcal W/ple.chromafpca: Accessing hidden method Landroid/view/ViewGroup;->makeOptionalFitsSystemWindows()V (light greylist, reflection)

I don't know the found of my problem.

amCap1712 commented 5 years ago

@endyleon It seems that there is some error with -version parameter. I used the library to fingerprint an audio file and it works fine but trying the version info crashes it.

endybits commented 5 years ago

@amCap1712, can you share me your code fragment to fingerprint an audio file?

endybits commented 5 years ago

Another question... In addition to importing into gradle files (as you recommended), is it necessary to perform other steps?

endybits commented 5 years ago

@amCap1712 what architecture has your mobile or emulador?

diegopefm commented 1 year ago

HI, I'm receiving an error as follows (I'm using .wav files):

ERROR: Empty fingerprint

This is my relevant code:

val audioFilename1 = "/data/data/com.xxx.xxx/files/chaquopy/AssetFinder/app/file1.wav"
val args = arrayOf("-length", "16", audioFilename1)
val result: String = FpCalc.fpCalc(args)

Any suggestions?