sindresorhus / Actions

⚙️ Supercharge your shortcuts
https://sindresorhus.com/actions
MIT License
2.55k stars 107 forks source link

Is Audio Playing always returns "Yes" #171

Open tonivss opened 10 months ago

tonivss commented 10 months ago

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

sindresorhus commented 10 months ago

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.

tonivss commented 10 months ago

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.

bnfone commented 10 months ago

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!

sindresorhus commented 10 months ago

@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.

tonivss commented 10 months ago

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.

sindresorhus commented 10 months ago

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

tonivss commented 9 months ago

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

wraith1385 commented 8 months ago

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

tonivss commented 8 months ago

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.