Actions icon indicating copy to clipboard operation
Actions copied to clipboard

Is Audio Playing always returns "Yes"

Open tonivss opened this issue 1 year ago • 9 comments

Description

The function "Is Audio Playing" always returns "Yes" regardless if audio is actually playing or not.

macOS/iOS version

iOS 17.0.3

Shortcut URL

No response

tonivss avatar Oct 16 '23 13:10 tonivss

Can you try out the TestFlight build (uninstall the App Store version first): https://testflight.apple.com/join/fJGUrsZx

And if you get incorrect result, run the "Debug" action and share the output.

sindresorhus avatar Oct 18 '23 06:10 sindresorhus

I still get the same (wrong) result. I installed the Beta you provided and got the debug running. The result is:

Debug Info:

audioOutputPorts: ["Lautsprecher"]
isAudioPlaying2: true
isAudioPlaying: true

I closed all apps before running. I‘m using iPhone 15 Pro Max with iOS 17.0.3 However when running it with an iPhone 11 (iOS 17.0.3) I get the right answer.

tonivss avatar Oct 18 '23 20:10 tonivss

I recently experienced something similar. According to 112 is playing returns true if the mic is enabled / in use.

For me disabling the feature of surround noise recognition (in German "Geräuscherkennung"), which I had enabled, solved the problem.

Hope this helps, good luck!

bnfone avatar Oct 23 '23 17:10 bnfone

@bnfone That's very helpful. I'm finally able to reproduce the issue.

I have reported it to Apple. There's unfortunately not much more I can do about it.

sindresorhus avatar Oct 23 '23 20:10 sindresorhus

Indeed this is pretty helpful. It solved the problem for me too! For now I deactivated the surround noise recognition feature. Thank you for reporting the Problem to Apple! Hope it will be fixed soon.

tonivss avatar Oct 24 '23 08:10 tonivss

Just a tip: Please also report this to Apple. The more reports, the bigger the chance of Apple actually fixing this. They encourage duplicates.

sindresorhus avatar Oct 24 '23 09:10 sindresorhus

As it turns out, the problem still exists although I turned off the surround noise recognition…

tonivss avatar Nov 02 '23 20:11 tonivss

I also am still getting this issue even after disabling sound recognition.

wraith1385 avatar Dec 21 '23 23:12 wraith1385

It seems like I have to turn it on and off sometimes to make it work. I just created another shortcut that turns surround noise recognition on and immediately off when I connect my phone to the charger. For me it works pretty good. maybe you could try it too.

tonivss avatar Dec 22 '23 10:12 tonivss