iOS dictation disrupting mobileSoundOnChannel

Anything beyond the basics in using the LiveCode language. Share your handlers, functions and magic here.

Moderators: FourthWorld, heatherlaine, Klaus, kevinmiller, robinmiller

Post Reply
Aduro91
Posts: 56
Joined: Sat Jul 22, 2023 8:49 pm

iOS dictation disrupting mobileSoundOnChannel

Post by Aduro91 » Fri Apr 11, 2025 5:51 pm

Hey all,

I now have an issue with the iOS speech-to-text feature stopping the sound I'm playing on a channel through mobilePlaySoundOnChannel.

I would like the sound to play again after this feature has been used. It DOES replay when I create a mobilecontrol player, but I can't use this method because I can't seem to control the volume on this form of player.

I've tried using mobileSoundChannelStatus() to continuously check whether sound is playing on the channel but strangely enough, after the sound is stopped by the dictation function, it still seem to think it is "playing".

I think that is the fundamental issue I'm now facing. If the status isn't changing but the sound is actually stopped, then I'm not sure how I can code it to return.

Any help would be appreciated,
Cheers!

Klaus
Posts: 14177
Joined: Sat Apr 08, 2006 8:41 am
Contact:

Re: iOS dictation disrupting mobileSoundOnChannel

Post by Klaus » Sat Apr 12, 2025 12:04 pm

Hm, since you are using an OS feature, which does not inform your LC app what it is currently doing, I'm afraid you are out of luck.
Someone correct me if possible!

FYI: I created a feature request for: mobilecontrolset "playername", "volume"
Or whatever syntax they will use for the implementation.
https://quality.livecode.com/show_bug.cgi?id=24678

Aduro91
Posts: 56
Joined: Sat Jul 22, 2023 8:49 pm

Re: iOS dictation disrupting mobileSoundOnChannel

Post by Aduro91 » Tue Apr 15, 2025 5:32 pm

Klaus wrote:
Sat Apr 12, 2025 12:04 pm
Hm, since you are using an OS feature, which does not inform your LC app what it is currently doing, I'm afraid you are out of luck.
Someone correct me if possible!

FYI: I created a feature request for: mobilecontrolset "playername", "volume"
Or whatever syntax they will use for the implementation.
https://quality.livecode.com/show_bug.cgi?id=24678
There may be a way to correct it, by having it check for instant entry of a word, which would only happen with dictation. Could be wrong but I'll try that.

Thanks for requesting that command, would be helpful!

Post Reply