
One more change was added in Android 9: only apps running in the foreground (orĪ foreground service) could capture the audio input. Privileged app terminated and the new app captured the input. In this case another app could start recording. One exception to this rule was when a privileged app (like Google Assistant or anĪccessibility service) had the permissionĪ_AUDIO_HOTWORD and used an audio source of type If some app was already recording or listening to audio, your app couldĬreate an AudioRecord object, but an error would be returned when you called Pre-Android 10 behaviorīefore Android 10 the input audio stream could only be captured by one app at a How the Android system shares audio input between multiple apps that capture audio. If two or more apps want to capture audio at the same time, there can be a problemĭelivering the audio signal from the same source to all of them. Throughout this page, we use the term "capture" regardless of whether an


In either case, these apps want to receive audio input. While other apps might be "listening," like the Google Assistant or an accessibility service that Sometimes two or more apps might both want to "capture" the same audio input.įor example, some apps that receive audio might be "recording," like a simple voice recorder, Audio input usually comes from the built-in mic, an external mic, or anĪudio interface attached to the device.
