Shazam Kit
object ShazamKit
Content copied to clipboard
Entry point to ShazamKit. Creates classes useful to match either a pre-recorded audio file or a live stream of audio (eg. obtained from a microphone).
The match can be performed against the Shazam service or against a custom catalog.
Functions
createCustomCatalog
Link copied to clipboard
createSession
Link copied to clipboard
suspend fun createSession(catalog: Catalog): ShazamKitResult<ShazamKitException, Session>
Content copied to clipboard
createShazamCatalog
Link copied to clipboard
fun createShazamCatalog(developerTokenProvider: DeveloperTokenProvider, locale: Locale? = null): ShazamCatalog
Content copied to clipboard
Creates a ShazamCatalog that can be used to match signatures against.
createSignatureGenerator
Link copied to clipboard
suspend fun createSignatureGenerator(audioSampleRateInHz: AudioSampleRateInHz): ShazamKitResult<ShazamKitException, SignatureGenerator>
Content copied to clipboard
createStreamingSession
Link copied to clipboard
suspend fun createStreamingSession(catalog: Catalog, audioSampleRateInHz: AudioSampleRateInHz, audioRecordReadBufferSize: Int): ShazamKitResult<ShazamKitException, StreamingSession>
Content copied to clipboard
Creates a StreamingSession that allows matching a stream of audio in realtime.