Capturing sound samples

hi , i need the best way to capture sound samples from an opened Microphone port
is it by directly using a TargetDataLine and how ?
and thanks

Hope this program will help you.
http://www.jsresources.org/examples/SimpleAudioRecorder.java.html

Similar Messages

  • Problem of capturing sound

    I'd like to capture sound from sound card and use the following code to get the device list.
    Vector deviceList = CaptureDeviceManager.getDeviceList(new AudioFormat("linear", 44100, 16, 2));
    But the compiler tell me :
    can not resolve the symbol
    symbol : constructor AudioFormat (java.lang.String,int,int,int)
    location: class javax.sound.sampled.AudioFormat
    Vector deviceList = CaptureDeviceManager.getDeviceList(new
    I have already inport the javax.sound.sampled.*; packages
    Please help me !

    this form of AudioFormat is found in jmf package
    import javax.media.*;
    if you have jmf package

  • Can I use a Bluetooth headphone/microphone for capture sound instead of normal iPhone mic when shooting video?

    Can I use a Bluetooth headphone/microphone for capture sound instead of normal iPhone mic when shooting video?
    The sound when I record video is not so good, so I'm trying to use the Bluetooth headphone/microphone to capture a person voice but not know which setting to use.

    Hi Robert
    Thanks for answering. I didn't know where to post other than the bluetooth forum which is relatively quiet and had no answers forthcoming.
    Yes the voice isn't reaching the amp although it is registering on the input bar in the Sound System Prefs, just won't "play through" as it were. I can't see how it could be done I was just hoping someone might see something I am missing.
    It seems a shame that you can't do it as iTunes on an old iBook makes a good juke box for DJ'ing and with everything becoming wireless these days it seems sensible that you could cut that one last wire.
    Mike

  • Capturing Sound with microphone

    I need code that will capture sound through a microphone, please help. Thank You.

    and can someone possibly explain this code for please:
              CaptureDeviceInfo di = null;
              Vector deviceList = CaptureDeviceManager.getDeviceList(
              new AudioFormat( "linear", 44100, 16, 2 ) );
              if ( deviceList.size() > 0 )
                   di = (CaptureDeviceInfo)deviceList.firstElement();
              Processor p = Manager.createRealizedProcessor(di.getLocator());
              DataSource source = p.getDataOutput();
              /*The source object returned from the Processor can then be turned into a Player
              *object by calling Manager.createPlayer().  To capture it to an audio file
              instead, a DataSink can take the data instead:/
              DataSink sink;
              MediaLocator dest = new MediaLocator("file://output.wav");
              try {
                        sink = Manager.createDataSink(source, dest);
                        sink.open();
                        sink.start();
              catch (Exception e)
              }

  • Capturing Sound

    Capturing Sound with Electro magnets
    https://www.reddit.com/3epdzn/
    https://www.reddit.com/3epf8t/
    https://www.reddit.com/3epghp/

    I've just finished transferring some vinyl to my eMac. I used the Sound Studio application that came with the eMac to do the transfer, and used ClickRepair to get rid of clicks. I haven't burnt the stuff to CD, but I'd probably use iTunes if I did.
    I can't comment on the pre-amp thing: I had my turntable connected to a receiver and cabled from Tape Rec to the eMac input jack.
    If you go to Audio Midi Setup in your Utilities folder and set it up as pictured here, you'll be able to monitor the sound through the eMac speakers or the headphones, if you want.
    eMac Combo 1GHz/1GB/60GB   Mac OS X (10.4.7)   CanoScan D646U, Canon iP1600, CrossFire 120GB, DSL, D-Link DI-624

  • Problem capturing sound with picture on Premiere 6.0

    I've been using this system successfully for 10 years and I promise it's the last project with it, I'm going HD with CS4 next month. But...
    Using Premiere 6.0. MAC G4 Dual 1000 processors, lots of RAM, 4 hard drives. For some reason when I capture a clip from tape through my Sony DS11 deck, the picture comes in fine, but without sound.  I've checked all the audio settings, they're all right.  I tried changing all the settings one at a time, it doen't help. I tried using the camera to capture from instead of the deck, no help.  I tried a tape shot with a different camera, nope.  I tried previous tapes that I was able to capture picture and sound from, now no sound. Oddly, occasionally it will work, maybe one in 20 tries. I'm finishing an important project and only need to lay in the narration, which I record with the camera using a good mike, but of course I can't capture sound. I'm tempted to reload Premiere onto the computer, but I'm afraid it won't hook up with the hundreds of clips already captured. Any suggestions?

    FW Capture, whether from your deck, or from your camera, should be just a byte-for-byte data transfer, using the Capture settings that you have chosen. You have confirmed that the settings are 100% correct, and your problem is with both the deck and the camera. That leaves the FW cable, and the connection on your Mac. Now, with either, I would expect that both the video and audio would be messed up, and not just one stream. Still, those would be the next things that I would check.
    Since my normal go-to utility, G-SPOT is not ported for the Mac, I'd use MediaInfo, and run one of the Captured files through it, just to see if there is an Audio stream - just on the off-chance that it's a playback issue. Assume that you are doing the Capture to MOV, so playing in QT Player should be a test too.
    Other than that, I don't have any ideas to help.
    Good luck,
    Hunt

  • Help ! Screen Capture sound every 30 seconds

    Hi all I need help! Last week in the middle of my work day nothing special, the system started playing the camera shutter / screen capture. I started timing between the shutter, every 30 seconds, very annoying - the camera shutter sound - same as the shift-4 screen capture sound and same as the sound that occurs when you press the back button in terminal. I have a 15 inch mac book pro. 2009 model.
    I wondered whether someone had installed a hidden shell script or apple script program and is capturing my screen and maybe sending it over the net.
    I have checked activity monitor and did not notice any programs running like "screencapture" or anything else like that. I have also turned hidden files visable on, but i can't find any screen capture directory or files: .jpg, .pdf, .png files I should be seeing lots of them for every 30 seconds per capture. Back to terminal here is my dump from ps ax command:
    PID TT STAT TIME COMMAND
    1 ?? Ss 0:07.47 /sbin/launchd
    10 ?? Ss 0:01.75 /usr/libexec/kextd
    11 ?? Ss 0:01.15 /usr/sbin/DirectoryService
    12 ?? Ss 0:01.16 /usr/sbin/notifyd
    13 ?? Ss 0:00.19 /usr/sbin/syslogd
    14 ?? Ss 0:00.15 /usr/sbin/diskarbitrationd
    15 ?? Ss 0:02.08 /usr/libexec/configd
    16 ?? Ss 0:01.65 /usr/sbin/distnoted
    19 ?? Ss 0:00.54 /usr/sbin/mDNSResponder -launchd
    26 ?? Ss 0:00.19 /usr/sbin/securityd -i
    31 ?? Ss 0:00.41 /usr/sbin/ntpd -c /private/etc/ntp-restrict.conf -n
    32 ?? Ss 0:00.06 /usr/sbin/cron
    34 ?? Ss 0:00.07 /System/Library/PrivateFrameworks/MobileDevice.frame
    35 ?? Ss 0:00.04 /sbin/SystemStarter
    39 ?? Ss 0:11.81 /System/Library/Frameworks/CoreServices.framework/Fr
    40 ?? Ss 2:11.63 /System/Library/CoreServices/loginwindow.app/Content
    41 ?? Ss 0:00.06 /usr/sbin/KernelEventAgent
    43 ?? Ss 0:34.52 /usr/libexec/hidd
    44 ?? Ss 0:01.19 /System/Library/Frameworks/CoreServices.framework/Ve
    46 ?? Ss 0:00.00 /sbin/dynamic_pager -F /private/var/vm/swapfile
    51 ?? Ss 0:00.16 /usr/sbin/blued
    52 ?? Ss 0:00.03 autofsd
    55 ?? Ss 0:00.10 BBDaemon
    61 ?? Ss 0:01.88 /System/Library/CoreServices/coreservicesd
    62 ?? Ss 1:37.87 /System/Library/Frameworks/ApplicationServices.frame
    63 ?? Ss 0:01.65 /usr/libexec/ApplicationFirewall/socketfilterfw
    67 ?? S 0:00.05 /Library/StartupItems/HWPortDetectdriver/HWPortCfg
    146 ?? Ss 0:00.01 /System/Library/Frameworks/OpenGL.framework/Versions
    160 ?? Ss 0:06.90 /usr/sbin/coreaudiod
    170 ?? Ss 0:10.15 /System/Library/PrivateFrameworks/DiskImages.framewo
    174 ?? Ss 0:00.58 /System/Library/PrivateFrameworks/DiskImages.framewo
    180 ?? Ss 0:00.71 /sbin/launchd
    184 ?? S 0:02.16 /System/Library/CoreServices/Dock.app/Contents/MacOS
    185 ?? S 0:06.26 /System/Library/CoreServices/SystemUIServer.app/Cont
    188 ?? S 0:02.26 /System/Library/Frameworks/ApplicationServices.frame
    191 ?? S 0:00.00 /usr/sbin/pboard
    199 ?? S 0:00.04 /System/Library/Frameworks/InputMethodKit.framework/
    201 ?? S 0:04.23 /System/Library/Input Methods/Kotoeri.app/Contents/M
    206 ?? S 0:00.28 /usr/libexec/UserEventAgent -l Aqua
    212 ?? S 0:00.04 /System/Library/CoreServices/AirPort Base Station Ag
    213 ?? S 0:24.59 BBLaunchAgent
    215 ?? S 0:00.15 /System/Library/CoreServices/Folder Actions Dispatch
    218 ?? S 0:00.28 /System/Library/CoreServices/Menu Extras/TextInput.m
    223 ?? S 0:00.23 /Library/PreferencePanes/Growl.prefPane/Contents/Res
    225 ?? S 0:22.03 /Users/salexsaa/Library/Application Support/RealNetw
    227 ?? S 0:00.03 /Users/salexsaa/Library/Application Support/RealNetw
    463 ?? S 0:41.93 /System/Library/CoreServices/Finder.app/Contents/Mac
    632 ?? S 2:48.51 /Applications/Google Chrome.app/Contents/MacOS/Googl
    638 ?? S 0:03.06 /Applications/Google Chrome.app/Contents/Versions/8.
    639 ?? S 0:22.09 /Applications/Google Chrome.app/Contents/Versions/8.
    642 ?? S 0:01.15 /Applications/Utilities/Terminal.app/Contents/MacOS/
    679 ?? S 3:27.94 /Applications/Google Chrome.app/Contents/Versions/8.
    692 ?? S 1:15.15 /Applications/Google Chrome.app/Contents/Versions/8.
    701 ?? S 0:01.71 /Applications/Preview.app/Contents/MacOS/Preview -ps
    815 ?? S 0:04.11 /Applications/Microsoft Office 2011/Office/Open XML
    1278 ?? S 0:00.39 /System/Library/Services/AppleSpell.service/Contents
    1287 ?? S 0:18.59 /Applications/Google Chrome.app/Contents/Versions/8.
    1297 ?? S 0:22.32 /Applications/Microsoft Office 2011/Microsoft Excel.
    1303 ?? S 0:00.05 /Library/Application Support/Microsoft/MAU2.0/Micros
    1323 ?? S 0:13.76 /Applications/Skype.app/Contents/MacOS/Skype -psn0
    1360 ?? S 0:08.29 /Applications/Google Chrome.app/Contents/Versions/8.
    1375 ?? S 0:22.34 /Applications/Google Chrome.app/Contents/Versions/8.
    1452 ?? S 0:02.12 /Applications/Google Chrome.app/Contents/Versions/8.
    1497 ?? SNs 0:00.18 /System/Library/Frameworks/CoreServices.framework/Fr
    1512 ?? Ss 0:00.01 /System/Library/CoreServices/backupd
    644 s000 Ss 0:00.03 login -pf salexsaa
    647 s000 S 0:00.01 -bash
    1525 s000 R+ 0:00.00 ps ax
    Please any suggestions??? as you can imagine im pulling my hair out. Please any ideas before i have to reinstall everything again i just finished a re-install. My last system had the Isight camera turning and flashing randomly now this...am i a victim of mac hacking???
    Help!!! Pls.

    Make sure the sound is coming from your speakers and not from your hard drive, by muting the speakers. If the sound continues, it may be your hard drive's heads parking (which shouldn't happen every 30 seconds either, but that's a very different problem). If it doesn't continue and is therefore exactly what you think it is, I'm as puzzled as you are.

  • Screen capture sound repeats every  30-40 seconds

    Hi all I need help! Last week in the middle of my work day nothing special, the system started playing the camera shutter / screen capture. I started timing between the shutter, every 30 seconds, very annoying - the camera shutter sound - same as the shift-4 screen capture sound and same as the sound that occurs when you press the back button in terminal. I have a 15 inch mac book pro. 2009 model.
    I wondered whether someone had installed a hidden shell script or apple script program and is capturing my screen and maybe sending it over the net.
    I have checked activity monitor and did not notice any programs running like "screencapture" or anything else like that. I have also turned hidden files visable on, but i can't find any screen capture directory or files: .jpg, .pdf, .png files I should be seeing lots of them for every 30 seconds per capture. Back to terminal here is my dump from ps ax command:
    PID TT STAT TIME COMMAND
    1 ?? Ss 0:07.47 /sbin/launchd
    10 ?? Ss 0:01.75 /usr/libexec/kextd
    11 ?? Ss 0:01.15 /usr/sbin/DirectoryService
    12 ?? Ss 0:01.16 /usr/sbin/notifyd
    13 ?? Ss 0:00.19 /usr/sbin/syslogd
    14 ?? Ss 0:00.15 /usr/sbin/diskarbitrationd
    15 ?? Ss 0:02.08 /usr/libexec/configd
    16 ?? Ss 0:01.65 /usr/sbin/distnoted
    19 ?? Ss 0:00.54 /usr/sbin/mDNSResponder -launchd
    26 ?? Ss 0:00.19 /usr/sbin/securityd -i
    31 ?? Ss 0:00.41 /usr/sbin/ntpd -c /private/etc/ntp-restrict.conf -n
    32 ?? Ss 0:00.06 /usr/sbin/cron
    34 ?? Ss 0:00.07 /System/Library/PrivateFrameworks/MobileDevice.frame
    35 ?? Ss 0:00.04 /sbin/SystemStarter
    39 ?? Ss 0:11.81 /System/Library/Frameworks/CoreServices.framework/Fr
    40 ?? Ss 2:11.63 /System/Library/CoreServices/loginwindow.app/Content
    41 ?? Ss 0:00.06 /usr/sbin/KernelEventAgent
    43 ?? Ss 0:34.52 /usr/libexec/hidd
    44 ?? Ss 0:01.19 /System/Library/Frameworks/CoreServices.framework/Ve
    46 ?? Ss 0:00.00 /sbin/dynamic_pager -F /private/var/vm/swapfile
    51 ?? Ss 0:00.16 /usr/sbin/blued
    52 ?? Ss 0:00.03 autofsd
    55 ?? Ss 0:00.10 BBDaemon
    61 ?? Ss 0:01.88 /System/Library/CoreServices/coreservicesd
    62 ?? Ss 1:37.87 /System/Library/Frameworks/ApplicationServices.frame
    63 ?? Ss 0:01.65 /usr/libexec/ApplicationFirewall/socketfilterfw
    67 ?? S 0:00.05 /Library/StartupItems/HWPortDetectdriver/HWPortCfg
    146 ?? Ss 0:00.01 /System/Library/Frameworks/OpenGL.framework/Versions
    160 ?? Ss 0:06.90 /usr/sbin/coreaudiod
    170 ?? Ss 0:10.15 /System/Library/PrivateFrameworks/DiskImages.framewo
    174 ?? Ss 0:00.58 /System/Library/PrivateFrameworks/DiskImages.framewo
    180 ?? Ss 0:00.71 /sbin/launchd
    184 ?? S 0:02.16 /System/Library/CoreServices/Dock.app/Contents/MacOS
    185 ?? S 0:06.26 /System/Library/CoreServices/SystemUIServer.app/Cont
    188 ?? S 0:02.26 /System/Library/Frameworks/ApplicationServices.frame
    191 ?? S 0:00.00 /usr/sbin/pboard
    199 ?? S 0:00.04 /System/Library/Frameworks/InputMethodKit.framework/
    201 ?? S 0:04.23 /System/Library/Input Methods/Kotoeri.app/Contents/M
    206 ?? S 0:00.28 /usr/libexec/UserEventAgent -l Aqua
    212 ?? S 0:00.04 /System/Library/CoreServices/AirPort Base Station Ag
    213 ?? S 0:24.59 BBLaunchAgent
    215 ?? S 0:00.15 /System/Library/CoreServices/Folder Actions Dispatch
    218 ?? S 0:00.28 /System/Library/CoreServices/Menu Extras/TextInput.m
    223 ?? S 0:00.23 /Library/PreferencePanes/Growl.prefPane/Contents/Res
    225 ?? S 0:22.03 /Users/salexsaa/Library/Application Support/RealNetw
    227 ?? S 0:00.03 /Users/salexsaa/Library/Application Support/RealNetw
    463 ?? S 0:41.93 /System/Library/CoreServices/Finder.app/Contents/Mac
    632 ?? S 2:48.51 /Applications/Google Chrome.app/Contents/MacOS/Googl
    638 ?? S 0:03.06 /Applications/Google Chrome.app/Contents/Versions/8.
    639 ?? S 0:22.09 /Applications/Google Chrome.app/Contents/Versions/8.
    642 ?? S 0:01.15 /Applications/Utilities/Terminal.app/Contents/MacOS/
    679 ?? S 3:27.94 /Applications/Google Chrome.app/Contents/Versions/8.
    692 ?? S 1:15.15 /Applications/Google Chrome.app/Contents/Versions/8.
    701 ?? S 0:01.71 /Applications/Preview.app/Contents/MacOS/Preview -ps
    815 ?? S 0:04.11 /Applications/Microsoft Office 2011/Office/Open XML
    1278 ?? S 0:00.39 /System/Library/Services/AppleSpell.service/Contents
    1287 ?? S 0:18.59 /Applications/Google Chrome.app/Contents/Versions/8.
    1297 ?? S 0:22.32 /Applications/Microsoft Office 2011/Microsoft Excel.
    1303 ?? S 0:00.05 /Library/Application Support/Microsoft/MAU2.0/Micros
    1323 ?? S 0:13.76 /Applications/Skype.app/Contents/MacOS/Skype -psn0
    1360 ?? S 0:08.29 /Applications/Google Chrome.app/Contents/Versions/8.
    1375 ?? S 0:22.34 /Applications/Google Chrome.app/Contents/Versions/8.
    1452 ?? S 0:02.12 /Applications/Google Chrome.app/Contents/Versions/8.
    1497 ?? SNs 0:00.18 /System/Library/Frameworks/CoreServices.framework/Fr
    1512 ?? Ss 0:00.01 /System/Library/CoreServices/backupd
    644 s000 Ss 0:00.03 login -pf salexsaa
    647 s000 S 0:00.01 -bash
    1525 s000 R+ 0:00.00 ps ax
    Please any suggestions??? as you can imagine im pulling my hair out. Please any ideas before i have to reinstall everything again i just finished a re-install. My last system had the Isight camera turning and flashing randomly now this...am i a victim of mac hacking???
    Help!!! Pls.

    I have also installed little snitch, nothing strange seems to be going out by way of connections. Only dropbox, i have deleted that but the noise still keeps going. I will have to reinstall again....any ideas pls.

  • How to capture sound into an mp3 file

    Hi all,
    I have a program to capture sound into a wav file . and it's wrkng.
    but in my site i have an mp3 player. can i capture the sound directly to an mp3 file?
    I use classes like AudioSystem, TargetDataLine, AudioFormat etc.
    For the file format i specify like
    AudioFileFormat.Type.WAVE
    like this can i do for mp3??
    Please help me...
    Thanx and Regards,
    sand...

    try with spool or UTL_FILE...
    Re: CSV into Oracle and Oracle into CSV
    SQL> spool c:\test1.csv
    SQL> select substr(str,2,length(str)-3) from (select regexp_replace(column_value,'\s*<[^>]*>[^>]*>',',') str from table(xmlsequence(cursor(select * from test_emp))));
    SUBSTR(STR,2,LENGTH(STR)-3)
    9999,fredi&apos;s,CLERK,2345,10-OCT-06,1250,123,20
    4567,STEWART,ANALYST,3456,02-APR-07,3200,215,30
    2345,Cockrel,CLERK,7566,23-JAN-82,800,30
    3 rows selected.
    SQL> spool off;

  • My Video Camera won't capture sound!

    My camera will not capture sound! I have done loud things to test it while recording, turned my sound all the way up, and played it to hear nothing. I put in headphones to try it, and once again i heard nothing. I was sure it was recording when I spoke and I know that there was supposed to be noise. What is wrong with my Nano?

    Run through these troubleshooting steps to see if this solves your problem. Let us know if this does it for you.
    http://www.apple.com/support/ipod/five_rs/nano5gen/
    i

  • Urgent help:JMF capture sound from sound card?

    I am trying to capture what I was playing on my computer using Java code. It's apparently different from capturing sound input through microphones. How can I manage to do this? Actually, while I play a song or something like that on my computer(server), I wanna capture it and send them to other computers(client) in the LAN.
    Thanks in advance!

    lichen782 wrote:
    I am trying to capture what I was playing on my computer using Java code. It's apparently different from capturing sound input through microphones. How can I manage to do this? Actually, while I play a song or something like that on my computer(server), I wanna capture it and send them to other computers(client) in the LAN.
    Thanks in advance!Ummmmm, you'd probably need to set your recording device to be "System mixer" and then it would work just like capturing from the microphone.

  • How to capture sounds

    ]hello experts
    I would like to know how to capture sounds from speaker( not microphone).
    well, let tell you what i wanna do ..
    I use windows media player plays an online radio, I wanna capture all the sounds and then save to a file.

    I would like to know how to capture sounds from
    speaker( not microphone).
    Correction: speakers are an output device, not an input device, so this is not possible.
    I use windows media player plays an online radio, I
    wanna capture all the sounds and then save to a file.Okay, what you want is to capture sound from the sound card's line in or input channel. Check out the JMF API.

  • Record sound sample from flash dynamic page

    Hello , I have a basic problem. I visited Emerson Lake and
    Palmers drummer Carl Palmers web page. It is www.carlpalmer.com
    When you enter the site , there appears a drumset picture. When you
    move your cursor without clicking on the drumset , it plays the
    drums. Google group members say it is a flash site . I want to
    record the sound samples at the same quality. How can I do it ? I
    tried some win audio recorder like programs but I could not
    succeed.
    Best ,
    Mustafa Umut Sarac

    Ever think that this may violate copyright law?
    If you have a legitimate use, you might try contacting the
    webmaster of the site and ask for the originals.

  • External Mic not capturing sound. I have a VIXIA HF R400. Any ideas? I've tried multiple mic's.

    All of the mic's i've tried are 3.5mm jack and something that I could attached to someone for an interview type setting. I am not sure what I am doing wrong. Well, let me clarify, they a non-powered mic's. 
    So they DO actually capture sound, but not unless I adjust the camera setting and I put the mic right up to my mouth to and speak. 
    Camera has full battery etc. 
    Should i just buy a powered mic? Is that the solution?

    Yes, you should use a powered mike. The range of a mike without power is extremely limited.

  • Disable Camera Capture Sound on Nokia E72

    There are just four option from which I can choose the camera capture sound on my Nokia E72. I want to disable the camera capture sound, so that I can silently click some photographs. Help me out please.

    @rahulbgm49
    Whilst not condoning it users can move to region where this feature is not prohibited and have no reason to believe that this won't work upon E72:/t5/Eseries-and-Communicators/E71-turn-of-camera-quot-sound-quot/m-p/503039/message-uid/503039/highl...
    Happy to have helped forum with a Support Ratio = 42.5

Maybe you are looking for