Logo 
Search:

Java Forum

Ask Question   UnAnswered
Home » Forum » Java       RSS Feeds

Capturing live audio data from a microphone?

  Asked By: Meenachi    Date: Mar 13    Category: Java    Views: 1380
  

I work with Jbuilder7 and I wanna capture live audio data from a microphone then
send it to my client...I 'm sure that my mic works but the following
code return null for "devicelist" ,I wanna know what is worng in this way and
what is the
best way for capturing live audio data from a mic,Can you help me??


Vector deviceList = CaptureDeviceManager.getDeviceList(new
AudioFormat(AudioFormat.LINEAR,22500,16,2));

if (deviceList.size() >0)
{
di = (CaptureDeviceInfo)deviceList.firstElement();
}
else{
System.out.println("No any Device");
}

Share: 

 

No Answers Found. Be the First, To Post Answer.

 
Didn't find what you were looking for? Find more on Capturing live audio data from a microphone? Or get search suggestion and latest updates.




Tagged: