Skip to content

//sorisdk/com.iplateia.sorisdk/SORIAudioRecognizer/startRecognition

startRecognition

[androidJvm]
fun startRecognition(ctx: Context, title: String? = null, body: String? = null, icon: Int? = null)

Starts the SORI Audio Recognition Service. example usage:

kotlin
val recognizer = SORIAudioRecognizer("your_application_id", "your_secret_key")
recognizer.startRecognition(this)

Parameters

androidJvm

ctxThe context from which the service is started.
titleThe title of the foreground notification. (optional)
bodyThe body of the foreground notification. (optional)
iconThe icon resource ID for the foreground notification. (optional)