matchStreamingBuffer(_:at:)
Converts the audio in the buffer to a signature, and searches the reference signatures in the session catalog.
Declaration
func matchStreamingBuffer(_ buffer: AVAudioPCMBuffer, at time: AVAudioTime?)Parameters
- buffer:
An audio buffer.
- time:
The start time of the audio to use for generating the signatures.
Discussion
This method continues to generate signatures and perform searches until the audio in the buffer stops, which may result in multiple calls to the delegate.
The audio buffer must be in one of the supported formats. For the list of the supported audio formats, see append(_:at:).
To use the microphone as input for the buffer, see Matching audio using the built-in microphone.