What is the code for tflite android when it detects a certain object it plays an audio

i am using the android example that was given in the tf website is it possible for it to have an audio when it detects a certain object or do i have to make a new project and follow the instruction in the tf lite website to how to build the app?

Hi @Xion,
It is possible to add an audio while detecting the object to the android object detection example. No need to create a new project. First enable the audio play back permissions in AndroidManifest.xml file and then create a MediaPlayer object with a desired audio file in the following way. Reference code: ```MediaPlayer = MediaPlayer.create(this, R.raw.your_audio_file);
if(detectedObject == " Specify your object here")
{
player.start();
}
Thank You