Link to home
Start Free TrialLog in
Avatar of eztalk
eztalk

asked on

Playing a sound through a phone speaker (v2)

Is there a way to play a sound (.wav) through a phone (WM Smartphone or PPC with phone module) speaker? Not the loudspeaker that PlaySound() engages, but the small silent speaker that you hear when you hold the device at the ear.
The built-in WM 6.0 VoIP client has the same problem - when you make a call, you hear other party talking through loudspeaker located on the back of the device - not very convenient.
Does it mean that it's impossible to play the sound through the ear speaker?
ASKER CERTIFIED SOLUTION
Avatar of Maciej S
Maciej S
Flag of Poland image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of eztalk
eztalk

ASKER

thanks HTH,
But that's another issue.
Those guys are trying to turn on the speakerphone (loud speaker, rear speaker) for a common phone call, and use RIL API for that.
We need NOT to use it, but use the earpiece, and NOT for a phone call, but for PlaySound().
As far as I understand what is written is these posts, they are trying to do exactly the same, as you want :)
Let me quote first post, from that link:

"Hi would like to know if someone outthere knows if its possible to playback a
file but not througth the normal phone spearker but from earpiece, as same as
we receive a phone call."

So - this guy wants to play sound via an earpiece (as this is written in quotted post: the same speaker, which is used to make a phone call).
Anyway, if this is not, what you were looking for, I'm afraid I can't help :(

PS HTH = Hope This Helps :) My nick is oklit :)
Avatar of eztalk

ASKER

thanks oklit :)
I tried it hard, and it worked only on WM SP 5.0 device (HTC S710). Pocket PCs didn't (Toshiba G900 ignored it,  Glofiish X800 ceased to play sound at all).
Avatar of eztalk

ASKER

...oops, S710 is WM SP 6.0, not 5.0

Generally, the trick seems to work only on smartphones.
According to this: http://osdir.com/ml/voip.pjsip/2008-05/msg00084.html such functionality can be vendor specific.
IIRC, there is some application from Eten (I've got Eten M700, but without builtin apps), which can switch sound from rear speaker to an earpiece (but this can just for Skype).

I found also this discussion: http://www.teksoftco.com/forum/viewtopic.php?t=1466. You may find this interesting.