Page 1 of 1

Playing sound through Notifications/System instead of Media.

Posted: Sat Jul 07, 2018 5:24 am
by Googie85
Hi Guys,

As the topic describes I am trying to play sounds through the notifications and system channels instead of Media.

Thanks for your help,

Googie.

Re: Playing sound through Notifications/System instead of Media.

Posted: Sat Jul 07, 2018 2:03 pm
by bogs
Heya Googie,

Not sure I understand exactly what your trying to accomplish. Do you mean you want to send a message that will trip an OS's mail notification sound, for instance? Or the error sound?

Re: Playing sound through Notifications/System instead of Media.

Posted: Sun Jul 08, 2018 12:57 am
by Googie85
I am trying to use text to speach on either Notifications or System channels...

Googie.

Re: Playing sound through Notifications/System instead of Media.

Posted: Sun Jul 08, 2018 5:00 am
by shaosean

Re: Playing sound through Notifications/System instead of Media.

Posted: Sun Jul 08, 2018 5:37 am
by Googie85
Thanks for your reply!! I understand the revspeak, I am just trying to use the notification or system sounds channels.

Many thanks,

Googie.

Re: Playing sound through Notifications/System instead of Media.

Posted: Sun Jul 08, 2018 3:49 pm
by shaosean
Googie85 wrote:
Sun Jul 08, 2018 5:37 am
the notification or system sounds channels.
I think this is the part that is throwing everyone off.. What do you mean by this? Can you point out an example or something from another programming language that shows what you mean?

Re: Playing sound through Notifications/System instead of Media.

Posted: Sun Jul 08, 2018 4:27 pm
by bogs
I think this is what Googie is talking about. Link is Windows specific, but pretty much all OSes share a similar kind of setup.
Selection_004.png
System sounds...
The problem is, those are set to queue specific sounds in relation to an event, such as receiving mail, it isn't going to work with text to speech as it looks in a specific location for the sound event that is paired to play. Worse yet (if your looking to play a particular sound), it is highly dependent on the users setup as to which sound is going to come out.

Of course, it is quite possible I am just not getting what they are asking either :|

Re: Playing sound through Notifications/System instead of Media.

Posted: Sun Jul 08, 2018 5:31 pm
by jacque
We do need more clarification. My guess is that he wants the app to announce something using system-wide sound channels. I don't think we can do that in Android unless the user has turned on a system setting that speaks everything on screen.

But a usage example would help a lot. There may be other ways to achieve the goal.