Record uplink/downlink speech streams? (WaveIn, TAPI, RIL?) - Windows Mobile Development and Hacking General

Hi,
I'm trying to record both uplink and downlink speech streams of my XDA II during a phone call.
I tried many different things but couldn't get working any of them:
- I first tried the waveIn/waveOut API and thought, in the first place, that I was able to record the incoming and outgoing audio streams, mixed together. But I quickly realise that what I was recording was only the sound from the mike, and that the speech of the downlink speech was going from the speaker through the air to the mike. So I was recording my own voice (from the mike) and the voice of the other part (from the mike too as the sound was going from the speaker to the mike).
- Then I had a look to the TAPI API. I was able to answer calls but it was impossible for me to access to any of the audio streams. I think it's a limitation of the device, and that the TAPI API hasn't been fully implemented on the XDA2. But I can't be sure of that.
- Now I'm trying to use RIL, which seems to be a layer below the other APIs. I believe it might be possible to access to the audio streams, but I have no idea how.
- I also think that the audio data of both streams must be stored in the memory, somewhere in the device. But where?
Any ideas or suggestions on this? Do you think I should keep investigating RIL?
Thanks a lot
Ben

There is 3rd party software that will do this.

cruisin-thru said:
There is 3rd party software that will do this.
Click to expand...
Click to collapse
...which one is it please?
THANX
buzz

Re: Record uplink/downlink speech streams? (WaveIn, TAPI, RI
there is no such a program. The only thing yor program can record is the sound from microphone. This can be tested by connecting a headset to the device and trying to record anything during call. Only ugly devices like Anextek SP230 can record both sides because microphone is wired to the speaker.
You cannot use RIL or TAPI to record calls. It is a limitation of both hardware and OS. Maybe WM2005 would support this.

Yes I don't thinck there is such a program (I've been looking for such a program for the past 2 weeks). All recording softwares you can find don't do much more than using the waveIn/waveOut API and so they record only the sound from the microphone.
Mamaich: Would the Anextek SP230 allow me to record properly both sides even if I use a headset while recording? How come the microphone is wired to the speaker? Does that mean that the sound going to the speaker goes also to the microphone? Wouldn't that introduce a lot of echo in the network during phone calls?
Even if we are limited by the OS there must be a way of getting the speech, because somehow the audio data must be stored somewhere in the device (either the GSM memory or the device memory). And that's what I would like to find out.
Thanks.

serbenet said:
Would the Anextek SP230 allow me to record properly both sides even if I use a headset while recording?
Click to expand...
Click to collapse
Yes. I owned Rover S1 which is based on Anextek and checked this.
How come the microphone is wired to the speaker? Does that mean that the sound going to the speaker goes also to the microphone? Wouldn't that introduce a lot of echo in the network during phone calls?
Click to expand...
Click to collapse
There is no echo during phone calls, but when using VoIP and similar programs the echo is terrible.
Even if we are limited by the OS there must be a way of getting the speech, because somehow the audio data must be stored somewhere in the device (either the GSM memory or the device memory).
Click to expand...
Click to collapse
Call is processed by the GSM module that has its own CPU (some sort of ARM with DSP extensions). You may reverse engeneer its firmware, but it is very complex. On XDAs its OS is based on "Nucleus PLUS - Version 1.0.G1.1" by ATI. In Anextek it is Siemens MC45 module.

Well all the people that claim that Vito sound software and others record both sides of conversation on the forum are lying?
Also it seems this article must be untrue
http://asia.internet.com/news/article.php/1383691
It says that 2 way recording is possible on the xda.
excerpt: Designed for busy people on the move, the device combines a color personal digital assistant (PDA) and General Packet Radio Services (GPRS) handset into one compact unit. Among the things that the users are able to do with the unit include recording a two-way phone conversation or a 'live' conversation, listening to music, watching video clips and reading e-books.
I have now tried vito sound recorder 2005 and it doesnt allow both sides of conversation to be recorded on my xda, I took a look around and it seems the old siemens sx45 had the capability with its recorder software, here is an excerpt.
The sound recorder lets you record from the built in microphone or for ultimate fun, both sides of a phone conversation, which can be played back whilst in conversation. Confuses the hell out of folks when they hear what they’ve just said.

In a sens they are not really lying because you can record both sides of conversation, if you allow the sound from the speaker to go to the microphone. If you don't use a headset and the volume of your speaker is high enough, that will be the case. The voice of the other part will go through the air before being recorded. That's why people claim that you can record both sides of conversation even though the quality of your recording is rubbish.

With vito you get perfect reproduction of the caller but zero from yourself.

Related

Possible to record a phone conversation?

Does anybody know if the Wizard is able to record a phone conversation (as a .wav file or simillar)?
Regards,
Henrik
I use notem on my wallaby, answer/make the call, open notem and press record. I don't see why it would work any differently on another ppc phone.
Two things...
Notem is a great little program that will record in wav or mp3.
#2. I am not aware of the laws of your country, but strongly advise that you not break any laws with my this info. It is only advice and I can't be held responsable for what you do with that info.
WHAT YOU DO IS NOT MY RESPONSABILITY!!!!
Other than that, Good Luck!
Thanks, I will give NoteM a try (as soon as my Qtec 9100 arrives).
BTW, in Denmark it is not illegal to record conversations as long as you are a part in the conversation.
If you have a Bluetooth connection on your PC and a BT headset, you could use your PC headset profile to connect to the phone ie. use the pc mic and speakers. Of course this will allow the pc to record the sound, in and out.
If that is annoying, you can then pair your headset with the PC and then it would be as if your headset is paired with your phone, the only diffirence is that the pc would be able to record the entire conversation.
This works fine for the himalaya since the himalaya itself cant record the incomming sound of a phone call. Wel, it can, but it is extreamely faint since it is the mic on the device wich records both the sound from the built in speaker and your voice.
This might be different for some of the newer devices, I dont know.
Duan
I live in Virginia, USA, and here, as long as one of the poeple in the conversation knows that it's being recorded, then it's legal too. Just curious, and I'm almost afraid to ask, but what problem are you having that this solution solves?
Good luck!
I have had one bad experience where a salesman and I made a deal on the phone.
Afterwards we disagreed about we actually had agreed on.
In this case I would have liked to have had a recording of the conversation.
But of course I'm not interested in recording each and every conversation (though it would be handy if the phone did this automatically and saved them with a timestamp etc.)
BTW, as far as one-button recording (you just press a button and it starts recording) start is concerned, you may want to check out the "One-button recording? Does it need to show the app window?" row in the article "Everything you may need to know about sound recording on the Pocket PC": http://pocketpcmag.com/blogs/menneisyys/112005SoundRecorderApps.asp
Almost all sound / audio recorder applications know this trick.
Menneisyys:
That's a nice article, but long and involved. I've bookmarked it for a long night in.
What's the short answer? What are the ways to record a phone call conversation? I receive orders and direction several times a day. This would be a fantastic option for me.
Thanks
PMRecorder is a good one.
http://1800message.com/usepmr.aspx
That looks good, but how/where do you d/l it?
Anyone tried any of these progz? Because I'm afraid that they could record my voice well but have problems with recording voice of person who calls me.
I use Resco Audio Recorder and I turn on the speakerphone - that does it ok. On one or two occasions I have managed to record both sides of the conversation without speakerphone. Haven't been able to do it reliably though, so I still use speakerphone if I need to be sure.
Obviosuly you can only utilize this in a quiet place with little interference.
itsmewhoelse said:
That looks good, but how/where do you d/l it?
Click to expand...
Click to collapse
Here is a download link: http://1800message.com/SPWM5CallRec.cab
Don't look at "SP" prefix, it works at qtek 9100, tested.
oscar_PL said:
Anyone tried any of these progz? Because I'm afraid that they could record my voice well but have problems with recording voice of person who calls me.
Click to expand...
Click to collapse
PMRecorder records calls with a normal quality.
Anyone know how the laws are in Finland about recording a phone call?
PMRecorder does not record the person you're taking to on the wizard, just the audio going into the microphone. Here,s what their support said about it.
"The Wizard does not support the dual audio path. the HTC Tornado and Cingular 2125 both support it, but the PPC Wizard does not. Sorry about that. It is a hardware limitation on the device."
I don't know about support answers. I just record an every call with two way voices.
Your speaker is probably loud enough for some audio from it to be captured by the mic. It does not directly record the audio stream though.
You may also want to read http://www.pocketpcmag.com/blogs/index.php?blog=3&p=513&more=1 on this subject - it gives a nice overview of what you can expect from PPC PE devices and what applications there're to (even automatically) record phone calls.
tried NoteM but when I launch it, my Wizard freezes.
anyone had the same experience?
NoteM gave me all sorts of problems on my wizard. When I uninstalled it, it made my mp3 ringtones stop working entirely. Had to hard reset to get them going again.

audio to internal speaker

Has anyone had any experience here writing code to take advantage of the internal speaker on our phone devices?
I know the external speaker is a standard peice of WM hardware, but there must be a way to call the internal speaker as well... this would be very useful for coding VOIP apps, as you can imagine.
Any thoughts?
Apparently the elusive Cicero networks product "Cicerophone" handled VOiP calls using the internal speaker!
This is something that other developing apps, such as Skype for WM, have failed to figure out so far.
Unfortunately, Cicero is very secretive, and as of yet no one else seems to know how to achieve this.
Anyone here know anything?
Which one is the internal speaker?
I think I wrote some audio routing code for this once...
V
By "internal" I mean the handset speaker usually reserved only for phone calls.
Windows Mobile devices have always had an audio speaker which is easily accessible to developers as a standard audio device. However, phone devices have a SECOND speaker, one that is smaller and not as amplified, which is used to listen to phone conversations when the device is held up to your head. This smaller speaker is what I've seen called the "internal", although I admit that it may not be the correct term for it.
I'm asking because I would actually like to route audio to that speaker for certain applications, especially VoIP, which until now has been going to loudspeaker (which causes audio feedback and privacy issues).
Do you have experience with this sort of thing?
Devices from Eten, e.g. X500, M700 have a skype service programe that redirect vioces from speaker to earphone. I don't know how it works but i just made a test to trick the service and direct the sound to earphone when making VOIP calls.
Dishe said:
Apparently the elusive Cicero networks product "Cicerophone" handled VOiP calls using the internal speaker!
Click to expand...
Click to collapse
Hi! Where can i buy/download cicerophone ?
Partially Solved!!!!!!!!!!!!!!!!!!!!!
I apologize for cross posting, but if you use the provided wired headset, everything is OK and voip (i.e.: Fring, etc) runs great, no echo e no voice feedback.
TRY IT!!!!!!!
I thought we all knew that already...
I've been using a BT headset and the BTAudio app to reroute all sound input/output to the headset. Problem is, you have to initialize it every time you want to make/receive a VOIP call, otherwise it will eat your battery very quickly since it keeps a constant audio channel live to your headset, even when there is no sound currently being played.
The problem is, when I leave voip on and slip the phone in my pocket, I'm not always using my wired headset and/or BT headset when the phone rings, and its silly that I can't use hardware that's sitting on my device in my hands.
Hi ,
I searched and couldn't find cicerophone anywehere .
do u know by any chance where we can download or buy it ?
tnx
no, its not for sale.
It was developed to sell to a telecom, and they are still trying to sell the technology. There never was a consumer edition of the software, only beta and evaluation versions that some people were fortunate enough to get their hands on for review purposes. They have done a very good job of keeping a VERY tight lid on this- its not available ANYWHERE, and they don't have any plan of making it available to the general public.
This tree has been barked up many times, its a lost cause.
Maybe some guy can have a look at the SkypeSettings.exe and SkypeSettings.dll files from Eten.
From what I saw, it only deals with the WAV1: device. No more devices are listed. Probably it captures the audio from it and than sends it to front speaker.
It does not run on my PDA. The settings tab also appears grayed out, so the app know it is not an Eten.
Unfortunately I could not debug the file on my device, given that IDA does not work on WM6, but probably both files have a check for Eten device, and if it is of a different brand the apps terminate.

Record a phone call

I've tried VITO Audio Notes and Resco Audio Recorder and neither of these seem to record the other half a phone call. I'd like to be prepared and have something which can record a call if need be, but nothing seems to work. I've read that this can be down to hardware. Has anyone managed to get anything like this working on the Xperia X1?
Thanks
this thread make me remember, I swear there was an in built call record function back there when this phone was previewed, where is it now?
it waz the providers callable mailbox. LOL
dialed by shortcut
i wish this feature, too. long time ago,.... but no htc device can record a live phone call.
but i hope, that a bluetooth wrapper will come in future. (to redirect audio streams. if the bluetooth driver can capture and send audio streams over air, a fake driver could handle like the bt driver. but without bt-hardware-chip is activated, to save power consumption. the recording app commincates with the wrapper/fake driver as BT-protokoll (fake headset device))
try to use the buildin notes application to record, it may help

HTC HD2 - call recording application

Hello everyone,
I am going to buy HTC HD2 from O2 soon. I've just spent a couple of
minutes in the shop playing with the phone and it's great.
The only thing keeping me away from buying it is the lack of call recording
application. I need to record my incoming and outgoing calls.
So, my question is: Have you come across any application to record the calls
if not, is anything like that in the pipeline?
Thanks,
Laurentius26 ROMS have Automatic Call recording, application which record phone calls automatically and after the call, ask you if you want to save them or not... it is call ACR... I have not managed to find the application that same application that works on the HD2 outside Lau's rom... maybe if we ask him?....
Anyway, yes there is an application..
doctorcete said:
Laurentius26 ROMS have Automatic Call recording, application which record phone calls automatically and after the call, ask you if you want to save them or not... it is call ACR... I have not managed to find the application that same application that works on the HD2 outside Lau's rom... maybe if we ask him?....
Anyway, yes there is an application..
Click to expand...
Click to collapse
Would be great to have that on the HD2, but I don't want to flash my HD2!
Try Audio Notes Touch at from iWindowsMobile at iwindowsmobile.com/mobile-audio-recorder.html
Enjoy - http://forum.xda-developers.com/showthread.php?t=536472
Fatherboard said:
Enjoy - http://forum.xda-developers.com/showthread.php?t=536472
Click to expand...
Click to collapse
thanks, but my point was laurentius has it working on his rom.....
this version..well
"Devices that only work one way
Touch HD2
HTC XDA2
Xperia X1"
Apparently ACR suffers from very low caller volume and I've just tried Audio Notes Touch v1.03 and its the same.. really would be nice to find a fully working set of software that will work on our HD2's..
Hi Terry,
I ve noticed you are with O2. Did you have any problem
using ANT 1.3 in the UK, as it says its "These applications are not legal in all countries".
You said:"suffers from very low caller volume", cld u tell me more pls.
Can you hear the conversation well when re-listen? (does it help if u plug your headphones in to re-listen?)
Is there any noise in the background? Is it enough clear to understand the talk?
I am not a native speaker thats why I am asking about the details.
Thanks
This works on some depending how the mic is wired.
http://www.resco.net/pocketpc/audiorecorder/
qwerty1q said:
Hi Terry,
You said:"suffers from very low caller volume", cld u tell me more pls.
Can you hear the conversation well when u plug your headphones?
Is there any noise in the background? Is it enough clear to understand the talk?
I am not a native speaker thats why I am asking about the details.
Thanks
Click to expand...
Click to collapse
To be honest I did forget to mention one important thing which is I always use a bluetooth headset which may well have an effect so I'll have to try it again without it..
With the bluetooth it records my voice perfectly but the caller can hardly be heard as they are very quiet...(this is by playing it back with bluetooth switched off and listening to the phones speaker..if I playback a recording while still connected to bluetooth I hear nothing at all!) Sorry but I dont use plug in headphones of any sort at all as I don't like getting tangled up in wires
There is no problem with background hiss or static but you would need to be somewhere really quiet to be able to hear the recorded callers voice (in fact on my second test call,I couldn't hear it at all) no need to applogise for your language..this is the only one I know so it's me who should be blushing from ignorance.
Now going to try again but without bluetooth...
Well,if you use the phone without bluetooth it seems to work perfectly...my voice was crystal clear and the other voice was as clear as it was when I was speaking to them (obviously if you have poor reception due to your connection, quality of the recorded voice will be at the same level)
I've also just found some other recorders that I'm going to test out ,when I can, to see if any of them offer bluetooth support!

Acer A500: Microphone, Skype, Gtalk

Using Skype, Gtalk, etc with A500.
I tried to make a call with Skype (Skype testing service) - the sound quality was poor.
Tried to make a call to another Skype user - I could hear him well, but my voice was muffled.
Solution:
Just plug in a headphone/earpiece (that has NO microphone) into the headset. You can then use the internal mic on the A500 to make your calls over Skype. The sound quality is very good in both skype and gtalk.
I did try my Iphone's earpiece, which has a mic, but the sound was muffled.
Hope this helps.
banksia said:
Using Skype, Gtalk, etc with A500.
I tried to make a call with Skype (Skype testing service) - the sound quality was poor.
Tried to make a call to another Skype user - I could hear him well, but my voice was muffled.
Solution:
Just plug in a headphone/earpiece (that has NO microphone) into the headset. You can then use the internal mic on the A500 to make your calls over Skype. The sound quality is very good in both skype and gtalk.
I did try my Iphone's earpiece, which has a mic, but the sound was muffled.
Hope this helps.
Click to expand...
Click to collapse
I have to do this too, do any others not have to do this?
I spoke with my wife a few minutes ago and asked her how I sounded the other day. I used Gtalk and she did too... she was able to hear me and I was very clear.
Not only that, but I was using 3G with only a single bar. Had poor video quality obviously, but sound was flawless.
Called with video on gTalk, being on WIFI - good quality audio, average video...
Skype working with no problem, too
slavikf said:
Called with video on gTalk, being on WIFI - good quality audio, average video...
Skype working with no problem, too
Click to expand...
Click to collapse
where did you guys find the gtalk and Skype with video
wanderer82680 said:
where did you guys find the gtalk and Skype with video
Click to expand...
Click to collapse
Uhh gtalk has video with gmail gtalk or other supporting android device.
Skype I think has video only with select Verizon handsets or something like that
wanderer82680 said:
where did you guys find the gtalk and Skype with video
Click to expand...
Click to collapse
Only GTalk had video calling feature for me. It just was here originally. Called from my Desktop with web-cam to my Acer.
Skype - audio only. No video. (yet? )
ok got you. thanks guys
how did you guys managed to use gtalk with video in canada? Isn't it only available in states ?
Nope It is available everywhere in the world.
If the person you are trying to reach has a video version of gtalk you should see a green camera on the side.
PS for those that do not have a video version of gtalk on their android phone you can use a free app called vtok which allows videoconferencing with gtalk client
That is what i have been using on my HTC DHD and it works great.
Sent from my A500 using XDA Premium App
Where is the microphone located ? I'm never sure which areas to aim my voice towards when speaking.
Holding the A500 in portrait mode, with the volume control button on the right, look for a small hole on the right side, between the glass and the bezel.
It is about 5 inches from where the power switch is located.
________<----- on/off
| |
| |
| | <---- mic
| |
_________
If you have the Acer case, the mic is cover by the velcro tab (go figure).
Is there a mic for the front camera?
I can't seem to find one.
Thank you. Took me a minute but I found it. Voice to text has been very difficult thus far in comparison to my nexus 1.
is there a software fix to the mic issue?
banksia said:
Using Skype, Gtalk, etc with A500.
I tried to make a call with Skype (Skype testing service) - the sound quality was poor.
Tried to make a call to another Skype user - I could hear him well, but my voice was muffled.
Solution:
Just plug in a headphone/earpiece (that has NO microphone) into the headset. You can then use the internal mic on the A500 to make your calls over Skype. The sound quality is very good in both skype and gtalk.
I did try my Iphone's earpiece, which has a mic, but the sound was muffled.
Hope this helps.
Click to expand...
Click to collapse
thanks so just download the skype and you are in business. Is this easy to use sir?
found a fix, you can use an external mic the one built in is good but the software is making it retard. If you plug in a headphone with a mic in it or just a plain old mic it will work great, i have tested it for a good 3 hours, it works. Much much better sound.
google voice search doesn't work for $$$$ no matter how good your mic is. 3.1 was a huge ****up by acer HUGE
Can someone do some modification so that we can use video as people in galaxy s did?
my mcs are worthless can't do anything with them no voice commands work neither will the search or Skype or GT. Absolute bs
My mic works flawlessy for google voice search i have no idea how?
I think the issue is that some folks aren't used to a true noise cancelling mic. It's using a dual analog noise cancelling mic. so it's filtering noise while capturing your voice or capturing your voice 'twice' if you're using it properly/close by.
If you're trying to use the Mic in a noisy area, it may cancel some of your voice as noise unless you speak up or put it somewhat close to your face or speak directly facing it. In other words, picture yourself on a video call. When you set yourself up to be seen by the camera properly, that is ultimately when the Mic will be at it's best.
I imagine people are using it with with a phone's mic in mind but they are unfortunately not the same. A phone's mic is located as close to the mouth as possible without allowing users to blow into it. The mic on the A500 is located away/out of finger reach, primarily and directly facing your mouth.
In the end, I think the best advice for using the mic is telling you to use it like you're on a speakerphone call. Clear, precise vocalization. You can also run the best test with the Voice Recorder to kind of hear how well your voice is picked up from various angles. I found, as I mentioned before...that I am most clear in either portrait or landscape mode with the tablet roughly a foot to 18 inches from my face, similar to how I'd hold it for a web cam. I found that if I spoke as if I were using a speakerphone, I got the best results....even while the TV is on or music is playing. I lost ground however, when I lay the tablet flat on a surface or docked out of line of sight, that is, beside me or elsewhere. I also have no issues with using Google Voice Search.

Categories

Resources