Java Progamming

I need to configure 4 words in the amazon LEX api must appear on the application screen

the user choose a , this should work in background and the user says the chosen word by voice , if the application hears it a successful message comes out in java or kotlin the app has to work on background .