Override the onCreate() method by adding a call to the configure() method. This method configures the Yandex SpeechKit library. As arguments, specify the application context and your API-ключ :

SpeechKit.getInstance().configure(getApplicationContext(), "API key" );

I have an API key. Please write how the code should look after the changes.

1 answer 1

In your Activity override the method:

 // переопределяем @Override public void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); [...] // вызываем настройку библиотеки SpeechKit.getInstance().configure(getApplicationContext(), "API-ключ"); }