richietheprogrammer Posted January 11, 2013 Posted January 11, 2013 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!
Moderators JLogan3o13 Posted January 11, 2013 Moderators Posted January 11, 2013 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? "Profanity is the last vestige of the feeble mind. For the man who cannot express himself forcibly through intellect must do so through shock and awe" - Spencer W. Kimball How to get your question answered on this forum!
richietheprogrammer Posted January 11, 2013 Author Posted January 11, 2013 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).
jdelaney Posted January 11, 2013 Posted January 11, 2013 (edited) 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 January 11, 2013 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.
nitekram Posted January 11, 2013 Posted January 11, 2013 (edited) create the wav file, and use a hot key to play it? EDIT - or maybe that is not what you are looking for? Edited January 11, 2013 by nitekram 2¢ 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." 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
richietheprogrammer Posted January 11, 2013 Author Posted January 11, 2013 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!
Moderators JLogan3o13 Posted January 11, 2013 Moderators Posted January 11, 2013 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? "Profanity is the last vestige of the feeble mind. For the man who cannot express himself forcibly through intellect must do so through shock and awe" - Spencer W. Kimball How to get your question answered on this forum!
richietheprogrammer Posted January 11, 2013 Author Posted January 11, 2013 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.
Xandy Posted January 11, 2013 Posted January 11, 2013 (edited) 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 January 11, 2013 by Xandy richietheprogrammer 1 Human Male Programmer (-_-) Xandy About (^o^) Discord - Xandy Programmer MapIt (Tile world editor, Image Tile Extractor, and Game Maker)
Tomoya Posted January 12, 2013 Posted January 12, 2013 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. Xandy 1
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now