setLanguage

fun setLanguage(language: String): Int

Sets the language of the speech recognition.

Return

0 if successful, otherwise an error code.

Parameters

language

Language code (e.g. "ja", "en" or "auto" for automatic detection).