The logic of the question-and-answer sequence is another component that has no computer vision functionality. We encapsulate it in a class called YesNoAudioTree, which is responsible for playing the next audio clip whenever the app's computer vision component notifies it of a yes or no answer.
Remember that the audio clips are part of the book's GitHub repository, and they belong in the project's app/src/main/res/raw folder. However, note that the audio clips in the repository are by no means an exhaustive set of questions and guesses about characters in the Bond franchise. Feel free to add your own clips and your own logic to play them.
Create a file, app/src/main/java/com/nummist/goldgesture/YesNoAudioTree.java. Our YesNoAudioTree class needs member variables to store a media player and a related context, an ID for...