Capture audio from other app? - Android Software Development

Hi, I am new to android dev, but know java and other languages fairly well from before.
I have a simple question: is it possible to capture the audio from not only the mic or voice calls as defined in MediaRecorder.AudioSource, but instead from another app?

reb8 said:
Hi, I am new to android dev, but know java and other languages fairly well from before.
I have a simple question: is it possible to capture the audio from not only the mic or voice calls as defined in MediaRecorder.AudioSource, but instead from another app?
Click to expand...
Click to collapse
Like what kind of sounds. You could unpack the app and look for the audio files.

Suppose I want to build an application that broadcasts my telephone conversations on the net in real time. The infrastructure of such an app seems like a fairly straight-forward thing: use MediaRecorder to record the voice, throw it onto the net (ok, this is the opposite of simple, but you get the idea).
Now, suppose I'd like to broadcast the sound from an mp3 application instead. As I'd like to do it in real time, looking for it on disk is not the solution.

Related

Voice Activation Software

I quite like the Cyberon voice dialer utility, and use it as much for the applications as for voice dialing (saves me navigating around the Wizard when I can't be bothered), but I kinda feel like it could do a little more and wondered if there was either an update (can't see one on the Cyberon webpage) or maybe some alternative software you guys could recommned?
I was thinking about one that uses voice commands to securely lock the phone for instance, or maybe one that can do macros, control functions within Media Player (pause, play, next, etc.), and other stuff. I realise this might be a bit hopeful, but some advice/recommendations on good voice activation software woud be nice, nonetheless.
Thanks in advance.
Mannish Boy said:
I quite like the Cyberon voice dialer utility, and use it as much for the applications as for voice dialing (saves me navigating around the Wizard when I can't be bothered), but I kinda feel like it could do a little more and wondered if there was either an update (can't see one on the Cyberon webpage) or maybe some alternative software you guys could recommned?
I was thinking about one that uses voice commands to securely lock the phone for instance, or maybe one that can do macros, control functions within Media Player (pause, play, next, etc.), and other stuff. I realise this might be a bit hopeful, but some advice/recommendations on good voice activation software woud be nice, nonetheless.
Thanks in advance.
Click to expand...
Click to collapse
There're several additioanl voice controller apps; see my earlier reviews linked from here.
This link does not work since the whole site has been upgraded
I have search the new FTP and could not find it...
Can you send it though PM?
This way I can try it and maybe help you to solve the issue you are facing
Tx
Eric
microsoft voice command will launch any app in the startmenu, you can rename the app to something easily recognised. you can add shortcuts to the startmenu or programs folder to point to any app with arguments, within the shortcut.
I don't know of any way to control a media player by voice other than simply launching the player. I need to use the headset for voice control if listening to audio, the recognition doesn't work if music is playing via the speaker.

background sounds during phone call...

I want to develop an app that, when i receive or make a phone call , to be able to play some ambient sounds during the call. like trafic.. cinema .. etc..
i think it's interesting while for example you are in bed, and your boss calls you & anable the Traffic mp3 Lol.. this could be fun..
I believe the only way to do this it's with the WM6 SDK tools that give you some phone api tools.... i think!. any Ideas?
gc9n said:
I want to develop an app that, when i receive or make a phone call , to be able to play some ambient sounds during the call. like trafic.. cinema .. etc..
i think it's interesting while for example you are in bed, and your boss calls you & anable the Traffic mp3 Lol.. this could be fun..
I believe the only way to do this it's with the WM6 SDK tools that give you some phone api tools.... i think!. any Ideas?
Click to expand...
Click to collapse
there is an app in gigabyte's rom which does this...have a look at that
and where is that? thanks my friend!
I believe the only way to do this it's with the WM6 SDK tools that give you some phone api tools.... i think!. any Ideas
Click to expand...
Click to collapse
What level of experience do you have with this side of developing for the phone? Have you done much investigation into the nature of the Windows Mobile modem and com port?
V
BUMP, it is very interesting idea.
In Japan some downtown hotels offer channels on the TV you can play to make all sorts of 'background' noise. This plays a key role in business men maintaining their loyalty to these hotels that offer hourly rates. I too would be extremely interested in hearing about an application like this.
i like very much this idea. i was searching this application two months ago but i didn't find it
I, in fact, have a similar app for my Nokia 6680, and it's very useful when you want an excuse for being late
background sounds during calls
any progress here on app development?

Recording telephone call

I would like to be able to record an telephone call by pushing a softkey.
I have HTC voice recorder installed, but it is not easy to activate recording while in a call.
Also as far as I know, there is only the possibility to program ONE hardwarekey (longpress off hook), and that one is already occupied by another program.
So I wondered whether it is somehow possible to program the softkeys that appear when I am involved in a call?
Or do you know another possiblity to activate call recording simply?
im interested too!
Action Screen
Hi there,
I don't know if this helps ur case but when you use actionscreen you can program your softkeys under the today tab, might be possible te get a record button then, not sure but i thought i mention it mine are set to left Action and right Shutdown, anyway hope this helps..
Caved
Can the diamond record both sides of a telephonic call ?
I think no... plz someone can contradicts me ?
However you need Softkey Manager for diamond
It should be invented.
When you record a call using the voice recorder it only records your own voice, but when you put the call on speakerphone it will record both parties. Probably because of the sound from speaker loops back in to the mic.
I'm already searching so long for a good working call recording tool but still no eureka.
can somebody not create a program that will record every phone call, in and out, from both parties, id love to have something like that. much better than the standard.
it's an hardware limitation af all windows mobile based pdas
resco audio recorder can auto record, but the other party voice will be slightly softer
You could also try Vito Audio Notes Touch. It also has an option to record all calls automatically. http://www.iwindowsmobile.com/mobile-audio-recorder.html
SkizZO said:
it's an hardware limitation af all windows mobile based pdas
Click to expand...
Click to collapse
Its a hardware limitation of all HTC based Windows mobile based PDAs... Some others can do it but not many. It's enough to drive a user to symbian
Evoluti0n said:
resco audio recorder can auto record, but the other party voice will be slightly softer
Click to expand...
Click to collapse
I just installed this one.
The loudness of the recording of the other party seems just enough.
I don't want to record all calls.
THe program also offers the possibility to assign actions like 'start recording' to a hardware button. I tried several buttons (off hook, left, action, home), but none of them work, or have already another function, during a call.
A possible option could be to have an extra touch button on the screen when you are involved in a call (just like the button to put a call on hold). But I don't know how that could be done.
ANy ideas?
Today I discovered another unwanted side effect of this recording program.
When I made an phonecaal it appeard that the other party could not hear my voice.
The cause appeared that the recording program was still running in the background. AFter I closed this application the sound was OK again.
On my old nokia phone recording voice calls could be done with one key press
think u can try to turn off recording in background so u can view the recording screen during a caqll n stop the recording. i dont have such issue of others no hearing my voice during the recording
it's strange that such little feature, that so many other phones have had in the past, is so hard to get on an htc device. and funnily enough, i remember reading in manual for the original touch, that before recording a call you have to check whether it's legal and inform the other side... so there's gotta be a way
maybe someone feels like taking a challenge of making a simple app, that would allow you to record the conversations?
the only htc device i ive used that supports recording of both sides is htc startrek
there must be a way to record both sides of a phone call (without a speaker...)
there must be a way to do this, if the audio stream cannot be accessed programatically how do bluetooth headsets work?
i'm sure there would be lots of cool applications for this if someone could work it out, but it never seems to arouse much interest in the techie experts on here when i've mentioned it in the past.
in my very old WM5 smartphone SP5 it can record the call of both sides with a good quality by using this program
(not tested in the diamond try it if you want)
tesing it..
installed it on my diamond - it seems to work - but there is no option to record phone calls...
+ \there is an automates answering machine caleled: "isecretary" - it canrecord incommind phonecalls- maybe they have found a solution??

Best Call Recorder (both Sides Recording)

Hey guys does anyone know what is the best recorder to record both sides?
i tried resco audio recorder 4.1 but it only record my side of talkin.
IS THERE ANY SOFTWARE OR HACK TO RECORD BOTH SIDES ?????
what phone are you using? I don't think it can be done w/ the kaiser or hermes, but i could be wrong
You can try also with Vito audio notes
I haven't test it yet so I can"t ensure it will works
I Have the Titan and yes i have tried VITO AudioNotes v1.32 but it it ONLY records my Voice and not THE CALLER VOICE.
there gotta be some kind of Hack or something and there are so many smart people here so PLEASE HELP
arvinghost said:
I Have the Titan and yes i have tried VITO AudioNotes v1.32 but it it ONLY records my Voice and not THE CALLER VOICE.
there gotta be some kind of Hack or something and there are so many smart people here so PLEASE HELP
Click to expand...
Click to collapse
it records the two sides of the speaker is on
yea but thats not very clear.
try Resco audio recoder
Resco audio recorder records just about everything, it also has an option to record your calls as they are made, and save them to a folder you specify, it's automatic after that, all calls will be recorded and dated, only thing it misses is logging the phone numbers, hope that helps
http://www.resco.net/pocketpc/audiorecorder/
arvinghost said:
Hey guys does anyone know what is the best recorder to record both sides?
i tried resco audio recorder 4.1 but it only record my side of talkin.
IS THERE ANY SOFTWARE OR HACK TO RECORD BOTH SIDES ?????
Click to expand...
Click to collapse
Sorry to disappoint you but probably about 90% of HTC devices aren't capable of recording both side of a call unless you use loud speaker. I've tried many voice recording programs if not all of them on my kaiser without any positive results. Apparently it is a hardware limitation as well as one ofthe WM flaws. There was plenty threads on the subject just use search if you want to find out more.
maybe you could run 2 recorders at the same time, one recording from the mic (input) and the other recording from what the speaker hears (output) and then stitch them together using some audio editing tool. I'm sure there is a way to write a program that does all of this automatically on your device, your battery would just run out a lot faster.
who speak that A PHONE was not MADE to record call because HARDWARE THINGS. Is little wrong.
If HTC or any other device can not to record a call, its more because PROGRAM than HARDWARE.
Its just simple, if it is a HARDWARE THING. Standard programs that use AUDIO FILTERS OR LAYERS can not work.
Iam using WOW HD SETTIngs and when i change any seting this change to in phone . so this mean a FILTER can be between the original call and what we can listen, If i can change this so its possible to remap or intercept the audio to. ( HTC UNIVERSAL)
If we don't have Programs that do it its more because be hard to program a filter to each device.
In last CASE we still have Bluettoth , if someone REALLY WANT do a kind or program to record ( i mean loose time doing this). Can use a BT remap layer to a local program, instead a OUTSIDE DEVICE.
I am sure there gotta be some kind of hack to the phone reg. maybe that will allow us to record both sides because once i installed a ROM to my phone i forgot which one it was but i was able to Listen to songs while i was talking on the phone so i am sure that is possible to be done.
Please somebody try to figure it out
PM Recorder does record both side.. it even records bluetooth conversation.. i have owned many wm devices and the last three(benq p51, i780, omnia) i have used all able to record phone conversation using PM recorder.. the only drawback is the format it is saved in.. only the program can play it..
arvinghost said:
I am sure there gotta be some kind of hack to the phone reg. maybe that will allow us to record both sides because once i installed a ROM to my phone i forgot which one it was but i was able to Listen to songs while i was talking on the phone so i am sure that is possible to be done.
Please somebody try to figure it out
Click to expand...
Click to collapse
what format does it save in?
forget the posts about ....
vito can make all your jobs - BUT WITHOUT RECORDING the caller's point of view.
these record is only which you hear from speaker to micro -> so that is very noisly - or you can set that the call will be made on speaker, but this is not what you want
i'm playing with pda's the last 10 years - and there is no solution for it.
there is no solution for recording both side from the call !!!
# # #
of course from the technical point of view -> this is possible, but nowbody have develope a tool and the api from MS is not opensource
cu camel
camro said:
forget the posts about ....
vito can make all your jobs - BUT WITHOUT RECORDING the caller's point of view.
these record is only which you hear from speaker to micro -> so that is very noisly - or you can set that the call will be made on speaker, but this is not what you want
i'm playing with pda's the last 10 years - and there is no solution for it.
there is no solution for recording both side from the call !!!
# # #
of course from the technical point of view -> this is possible, but nowbody have develope a tool and the api from MS is not opensource
cu camel
Click to expand...
Click to collapse
Not true ... I did managed to get it to work on my ASUS P525 (WM5) using Resco Audio Recorder but not on my TyTnII.
As far as I know, this is illegal in some countries. I looked into a similar program a while back and recording conversations (without the other party knowing up front) is criminal in the U.S.
It's a cool concept and I know it's possible. I got it working once, but for the life of me I can't remember what I used. Beware of the legal issues and good luck getting it to work if you decide to.
it can be done
camro said:
forget the posts about ....
vito can make all your jobs - BUT WITHOUT RECORDING the caller's point of view.
these record is only which you hear from speaker to micro -> so that is very noisly - or you can set that the call will be made on speaker, but this is not what you want
i'm playing with pda's the last 10 years - and there is no solution for it.
there is no solution for recording both side from the call !!!
# # #
of course from the technical point of view -> this is possible, but nowbody have develope a tool and the api from MS is not opensource
cu camel
Click to expand...
Click to collapse
I have recorded both sides of a call using the notes record featur. I have a tmo wing and I have no idea what rom i was using seems it changes every week.
"...As far as I know, this is illegal in some countries. I looked into a similar program a while back and recording conversations (without the other party knowing up front) is criminal in the U.S.
..."
So, if this is TRUE. All nokia with SYBIAN and sony phones i already have in my life are under law.
The only plataform didnt record PHONE CALL is WM and HIGHT TECHS ONES LIKE WM.
The low END phones and SYMBIAN this is a trivial thing.
Iam just looking my sony w300 and t610 here ( 10y old phones?). and they do it, well a lot..
yea my friend has a Nokia phone and he can record both sides AND he lives in the USA.
anyways i tried the vito note but when i have it on recording, I cant make a call or hear anything until i stop the recording.
Also when i am already on the call, Vito does not start the recording why?
By the way i heared that it is possible to record while you are talking on Bluetooth but you need audio gateway driver or something like that ..
ANY IDEAS???????
yes it would be amazing if we could get what seems to be such a simple feature such as call recording on our expensive phones....
even 10 year old phones have this feature... so sad that our phones can do so much yet not this simple little thing.

[Q] Audio decode, recognize a keyword

Hello,
Constantly-on speech recognition listening for just one keyword.
I am trying to do is making my app constantly listen for one keyword that will fire an intent whenever the keyword is recognized.
I know that this will use a lot of battery. and I don't want to use google's speech recognition.
For example - you are talking with a person. Normal conversation. The phone is actively listening and recognizing every single said word and listening for the keyword.
Let's say the keyword is "cheese" in this instance.
Whenever you say "cheese," the application fires an intent that starts up another part of the app.
I tried to record myself saying "cheese" into wav file
And then comparing it to every word that was spoken..
my problem is finding the right tool that can help me perform this signal comparison in the simplest way so it can work on any device..
tried musicg library with fingerprint function but it does not work so well..
tried some other fft/cross-corelation/ect.. functions but I didn't get the result I expected..
any help (examples or some library would be best) that you can give me will be very appreciated ..
Thanks.
It looks like Java has its own speech recognition API (basic info about it here: http://en.wikipedia.org/wiki/Java_Speech_API).
I also found the official FAQ with instructions on how to download and use it etc. http://www.oracle.com/technetwork/java/jsapifaq-135248.html
Hopefully, it's pretty high quality and works well. Good luck!
marwan.kallal said:
It looks like Java has its own speech recognition API (basic info about it here: http://en.wikipedia.org/wiki/Java_Speech_API).
I also found the official FAQ with instructions on how to download and use it etc. http://www.oracle.com/technetwork/java/jsapifaq-135248.html
Hopefully, it's pretty high quality and works well. Good luck!
Click to expand...
Click to collapse
Thank you!!! I'll try it
Wow fantastic question,how about refering the sourse codes of google voice?So u can know what they have done....:thumbup:
.........................................
visit www.fb.com/softcrush
Just FYI, speech recognition is some complex stuff. I believe that Google uses some really advanced techniques such as deep neural networks for their speech recognition.
Here are some links if anyone's interested:
Wired Article
Google Research (Theory Based)

Categories

Resources