Jump to content
Sign in to follow this  
TheOnlyOne

get sound from microphone

Recommended Posts

TheOnlyOne

hello i have found this example

#include <Media.au3>
MsgBox(0,"Media UDF by Svennie (sound record example)","When you click OK it starts with recording, when you press Escape it will stop recording and show a dialog to save your file.")
HotKeySet("{ESC}","StopRecording")
$Stop=1
Func StopRecording()
    $Stop=0
EndFunc
$Media=_MediaCreate(6)
_MediaRecord($Media)
While $Stop
WEnd
_MediaStop($Media)
$File=FileSaveDialog("","","Wave files (*.wav)")&".wav"
If @error Then
    _MediaClose($Media)
    Exit
EndIf
_MediaSave($Media,$File)
_MediaClose($Media)

instead of sending it to this file it should send it over tcp

the problem is that i dont know what to send

the $media only produce 1 ?

any help here?

the media.au3 is in the attachments

Media.au3

Edited by TheOnlyOne

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  

×

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.