You can preset answers (truth or lie) in the settings screen and ask them questions. Record their voice while they answer the question. The application will act like analyzing their voice and display the preset answer from settings.
If you choose to play for fun, just cancel all the settings and the app will respond randomly, alternating between truth and lie.
Disclaimer: This app is intended to be a fun game, a prank, not a real lie detector (polygraph).