Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > Java > Checking Sound Input Availability at Microphone.

Reply
Thread Tools

Checking Sound Input Availability at Microphone.

 
 
NightCrawler
Guest
Posts: n/a
 
      02-12-2008
Hi,
I am doing a project in which I need to deal with Sound input/
output.
I am able to play a wave file, and also able to take input from the
microphone and play it back.
To play live data I just keep on dumping the bytes read from
microphone to a stream, and then play it as required. It doesn't
mater
that if mic is really getting input or the person holding mic is
silent.
Now my problem is, after starting the TargetDataLine, as soon
as that
person starts speaking/making some sound, I need to do somethings, I
am stuck a bit here, not able to find any event that will tell me so,
plz help me.
I'll be Thankful for the solution...
------------------------------------------------------------------------------------
Tags: Java Sound, Microphone,
------------------------------------------------------------------------------------
 
Reply With Quote
 
 
 
 
NightCrawler
Guest
Posts: n/a
 
      02-14-2008
Hey Guys Plz help me...
 
Reply With Quote
 
 
 
 
Mark Space
Guest
Posts: n/a
 
      02-14-2008
NightCrawler wrote:
> Hey Guys Plz help me...


I don't remember seeing anything like this in the API. You likely have
to fill buffers (a Clip class, if I remember correctly) and scan the
contents yourself for whether anything was record in the buffer that you
want to hear and transmit.

 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Checking Input Availability At MIC of the System NightCrawler Java 0 02-12-2008 05:31 PM
web service availability checking =?Utf-8?B?QVZM?= ASP .Net 1 07-20-2007 01:21 AM
checking 'document.body' availability (opera) Sundew Shin Javascript 7 08-24-2005 06:29 PM
Checking for X availability Flavio codeco coelho Python 4 01-16-2005 04:08 PM
No sound. Yellow exclamation by" Windows sound system". =?Utf-8?B?VGFueWE=?= MCSE 2 10-26-2003 07:44 PM



Advertisments
 



1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57