Post Reply

Audio playback via the internal microphone

7th March 2014, 12:01 PM   |  #1  
OP Junior Member
Thanks Meter: 0
 
7 posts
Join Date:Joined: Oct 2009
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,698
 
5,682 posts
Join Date:Joined: Jan 2011
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
 
7 posts
Join Date:Joined: Oct 2009
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
 
7 posts
Join Date:Joined: Oct 2009
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


Top Threads in Windows Phone 8 Development and Hacking by ThreadRank