ShazamKit

object ShazamKit

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
fun createCustomCatalog(): CustomCatalog
Creates a CustomCatalog that can be used to match signatures.
createSession
Link copied to clipboard
suspend fun createSession(catalog: Catalog): ShazamKitResult<ShazamKitException, Session>
Creates a Session that can be used to match Signatures.
createShazamCatalog
Link copied to clipboard
fun createShazamCatalog(developerTokenProvider: DeveloperTokenProvider, locale: Locale? = null): ShazamCatalog
Creates a ShazamCatalog that can be used to match signatures against.
createSignatureGenerator
Link copied to clipboard
suspend fun createSignatureGenerator(audioSampleRateInHz: AudioSampleRateInHz): ShazamKitResult<ShazamKitException, SignatureGenerator>
Creates a SignatureGenerator, useful to generate a Signature from pre-recorded audio.
createStreamingSession
Link copied to clipboard
suspend fun createStreamingSession(catalog: Catalog, audioSampleRateInHz: AudioSampleRateInHz, audioRecordReadBufferSize: Int): ShazamKitResult<ShazamKitException, StreamingSession>
Creates a StreamingSession that allows matching a stream of audio in realtime.

Properties

allowLogs
Link copied to clipboard
var allowLogs: Boolean = false
Enables logging.