FORUMS

T-Mobile Galaxy S6 Battery Woes

I’ve been using a T-Mobile Galaxy S6 since the device launched with T-mobile’s … more

Earthquake Early Warning in Your Pocket

Probably all of us reading this have a smartphone in our pocket. For many of us, the … more

Sony: The OEM You Want To Save

In our recent Discuss article, we asked you readers on which OEM you would like to help. While the … more

How to Lock and Protect Your Apps – XDA Xposed Tuesday

The smartphone revolution has passed. Everybody has mobile apps. Some of … more

Audio playback via the internal microphone

7 posts
Thanks Meter: 0
 
By koljsch, Junior Member on 7th March 2014, 12:01 PM
Post Reply Subscribe to Thread Email Thread
How can I play a wav file from the speaker that is used during a call?
Seen that this is possible through the built-in functions for VoIP, but did not understand how to implement this.
Thanks in advance!
 
 
8th March 2014, 03:47 AM |#2  
Recognized Developer
Flag Seattle
Thanks Meter: 2,850
 
More
... that's the headset speaker, not the microphone. Microphones are audio *input* devices. OK, now that we're clear on that...

Please remember to search before posting. Also remember to post in the correct section. This is a question; it belongs in Q&A. If you were offering an app or library or hack of some kind, you would post it here.

To attempt to answer the question... looks like you either need to use
Code:
Windows.Phone.Media.Devices.AudioRoutingManager.GetDefault().SetAudioEndpoint(Windows.Phone.Media.Devices.AudioRoutingEndpoint.Earpiece)
if you're working in managed code, or use GetDefaultAudioRenderId and specify the value Communications from the AudioDeviceRole enum. Note that doing this may require that your app declare the ID_CAP_VOIP capability.
The Following User Says Thank You to GoodDayToDie For This Useful Post: [ View ]
8th March 2014, 01:19 PM |#3  
OP Junior Member
Thanks Meter: 0
 
More
Thumbs up
Thank you! Thank you so much! I've been looking for an answer to this question! Once again, thank you!
8th March 2014, 02:28 PM |#4  
OP Junior Member
Thanks Meter: 0
 
More
This code throws an exception 'E_ACCESDENIED'. As I understand it can be used only during a VoIP call. Whether it can be realized without the active VoIP call?
Last edited by koljsch; 8th March 2014 at 02:45 PM.
Post Reply Subscribe to Thread
Previous Thread Next Thread
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes