Shazam audio from HLS

Hi There,

What would be the best approach to Shazam audio coming from an HLS asset?

Is it possible to process the audio in real-time or would be better to download an audio segment and generate the Shazam signature from it? Especially on Apple TV where the mic is not an option.

Thanks!!

You can stream realtime audio into a SHSession if you use - (void)matchStreamingBuffer:(AVAudioPCMBuffer *)buffer atTime:(nullable AVAudioTime *)time. As per the header docs (see below) you'll need to make sure you're passing in the right format so you might need to perform a format conversion first.

This method will throw an exception if the audio format is not PCM in one of the following sample rates: 48000, 44100, 32000, 16000.

Shazam audio from HLS
 
 
Q