You would need to find an API or SDK and integrate it with your app.
https://www.quora.com/Is-there-an-API-for-analyzing-the-emotion-in-speech
We can develop this for you through our development services.