Actions icon indicating copy to clipboard operation
Actions copied to clipboard

'Is Audio Playing' also triggers when microphone is active

Open heldheld opened this issue 2 years ago • 2 comments
trafficstars

Description

The description for the 'Is Audio Playing' action states that it: 'Returns whether there is audio currently playing on the device.'

I love the idea of this action 'cause it could help detect whenever my alarm goes off (which goes off in a window of 30 minutes through the Sleep Cycle app).

But I've found that it also triggers whenever the microphone is active / a recording is running. For example, it triggers whenever I record a voice note (so it's not playing audio, just recording) and also whenever my Sleep Cycle alarm is on in the background since the app uses the microphone to track sleep patterns. So in its current state it's unfortunately not useable for my use case.

macOS/iOS version

iOS 16.3.1

Shortcut URL

No response

heldheld avatar Feb 14 '23 17:02 heldheld

[Bump]

heldheld avatar Mar 12 '23 14:03 heldheld

Unfortunately, I don't think there's anyway to fix this. The action is simply presenting the value from iOS: https://developer.apple.com/documentation/avfaudio/avaudiosession/1616610-isotheraudioplaying

sindresorhus avatar Mar 14 '23 12:03 sindresorhus