Jump to content
Sign in to follow this  
richietheprogrammer

'Automating' the microphone

Recommended Posts

richietheprogrammer

Hey all, I was wondering if there is a way to "automate" the microphone in an output way. Meaning, is there a way to write a function that will force a track to be played and sent to the microphone? Basically, instead of having to say a specific thing on the microphone over and over again, is there a way to automate the microphone to send a recorded track? Not sure if what Im asking makes sense, but any help would be greatly appreciated!

Share this post


Link to post
Share on other sites
JLogan3o13

As the microphone is just an input device, can you explain more about why you would want to send pre-recorded sound to the microphone? Are you trying to pipe something through the microphone into another application, or get it to play on the speakers?


√-1 2^3 ∑ π, and it was delicious!

How to get your question answered on this forum!

Share this post


Link to post
Share on other sites
richietheprogrammer

Thanks for your reply. Basically I answer phone calls using my computer (VOIP), and I say the same sentence very frequently. I want to record my voice and have it automatically play over the microphone when I run the function (code).

Share this post


Link to post
Share on other sites
jdelaney

If your audio output (speaker) is close to your input (mic), then you can use microsofts voice api.

something like:

$obj = ObjCreate ("SAPI.SpVoice")

$obj.Speak "Something"

edit: oh, that won't solve your issue :)

Edited by jdelaney

IEbyXPATH-Grab IE DOM objects by XPATH IEscriptRecord-Makings of an IE script recorder ExcelFromXML-Create Excel docs without excel installed GetAllWindowControls-Output all control data on a given window.

Share this post


Link to post
Share on other sites
nitekram

create the wav file, and use a hot key to play it?

EDIT - or maybe that is not what you are looking for?

Edited by nitekram

All by me:

"Sometimes you have to go back to where you started, to get to where you want to go." 

"Everybody catches up with everyone, eventually" 

"As you teach others, you are really teaching yourself."

From my dad

"Do not worry about yesterday, as the only thing that you can control is tomorrow."

 

WindowsError.gif

WIKI | Tabs; | Arrays; | Strings | Wiki Arrays | How to ask a Question | Forum Search | FAQ | Tutorials | Original FAQ | ONLINE HELP | UDF's Wiki | AutoIt PDF

AutoIt Snippets | Multple Guis | Interrupting a running function | Another Send

StringRegExp | StringRegExp Help | RegEXTester | REG TUTOR | Reg TUTOT 2

AutoItSetOption | Macros | AutoIt Snippets | Wrapper | Autoit  Docs

SCITE | SciteJump | BB | MyTopics | Programming | UDFs | AutoIt 123 | UDFs Form | UDF

Learning to script | Tutorials | Documentation | IE.AU3 | Games? | FreeSoftware | Path_Online | Core Language

Programming Tips

Excel Changes

ControlHover.UDF

GDI_Plus

Draw_On_Screen

GDI Basics

GDI_More_Basics

GDI Rotate

GDI Graph

GDI  CheckExistingItems

GDI Trajectory

Replace $ghGDIPDll with $__g_hGDIPDll

DLL 101?

Array via Object

GDI Swimlane

GDI Plus French 101 Site

GDI Examples UEZ

GDI Basic Clock

GDI Detection

Ternary operator

Share this post


Link to post
Share on other sites
richietheprogrammer

I use a headset so I cannot play the track and hope that my mic picks it up. Is there no way to send something to the microphone? No protocol? Thanks!

Share this post


Link to post
Share on other sites
JLogan3o13

You're missing the point. Sending output (sound from the computer) to a device expecting input (microphone sending sound to the computer), is going to end up in feedback if anything. It sounds as though what you want to do is take a sound file, and pipe that into your VOIP software, e.g:

  • Script picks up soft phone on ring.
  • Script plays automated greeting.
  • Script hands access of the VOIP software off to your headset.

Is this closer to what you mean?


√-1 2^3 ∑ π, and it was delicious!

How to get your question answered on this forum!

Share this post


Link to post
Share on other sites
richietheprogrammer

I see what you are saying. I am looking for a script that plays automated greeting. I cannot script the VOIP software that we use. I guess I had thought that it would be possible to set the input that the microphone takes to be a digital sound file, instead of me talking.

Share this post


Link to post
Share on other sites
Xandy

I piped the audio output to the mic input on my sound card (something like that anyway). Male to male connector and a y double female. Then I generated a phone number list, a mad-lib generator and called my friends all day with random computer voice and rate with my computer. I got some attention.

EDIT: Oh yeah the Y was so I could still hook the stereo speakers into the audio output.

Edited by Xandy
  • Like 1

Share this post


Link to post
Share on other sites
Tomoya

You can use a combination of programs to do this. You can set up a virtual audio cable (VAC) and then set that as the received input for the program you use. A good way to get some videos and methods on this is to search Google for "Play music over Ventrio" or "Play music over TeamSpeak." While it's not the exact program you are looking for they will give you the guides to setting up a VAC and routing it into another program.

  • Like 1

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this  

  • Similar Content

    • Subz
      By Subz
      Hello all.
      in the process of packaging an application (Voip) and looking at trying to automate capturing the following information to add to a config.xml file:
      Default: Playback Device Name and Guid
      Example:
      Name: Speakers (Realtek High Definition Audio)
      Guid: {0.0.0.00000000}.{a46ce930-4dd3-49b5-8e8e-7c8a2fdc3925}
      Default Microphone Device Name and Guid
      Example:
      Name: Microphone (Realtek High Definition Audio)
      Guid: {0.0.1.00000000}.{cff6f838-33ce-4c2d-9f77-98f4e19e4a75}
      I've seen the following post by @trancexx, which gives me the Default Audit Device Name, but unsure how to get the Guid or the Microphone Name and Guid.  I believe to get the Guid, I would need to use PKEY_AudioEndpoint_GUID but unsure how to code this.  If anyone can assist or point me in the right direction it would be much appreciated.
      Cheers Subz
       
    • nullschritt
      By nullschritt
      Hey forum!
      I'm getting close to releasing a beta version of my encrypted p2p messenger I'm coding.
      One feature I'de really like to implement is audio chat.
      I've searched through the forum, and can't seem to find any examples of capturing audio from the microphone, without writing it to a file.
      Capturing it to a file makes the audio very choppy, as bits and pieces get cut out between audio files.
      I believe at one point I saw a udf that allows capturing audio directly as a stream(that I could then send as packets across the network)
      Could anyone point me in the right direction, as to how to go about capturing audio as a stream of data that I could then break into packets and send?
      Thanks!
      -null
      Edit: There used to be an example in the BASS UDF, but I can't seem to locate it, or figure out exactly how to go about streaming audio with the included documentation.
    • slammy
      By slammy
      I was wondering if there is a way to detect if a microphone or any hardware for that matter is plugged into the system using a autoit command.
×