Hi I'm trying to recognize a clip from a file but it seems it's not working. 

I'm using Swift but can work with Objective C as well if needed. 

It's a wave file: AVFileTypeWAVE

And these are the settings I'm using to generate the file:

            let settings: [String : AnyObject] = [
                AVFormatIDKey:Int(kAudioFormatLinearPCM) as AnyObject,
                AVSampleRateKey:44100.0 as AnyObject,
                AVNumberOfChannelsKey:1 as AnyObject,
                AVLinearPCMBitDepthKey:16 as AnyObject,
                AVLinearPCMIsFloatKey:false as AnyObject,
                AVLinearPCMIsNonInterleaved: false as AnyObject,
                AVLinearPCMIsBigEndianKey:false as AnyObject





Hi, if what you are trying to recognize is a song audio file, then you will need the whole file (from the start of the song to the end) in order to recognize using MID-File
Let me know if this helps.

Forum Discussions