title: How to find out whether audio playing is media or voice?
body: <p>I am working on an android app that does audio routing to speaker/wired headset. Given that some audio is playing, is it possible to <em>programmatically</em> detect whether the audio playing is a song (media clip) or if it is voice from an established call, using java? </p>
  
  <p><strong>EDIT</strong>: I realized that I can solve my problem easily because, when I receive or make a call, only that <em>voice audio</em> can be heard. Is there any function which determines if I am on a call or not?</p>