This week's book giveaway is in the Other Languages forum.
We're giving away four copies of Rust Web Development and have Bastian Gruber on-line!
See this thread for details.
Win a copy of Rust Web Development this week in the Other Languages forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Tim Cooke
  • Campbell Ritchie
  • Ron McLeod
  • Liutauras Vilda
  • Jeanne Boyarsky
Sheriffs:
  • Junilu Lacar
  • Rob Spoor
  • Paul Clapham
Saloon Keepers:
  • Tim Holloway
  • Tim Moores
  • Jesse Silverman
  • Stephan van Hulst
  • Carey Brown
Bartenders:
  • Al Hobbs
  • Piet Souris
  • Frits Walraven

can we record sound in headphone?

 
Ranch Hand
Posts: 530
Hibernate Eclipse IDE Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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?
 
Rancher
Posts: 4686
7
Mac OS X VI Editor Linux
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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
Posts: 530
Hibernate Eclipse IDE Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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
Posts: 4686
7
Mac OS X VI Editor Linux
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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
Posts: 530
Hibernate Eclipse IDE Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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
Posts: 530
Hibernate Eclipse IDE Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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.
 
Ranch Hand
Posts: 52
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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
Posts: 530
Hibernate Eclipse IDE Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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
Posts: 52
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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
Posts: 530
Hibernate Eclipse IDE Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
But my headphone doesn't have a mic.
 
Ranch Hand
Posts: 35
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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
Posts: 4686
7
Mac OS X VI Editor Linux
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

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
Posts: 530
Hibernate Eclipse IDE Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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
Posts: 35
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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.
 
lowercase baba
Posts: 13019
66
Chrome Java Linux
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

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.
 
Kocha Sapam
Ranch Hand
Posts: 35
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
^agree
 
Nam Ha Minh
Ranch Hand
Posts: 530
Hibernate Eclipse IDE Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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.
 
Greenhorn
Posts: 1
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I'm using a recorder called TuneFab Screen Recorder, it can record audio from the computer but I'm not sure whether it can record voice that comes from headphone.
 
reply
    Bookmark Topic Watch Topic
  • New Topic