I have a live stream of audio which i try to fingerprint & search using the GNSDK(3.06) java wrapper. My code is based on the musicid_stream sample.
I use the code:
gnMusicID.fingerprintBegin(
GnFingerprintType.kFingerprintTypeGNFPX,
44100,
16,
2
);
/* write audio to the finger printer */
gnMusicID.fingerprintWrite(audioData, audioData.length);
/* does the finger printer have enough audio? */
gnMusicID.fingerprintEnd();
where audioData is byte[] of the audio's PCM
I was looking for information in your API reference with params you recommend using:
- how long should the recording be? minimum seconds?
- should I try GnFingerprintType.kFingerprintTypeStream3 \ GnFingerprintType.kFingerprintTypeStream6 as the GnFingerprintType?
- use higher sampling rate?
My audio buffer might be at any position during the song as I record a live audio.
please suggest.
Thanks.