Results 1 to 6 of 6
- 10-14-2012, 10:32 AM #1
Member
- Join Date
- Oct 2012
- Posts
- 3
- Rep Power
- 0
How to simulate microphone using sockets...something similar to ROBOT for mouse
guys i am trying to make a program in which i take audio input from some other device using sockets and then using that audio simulate microphone .
I have done mouse,keyboard successfully can any one tell how to do this...
- 10-14-2012, 03:52 PM #2
Re: How to simulate microphone using sockets...something similar to ROBOT for mouse
Sockets are a networking technology, is that what you really mean?
- 10-15-2012, 05:22 PM #3
Member
- Join Date
- Oct 2012
- Posts
- 3
- Rep Power
- 0
Re: How to simulate microphone using sockets...something similar to ROBOT for mouse
yep , actually i am trying to send audio streams from some other device to this pc via sockets (TCP) and i was wondering how to use that audio as the audio from microphone
- 10-15-2012, 05:35 PM #4
Re: How to simulate microphone using sockets...something similar to ROBOT for mouse
So first you need to record the audio - and if you plan on doing it live, then you need to work with streams and buffer the audio. From there, you can just send data packets to the other machine and decode them. Have you done anything with recording the audio yet?
- 10-15-2012, 06:06 PM #5
Member
- Join Date
- Oct 2012
- Posts
- 3
- Rep Power
- 0
Re: How to simulate microphone using sockets...something similar to ROBOT for mouse
yep , i have done it....
using Playing Back Audio (The Java™ Tutorials > Sound)
- 10-15-2012, 07:53 PM #6
Re: How to simulate microphone using sockets...something similar to ROBOT for mouse
Ok, then your audio data is just a byte array. You can break the byte array into chunks, and send each chunk over tcp. You can either do this directly by streaming the bytes out, or by encapsulating in a container class and sending via object serialization.
Similar Threads
-
Real Time - Working on instant captured sound signal from microphone
By cielle in forum Advanced JavaReplies: 2Last Post: 12-01-2010, 02:16 PM -
Is there a way to make robot use a virtual mouse?
By tom99 in forum New To JavaReplies: 10Last Post: 10-14-2010, 01:33 AM -
How to simulate mouse/key in a component?
By crikey in forum Advanced JavaReplies: 2Last Post: 08-09-2010, 04:10 PM -
Can I import data from microphone?
By manolis_kakou in forum Advanced JavaReplies: 6Last Post: 06-02-2010, 04:36 PM -
reading from microphone port
By chintito in forum Advanced JavaReplies: 0Last Post: 01-12-2008, 04:13 AM


LinkBack URL
About LinkBacks
Reply With Quote
Bookmarks