is there any way to detect just before a voice stream in android devices ?

  • Thread starter Thread starter Android Central Question
  • Start date Start date
A

Android Central Question

am created a sound recording app work with background service,i want to stop recording when any of app in device start audio stream ,like playing a music or voice out put from any app .i don't want to record when device itself outputting some voice.is there any way to detect any app in the device is going to output a voice through speaker.Advance Thanks
 
Not without a time machine. But if you delay recording by about 0.1 seconds, you can stop the instant other audio starts, stopping the actual recording just before it starts. (If you can't raise the bridge, lower the water.)
 

Forum statistics

Threads
955,912
Messages
6,966,079
Members
3,163,423
Latest member
yasheshm09