aspose file tools*
The moose likes Meaningless Drivel and the fly likes can we record sound in headphone? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Other » Meaningless Drivel
Bookmark "can we record sound in headphone?" Watch "can we record sound in headphone?" New topic
Author

can we record sound in headphone?

Nam Ha Minh
Ranch Hand

Joined: Oct 31, 2011
Posts: 498

Hi folks,

How can we record sound which is playing in the headphone? That means we cannot hear the sound without wearing the headphone, but the software can record that sound nicely.

Is that possible?


PM Me If You Want to get Urgent Help on Java Programming
Pat Farrell
Rancher

Joined: Aug 11, 2007
Posts: 4646
    
    5

Depends on what is feeding the headphone. You could put microphones in the headphones and record. Or you could plug recorder directly into the
output jack that you are using to feed the headphone. Use a Y if you have to.

More generally, any loudspeaker will act as a microphone. It may be low quality, and the gain may be too low to use without specialized amplifiers, but a microphone and a loudspeaker are electrically identical.

Both headphones and microphones distort the music. So recording the output of a headphone with a mic is going to layer in at least two sets of distortions.
Nam Ha Minh
Ranch Hand

Joined: Oct 31, 2011
Posts: 498

Hi Pat,

Thanks for your answer. My question seems to be misunderstood. I mean, is there any software that is able to record sound coming out from the computer to the headphone? I tried Audacity but it cannot.
Pat Farrell
Rancher

Joined: Aug 11, 2007
Posts: 4646
    
    5

I'm still confused as to what you really want.

If you are playing a file that is on your computer, you are done. If you are streaming something on the computer, say a Netflix movie, then you don't want to send it to a headphone, what you want to do is redirect the stream's audio to a file. Audacity is designed to help you record a real microphone into a song. That sounds to me to be far from what you want.

I don't understand what the headphone is doing in your scenario. Do you literally mean the headphone? or do you mean the headphone jack? or perhaps you mean whatever sound is going out to the headphone jack.

Nam Ha Minh
Ranch Hand

Joined: Oct 31, 2011
Posts: 498

Hi Pat,

Sorry for my bad explanation.

I don't want to record sound from a microphone or a loudspeaker, it is quite trivial.

This example illustrates what I want: while listening to music through a headphone, I'd like to record what I hear from the headphone too.

Does that make sense?
Nam Ha Minh
Ranch Hand

Joined: Oct 31, 2011
Posts: 498

and a more real life scenario: suppose you are doing a voice chat with your friends with a headphone, you want to record sound from both of you and your friends.
Vijay Tyagi
Ranch Hand

Joined: Feb 15, 2010
Posts: 52
Sound recorder that comes with Windows can record what you are hearing from a headphone
you will obviously have both mic and headphone plugged into the computer in this case
Nam Ha Minh
Ranch Hand

Joined: Oct 31, 2011
Posts: 498

Hi Vijay,

Thanks for your reply. I tried with Sound Recorder in Windows but it cannot record what I am hearing from the head phone. NOTE: I want to record the music playing in the headphone, not my voice through the microphone. Hope you get the idea.
Vijay Tyagi
Ranch Hand

Joined: Feb 15, 2010
Posts: 52
In my case I can record music playing from the headphone/ear phone
It is a ear set with both mic and earphone in one unit.
Nam Ha Minh
Ranch Hand

Joined: Oct 31, 2011
Posts: 498

But my headphone doesn't have a mic.
Kocha Sapam
Ranch Hand

Joined: Aug 04, 2012
Posts: 35
If I understood you correctly, the sound card will do the trick, cant guarantee about quality, though, change the recording/capturing device to analog mixer from front mic/any mic ;D in the device setting of your sound driver.
Then record with audacity or mixxx or ANY recording software.

Hope it helps.

Evan.
Pat Farrell
Rancher

Joined: Aug 11, 2007
Posts: 4646
    
    5

Nam Ha Minh wrote:you want to record sound from both of you and your friends.


That is usually an option you click/select on the software you are using to chat. Skype still doesn't have this but there are lots of add-ons that do
http://thenextweb.com/apps/2011/02/09/5-great-ways-to-record-skype-calls/

You can record Skype video calls with the program Evaer Skype video recorder.

Evaer supports recording Skype video calls to your hard disk with side-by-side, separate files, audio-only, local-webcam-only and remote-webcam-only mode. Up to 10 ways Skype group video recording is supported. It's very easy to use with friendly UI.

You can also use Pamela or VodBurner.
Nam Ha Minh
Ranch Hand

Joined: Oct 31, 2011
Posts: 498

Hi Kocha,

Thanks for your reply. I tried Camtasia program and it can record what I hear from the headphone nicely.

My problem is now how to do that with Java Sound API.
Kocha Sapam
Ranch Hand

Joined: Aug 04, 2012
Posts: 35
So the ultimate reason is java stuff lol!

You want to code a program similar to that camtasia in java ?

Maybe I'll a have look at it.

See you soon.
fred rosenberger
lowercase baba
Bartender

Joined: Oct 02, 2003
Posts: 11229
    
  16

Nam Ha Minh wrote:Hi Kocha,

Thanks for your reply. I tried Camtasia program and it can record what I hear from the headphone nicely.

My problem is now how to do that with Java Sound API.

This is the meaningless drivel forum...you are not likely to get the help you need here for actual java questions.

I would suggest starting a new thread in the Java In General forum. There is a lot of garbage in this thread, else I'd just move it. But with all the misunderstandings and false starts, I'd think a new thread would be best.

There are only two hard things in computer science: cache invalidation, naming things, and off-by-one errors
Kocha Sapam
Ranch Hand

Joined: Aug 04, 2012
Posts: 35
^agree
Nam Ha Minh
Ranch Hand

Joined: Oct 31, 2011
Posts: 498

Guys, finally I found a software which can do the trick: Camtasia.
I am not sure if Java Sound API can do that, I opened a topic here, but there is no answer.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: can we record sound in headphone?