yashsingh1/xdaforums huggingface dataset:
[Windows Mobile Apps and Games] radhoo:
---version 1.2.020---

Fixed in this release:

- colored titlebar icon reflecting earpiece/backspeaker status

- X button added in popup to allow closing the app

- shortcut added in programs for restarting the app

- fixed routing problem in 1.2.010

- autostart shortcut added

---version 1.2.010---

Following many of the good suggestions received on http://xdaforums.com/showthread.php?p=3380366#post3380366 here's an updated version of the tool that routes the audio to the earpiece speaker when using voip apps.

New in this release:

-still based on dynRil that has been updated for the following:

-microphone muting fixed

-cab with custom install location

-command line & smartphone support

This is a freeware tool that can be used to route the audio from the earpiece speaker to the backspeaker and vice versa.

A good addon for VoIP utilities.

Compatibility

Windows Mobile pocket pc or smartphone.

Usage

Install the CAB and use the titlebar icon to open the user interface.

The first icon routes the audio to the earpiece speaker.

The second blue icon, can be used to route the audio to the backspeaker.

The orange icon, routes the audio to the speakerphone, while in a phone call.

You can also use the bottom slider to move the taskbar icon, or the about button to show this page.

The top-right square hides the user interface.

Command line

This tool can be executed by command line with parameters.

You can execute /program files/teksoft/audioRoute/audioRoute.exe with the following:

-earpiece , routes the audio to the earpiece

-backspeaker , routes the audio to the backspeaker

-speakerphone , while in a phone call, activates the speakerphone

-switch , toggles between earpiece and backspeaker

audioroute.exe -earpiece
audioroute.exe -backspeaker
etc.

Download

To manage updates easier, I won't attach the cab here, instead feel free to download it using this link.
[Windows Mobile Apps and Games] radhoo:
compatibility list below, thanks tucahara!
[Windows Mobile Apps and Games] kphillips85:
This seems very interesting. Would there be any program to route audio to a bluetooth headset?
[Windows Mobile Apps and Games] radhoo:
Thanks. Can you test it on your device? I'm looking forward to a big compatibility list, but for that I need community's help.

(offtopic: for audio over bluetooth , there are several tools, including the a2dptoggle included in my signature or this shareware tool)
[Windows Mobile Apps and Games] bheremans:
see the other products on that webpage

http://teksoftco.com/index.php?section=products

I use version 2 to route all audio to my bluetooth enabled helmet
[Windows Mobile Apps and Games] Hajima Ichiro:
He has a program that does that listed on the download page he linked to.

Anyway, this looks like a great, professional app... My only question is will this interfere w/ the way my phone automatically switches off the speakers when I put in the USB audio adapter and uses that? And will the speakerphone button on the HTC dialer app still work? If I exit this app, will everything go back to normal and automatically ajust?

I'm using an ATT Fuze.

Thanks!
[Windows Mobile Apps and Games] radhoo:
Thanks. I plan to make it even better. I have a very short compatibility list atm, so I can't say much about the Fuze, only to guess that it should work. You can test it, if something goes wrong simply uninstall it, and everything will go back to previous state. There are no permanent effects of using it.
[Windows Mobile Apps and Games] Hajima Ichiro:
Okay, that's what I was looking to hear. Thanks. I'm gonna download it and and give it a shot w/ Skype.
[Windows Mobile Apps and Games] stefand:
Looks great, but doesn't route the sound to the earpiece.

I also have DynRILv1.1.cab installed, when I use the Dynamic RIL Interface. The phone can route the sound to the earpiece.

Does audioRoute uses the same dll then the DynnRILv1.1.cab?

My phone is a HTC Diamond
[Windows Mobile Apps and Games] mengsuan:
It doesn't seem to work with HTC diamond+skype. I still hear everything from loudspeaker.

A suggestion from me: place a quit button so that we can quit the program when we don't need it. Instead, create a shortcut on Start->Programs for us to start it when we need. The S icon can be pretty irritating as my diamond has lots of icons on top already.
[Windows Mobile Apps and Games] mengsuan:
Where to get dynnrilv1.1?
[Windows Mobile Apps and Games] vittogn:
Does not work on i780

Good idea but it does not work at all on my Samsung SGH-i780 with WM 6.1. I tested on Skype, fring and Nimbuzz.

I'll be more than happy to test it more version.

Don't give up.
[Windows Mobile Apps and Games] stefand:
This think this was was the original post, but now the link chaged to the new "audioRoute 1.2.010 for VoIP"

http://xdaforums.com/showpost.php?p=3370034&postcount=1447

I attached the older DynRILv1.1 version.

It doesn't looks that great, but it works for me.
[Windows Mobile Apps and Games] ruwan7:
doesn't work on my hd either :(
[Windows Mobile Apps and Games] DocMAX:
how can i make it automaticly switch to earpeace when making a voip call with build-in wm6 voip?

btw: doesnt work for me either
[Windows Mobile Apps and Games] mengsuan:
Yes yes! That worked fine and it's not ugly at all. I find it better than the new version as it allows me to quit and start manually.
[Windows Mobile Apps and Games] radhoo:
Thanks for your comments.

I can check to see what goes in 1.2 since most of you said 1.1 works and the newer doesn't.

Also I'll add a quit button and the shortcut in programs.

Meanwhile feel free to add any other ideas you'd like to see in this update.
[Windows Mobile Apps and Games] kulen:
I tried dynril 1.1 and Audioroute.

It seems Audioroute doesn't work at all. Pressing those tree icons doesn't change a thing. I have Polaris with 3Lit3 VI FULL ROM if that is important.

Dynril routes sound to internal speaker but it seems that sound is still on external speaker too, just much quieter than before. Same thing is when I use enable earpiece in Fring.

Can somebody explain me that?

Thank you
[Windows Mobile Apps and Games] radhoo:
updated to 1.2.020 , please see main thread.
[Windows Mobile Apps and Games] stefand:
Perfect fix, this version workes now on my htc diamond. :)
[Windows Mobile Apps and Games] radhoo:
sounds good, thanks for the quick feedback
[Windows Mobile Apps and Games] casouzaj:
AudioRoute keeps not working in i-mate 9502 !

Unfortunately, the new version keeps causing no effects at all on my i-mate Ultimate 9502. The embedded VoIP sound keeps coming from the speakerphone, no matter which button on AudioRoute I press.

Hope you still have time and opportunity to make it work in my device in the near future.

Thanks for your efforts, anyway, Radoo !

Cheers!

Carlos
[Windows Mobile Apps and Games] tucahara:
Yes, some devices won't route the audio, because different hardwares. I am wonder if there is a place with all PDA service manuals...

As I was told, the switch can be made using one of two things: hilling or hacking the audio driver (the second option have been done on Wavedev.dll)

about testing the audioRoute :

* Most HTC devices respond OK to DynRIL and send the right messages to the audio drivers too.

* Motorola with audioRoute don't work, but exist an audiodriver on linux.

* Some Sony respond OK to DynRIL.

* Samsung, not work, if someone else, please test !

* Mio, some works but I still check the driver messages (I think will help a new gemini driver).

* Eten/Glofiish devices just use drivers messages; other solution made by tonychen from www.etenblog.com do the switching.

* I-PAQ HP (most of them respond OK to DynRIL) but them seems build to switch with RIL on inside.

* Most Palm, reported NOT work with DynRIL, but some rom's seems to work ok, more testers are required.

I think on audioRoute 1.2.020 is still have something worth improved: first, the loadspeaker switch, on exit by SetAudiopath(0) on quiting Trayapp wnd...

It will be a benefit for the community if making DynRIL configurable by loading the RIL sequence from regstry or xml file (anyone can play with his device). Also, if debugger will be implemented with option in checking the messages from audio drivers.

And for future development:

radhoo, if Trayapp is loaded, why not have an editable list of applications and let Trayapp.exe looking on processes to switch on earpiece automatically when third party apps are loaded, and switch back to load soundspeaker when third party apps are closed?

Again, thank you very much radhoo !
[Windows Mobile Apps and Games] radhoo:
tucahara, thanks for the pertinent suggestions above.

I believe the processes list is a must, so I will do my best to add it soon.

Regarding audio driver switching, we should try that approach as well, to see if the compatibility list gets bigger, but the audio part of ril itself, is using the audio driver directly.

I've studied that part of the code a lot.
[Windows Mobile Apps and Games] EmZvr:
The application is great. But when I installed it it screwed my SRS WOW. SRS WOW still works but the sound is awfull. I tried reinstalling AudioRoute it's the same. Reinstalled SRS WOW and again nothing. Now I have to make a Hard Reset. Can someone try if it makes conflict with SRS WOW, too ?

Never mind I fix it.. :)
[Windows Mobile Apps and Games] jborregoy2k:
Audio Route on WM6.1 Standard - Blackjack II i-617

Hi, I haven't been able to test the application in WM6.1 Standard because it don't run over this platform. Anyone knows how to run an application designed for Professional in a Standard phone? Thanks, Jorge
[Windows Mobile Apps and Games] jborregoy2k:
Command line

This tool can be executed by command line with parameters.

You can execute /program files/teksoft/audioRoute/audioRoute.exe with the following:

-earpiece , routes the audio to the earpiece

-backspeaker , routes the audio to the backspeaker

-speakerphone , while in a phone call, activates the speakerphone

-switch , toggles between earpiece and backspeaker

audioroute.exe -earpiece
audioroute.exe -backspeaker
etc.

I have WM6.1 Standard and the only way to run the program will be thru command Shell. How do I run it from a Command Prompt. Thanks, Jorge
[Windows Mobile Apps and Games] tucahara:
AudioRoute with Wm6VoIP

hi Radhoo,

I think it will be a benefit if using also Key events.

It will help using audioRoute with Wm6VoIP, by having instances activated with keyboardd events using the keyboard_hook or KeyMessages with HardwareKeyPressed. By pressing Key 114 "greenbutton" switching to earpiece and Key 115 "redbutton" switching back to loadspeaker.

The switching sequence to earpiece/loadspeaker by SetAudioPath(0)/SetAudioPath(1) is necessary mostly with the instances of voipphonecandas.dll:

IntPtr hWnd = findWindow( null , "VoIP Canvas Notification Window");

corresponding to "Enabled"

(hWnd, WM_APP + 6, 1, 0);

or to "Available" status

(hWnd, WM_APP + 6, 0, 0);

Also, it is important to intercept the instance of inCall ring with DynRIL.

If you don't mind I intend to use audioRoute switching with a next release of WM6VoIP.

Thank you,

tucahara

P.S. Please take a look at the MarceloFB approach:

http://xdaforums.com/showthread.php?p=3598825
[Windows Mobile Apps and Games] tucahara:
pleading for possibility to assign low-level hook keys command

Dear Radhoo,

please take a look at [APP][UPDATED]simpleaudioswitch .

Marcelo came with a very good approach, and it worth even to include and improve the existing audioRoute.

As I am not developer, just a beginner... I'm preparing the next release of WM6VoIPfull and believe the switching between earpiece and speaker is an important part that's missing. The RtcDLL.dll from Microsoft VoIP client cannot manage correctly the earpiece-speaker switch because sending direct messages to the audio driver, and most of the firmwares have different audiodrivers....

As one friend oppinion, we could call the Windows Mobile audio-rerouting dilemma "defective by design" as under Symbian this problem is a complete non-issue. Not only it's easy to play back the audio through the correct speaker, but using the hardware's embedded echo cancellation is also is no problem at all...

It will be a great add to the audioRoute for VoIP having possibility to assign the hook keys commands. If it is done at low-level as the simpleaudioswitch approach, it should work...

On my opinion, the green button must be assigned for earpiece switching and red button for back loudspeaker. By defining:

#define VK_HANGUP 0x73 // VK_F4
#define VK_ANSWER 0x72 // VK_F5

and by having an icon on menubar <with a quit option>, that option from simpleaudioswitch with:

(callbackWndPtr->GetSafeHwnd(), WM_CLOSE,0,0);

is not needed....

Implementing low-level hook keys commands will make possible for audioRoute to work automatically with Microsoft VoIP client...

radhoo, would you continue to help the community? Thank you !
[Windows Mobile Apps and Games] tucahara:
Audio Routing and Volume

1. The customer indicates to the UI the desire to switch into Speakerphone mode. The Phone Shell UI sends this notification to the Phone Shell.

2. The Phone Shell calls TAPI to instruct it to change the active hook switch device. phoneSetHookswitch();

3. TAPI passes the request along to the TSP: TSPI_phoneSetHookSwitch();

4. The TSP sends a message to RIL instructing it to change the currently active source.

5. RIL will then send the proper command to the GSM module, instructing it to select the appropriate audio source. AT+VLS=?? <Manufacturer specific value>

6. Now that the speakerphone hook switch device has been enabled, the TSP will send a PHONE_STATE message to TAPI, indicating the new state of the hook switch. The TSP will also implicitly change the state of the hook switch for the handset (the previous hook switch device), changing it to ONHOOK. This will generate a second PHONE_STATE message.

7. TAPI will forward the PHONE_STATE message to all interested open handles.

8. Deciding that the volume was not loud enough, the customer changes the volume of the speakerphone.

9. To adjust the volume of the Speakerphone hook switch device, the phone shell will call TAPI. phoneSetVolume();

10. TAPI forwards the call to the TSP: TSPI_phoneSetVolume();

11. The TSP calls RIL to set the new volume of the device.

12. RIL sends the appropriate AT command to the module to set the new volume level.

13. The hardware device responsible for recognizing the insertion of the headset plug, activates an interrupt which is handled by RIL.

14. RIL sends a notification message to the TSP informing it of the change in input device. It is assumed that the change in input device has already taken place, either entirely in hardware, or handled by RIL before the notification is sent to the TSP.

15. The TSP sends a PHONE_STATE notification to TAPI indicating that the state of the HEADSET hook switch has changed.

16. TAPI forwards the PHONE_STATE message to all interested open handles.

17. The Phone Shell instructs the UI to indicate the presence of a headset device.
[Windows Mobile Apps and Games] camro:
well - is it possible to integrate:

IF HEADSET IS CONNECTED - > also route it fix to speaker....

with FMRadio it is possible - so it should also be possible anyhow.. or ?

cu camel
[Windows Mobile Apps and Games] DmitryT:
HTC Tytn:

- Audio can not be routed to earphone from the moment Skype starts ringing till the end of the call. Audio can be routed to earphone only before Skype receives a call.

+ Sound can be switched to earphone when Skype is idle. If a call is received when audio has already been routed to earphone then audio can be toggled to speakerphone and back to earphone during the call.

- While in Earphone mode and switch to Speakerphone the icon correctly changes from "E" to "S" but after that when you toggle between the modes the icon stays "S" regardless of the mode. It can be a problem when you think you are in Speakerphone mode but actually the sound is routed to Earphone. You may not hear your cell ringing in Earphone and miss important calls.

So currently AudioRoute is savior when I want to make an outgoing call but not yet useful when receiving calls on Tytn.
[Windows Mobile Apps and Games] thefatalrisk:
When I had my TyTn, I was able to make VoiP calls in the same way as I did with normal calls (i.e. via earphone).

I assume other HTC phones (e.g. HD) are different then?
[Windows Mobile Apps and Games] rrene:
Great application, works well on Xperia with new Skype 3.0 mobile beta. Still got one question:

Is it possible for me to replace the Icon(s), which appear(s) in the taskbar to have a more WM-stylish look?
[Windows Mobile Apps and Games] Geoffsri:
Please send me a link to download the latest ver. of Audioroute and instructions on how to install and use it on my Samsung i730.

I want to switch a Skype call from the speakerphone to the earpeice and mic.
[Windows Mobile Apps and Games] knopper:
But it works somtetime and somtetime NOT ! audio routing is ok, but MIC is sometimes mute !!!!!
[Windows Mobile Apps and Games] zores:
my mic is always mute...use a hp ipaq data messenger - hope you could fix this...

you talk about 1.20.10 have not this problem - i like to test it but nowhere found the old version.

best regards
[Windows Mobile Apps and Games] powersquad:
How can I disable the auto start of this when device reboots?
[Windows Mobile Apps and Games] TurboX2:
you can diable the automatic startup by going into your phones windows folder:

//Windows/Startup

and deleting the shortcut to the audioRoute application.

Its just like on ur regular computer :)
[Windows Mobile Apps and Games] TurboX2:
Sorry to double post.. but i was thinking that a toggle button app would also be very beneficial to this case.. one in which you can assign to the button of your choice in the phones setting's under the buttons option.
[Windows Mobile Apps and Games] GuiPoM:
Audioroute issue on X1

I have tested Audioroute on my Sony Ericsson X1. It works, but at the first use of audio routing, battery drains down. To give an example, my X1 fully charged is 30% left after one night (~7 hours). So I removed this application, but again same problem. If, during a phone call, I use the external speaker key (default in winmo phone interface, the handfree option to use external speaker) it still works, but start to drains the battery. I can see the battery indicator loosing percent after percent.

So this application does not work well on my phone, but what is the real issue, does not remove well ... any help to set my phone back to its settings would be appreciating, in order to keep my phone working more than one day :(
[Windows Mobile Apps and Games] zores:
please can u upload the old version - maybe it works for me

thx for your help
[Windows Mobile Apps and Games] :
don't bother installing on Ipaqs...

... what's the equivalent of racism for pda's? :)
[Windows Mobile Apps and Games] angusc:
If you switch the audio to the earpiece BEFORE you start your SKYPE or VOIP call it has the effect of muting the Mic. BUT if you start the call then switch to the ear piece the audio and the Mic both work very well. The audio is a little quiet on VOIP calls from the ear piece but works non the less.

I have a HTC Touch Diamond 2 & WM6.1
[Windows Mobile Apps and Games] SpGG:
Doesn't work with Fring

I have a Vodafone VPA Compact III (HTC Hermes TyTN) warrenty swap model running CRCs Release 13.4.

The current version of Fring has a switch to turn on the earpiece speaker. But that switch doesn't work. I tried audioRoute with both that switch on and off without success.

When I use audioRoute to change the audio to the earpiece it just gets muted. Thanks for the free app though.
[Windows Mobile Apps and Games] jasondeangelo:
Acer M900

I have tried both the DynRILv1.1 and audioroute_1.2.020, and neither work. Does anyone have any other suggestions or time frame when this will work with this phone. Thanks so much!
[Windows Mobile Apps and Games] tyler51773:
Question:

I have audio route on my tilt. I'm sort of tired of having to switch it to earpiece I see some talk about it doing automatically, and some conflicting information as to whether pushing the green button is necessary or not. I have 1.2.020 installed and the about html says nothing about automagic switching? Do I need to do something to get the automatic switching going on? I'm using wm65voip.cab, secondtoday, and manilla2d, and the default windows volume slider .. Thanks.
[Windows Mobile Apps and Games] tyler51773:
how did you?

How did you get the windows home to combine with manilla? Or is this spb or something?
[Windows Mobile Apps and Games] lowteckh:
I don't have this problem; only tried a few times though. Mic picks me up every time whether I enable earpiece before Skype or after.

One problem I have is that I don't think the icon works too well with WinMo6.5. I managed to drag the icon to the right of the Windows button so it doesn't block the icon but now I think it's stuck there - can't figure out how to reposition it anymore (the bottom slider bar). Using Touch Pro 2 + 6.5.

But thank you SO damn much for this app.
[Windows Mobile Apps and Games] min1968:
My mic also mute (HTC touch CDMA version)

Even if below solution works it's too inconvenience. Hope can be fixed soon.
[Windows Mobile Apps and Games] holybabel:
Hello,

i'm going to test it with my Omnia i900 with Windows Mobile 6.5 (Build 23060).

First impression:

the tray icon is a little bit too small

switching to "hands-free" seems to work

autostart and closing over the tray-icon works great

Greatings HolyBabel
[Windows Mobile Apps and Games] brooon:
Help needed :(

Hi!

First, thanks for this little program, works nice with skype on my HD2. But my very problem is that I do not know which setting the standard setting is (or else: how i get the normal audio function back). Either I hear the music over speaker but can´t hear the ringtone or I hear the ringtone but also the phonecalls (voices) over speaker.

What do i have to do to deactivate audioroute when not needed? Seems like its functions are working all the time, even when I close it from the taskbar. It´s frustrating :(
[Windows Mobile Apps and Games] simurg:
This app works great on TP2. Just make sure that you do the swith before audio starts coming out such as before running skype. It cannot make a switch during active conversation.

One side note. This thing is tiny on my tp 2. I assume it is meant for QVGA. Is there a VGA version?
[Windows Mobile Apps and Games] aimaim:
Any suggestions about HP Voice Messenger? I tried all from this thread and nothing helps.
[Windows Mobile Apps and Games] jukl:
no works wm 6.1 pro programs skype ... tel. mivyy one :(
[Windows Mobile Apps and Games] damikey:
Works perfectly with Energy Feb.26.2010 ROM for HTC HD. Thank you
[Windows Mobile Apps and Games] bgcngm:
This application doesn't work in my ACER/ETEN DX900. Can you please try to add support for this device? Thanks in advance.
[Windows Mobile Apps and Games] merten3000:
I agree to that. The icon is so small it's not possible to point it without a stylus.

can you make a fix for this issue?

Thanks for the great app anyway!!
[Windows Mobile Apps and Games] chn110:
And there is no stylus on HTC HD2 so it's nearly impossible to use it. It seems on some cooked ROMs the icon size is fine but not on some others.

It will be great if the app is hooked up to the proximity sensor so it auto-switches to earpiece when he phone is placed close to ear.
[Windows Mobile Apps and Games] angusc:
Try installing V1.1 of this application from post #54. If you HD2 creates the same notification folder in your registry as my TD2 does then this application will auto switch for SKYPE. It already auot switches for native VOIP.

http://xdaforums.com/showpost.php?p=6211168&postcount=54