App Registration
To use server-based speech recognition, register the app with the Client ID and Client Secret issued when creating My Project in Pleos Playground. After the SDK initialization is complete, call registerApp().
info
App registration is required in SERVER mode. If you want to use server-based recognition in HYBRID mode, you must register the app. If you are only using ON_DEVICE mode, registration is not necessary.
- Kotlin
- Java
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 failures.
}
}
)
speechToText.registerApp(
clientId,
clientSecret,
new OnServerConnectionListener() {
@Override
public void onConnected() {
// You can request server-based speech recognition.
}
@Override
public void onFailed(ErrorType errorType) {
// Handle registration or server connection failures.
}
}
);
Start server-based requests after onConnected() is called.