Skip to main content

App registration

To use server-based speech recognition, register your app with the Client ID and Client Secret issued when you create My Project in Pleos Playground. Call registerApp() after SDK initialization is complete.

info

App registration is required in SERVER mode. It is also required to use server-based recognition in HYBRID mode. Registration is not required if your app uses only ON_DEVICE mode.

speechToText.registerApp(
clientID = clientId,
clientSecret = clientSecret,
listener = object : OnServerConnectionListener {
override fun onConnected() {
// You can request server-based speech recognition.
}

override fun onFailed(errorType: ErrorType) {
// Handle registration or server connection failure.
}
}
)

Start server-based requests only after onConnected() is called.