Results 1 to 6 of 6
  1. #1
    Join Date
    Oct 2012
    Posts
    3
    Rep Power
    0

    Question 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...

  2. #2
    quad64bit's Avatar
    quad64bit is offline Moderator
    Join Date
    Jul 2009
    Location
    VA
    Posts
    1,323
    Rep Power
    7

    Default Re: How to simulate microphone using sockets...something similar to ROBOT for mouse

    Sockets are a networking technology, is that what you really mean?

  3. #3
    Join Date
    Oct 2012
    Posts
    3
    Rep Power
    0

    Default 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

  4. #4
    quad64bit's Avatar
    quad64bit is offline Moderator
    Join Date
    Jul 2009
    Location
    VA
    Posts
    1,323
    Rep Power
    7

    Default 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?

  5. #5
    Join Date
    Oct 2012
    Posts
    3
    Rep Power
    0

    Default Re: How to simulate microphone using sockets...something similar to ROBOT for mouse


  6. #6
    quad64bit's Avatar
    quad64bit is offline Moderator
    Join Date
    Jul 2009
    Location
    VA
    Posts
    1,323
    Rep Power
    7

    Default 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

  1. Replies: 2
    Last Post: 12-01-2010, 03:16 PM
  2. Replies: 10
    Last Post: 10-14-2010, 02:33 AM
  3. How to simulate mouse/key in a component?
    By crikey in forum Advanced Java
    Replies: 2
    Last Post: 08-09-2010, 05:10 PM
  4. Can I import data from microphone?
    By manolis_kakou in forum Advanced Java
    Replies: 6
    Last Post: 06-02-2010, 05:36 PM
  5. reading from microphone port
    By chintito in forum Advanced Java
    Replies: 0
    Last Post: 01-12-2008, 05:13 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •