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