I am a newbie to vb.net. I am trying to learn how develop a basic voice recorder that saves to a .wav file. Found a .dll including its source code posted, that can do this at:
Can convert it to vb.net, view code, etc. If I can get it working it can help me learn how to create additional voice recorder/player features.
My other program which authors apps as .exe programs uses JavaScript to load external .dll's and call their functions. This would allow me to test the .dll and try out its functions. New to vb.net, I can't figure out the 2 or 3 functions in this .dll sufficiently to create the JS syntax required to call them from the other authoring program. The JS syntax requires the function name in quotes, followed by its parameters (type and value).
I've also tried to convert the to an .exe but get error codes asking to add code items that I'm afraid I don't yet know how or where to add.
If an experienced vb.net user could take a look at the .dll at the link above and suggest some way to specify the function calls and their parameters, I would be appreciative.
Thanks for your reply. I was able, using the vb.net vb wizard to convert the .dll and look at it. The challenge is as follows:
My main program would be able to launch the .dll to record sound if I knew the .dll's function calls. They would need to be in the format that the my program needs, which is a scripting variation of JS 1.1(ECMA-262). I am attaching a text file with the .dll-type scripting syntax and examples.
The main program can also launch an external .exe program (if microphone.exe were available) and operate it via buttons if these contained the launch file action plus the correct command line parameters/switches to record, stop, save as .wav file, etc. It would be preferable to run an external .exe in the background, rather than display an interface. So, having the ability to run the .exe as minimized to tray or embedded would be important. However, I have no idea how to get an .exe version from the .dll or have it run minimized or embedded.
So, either way would work: .dll plus function calls in correct Opus syntax or an .exe version with command line parametrs/switches specified so they could be launched and run minimized or embedded.
A very tough challenge for a newbie! Any help would be appreciated.
How don't you know the dll's function call, didn't you referance it? Also I have some tts/vtt stuff from microsoft that is made for .net I can find the link for them if you want.
I woke up like 4 seconds ago and my computer was flashing about new replys to this, i really should turn that off. Anyways its to early for me be the think about background apps. I think to get it to minimize into system tray isnt there a system tray icon control?
I did try every possible combination of calling functions like "RecordStart" and "RecordStop" adding the Opus script syntax items indicating no interface (set to "false"), no return (set to "None") and string for the .wav file name in the stop function to save the recording to. Nothing worked. The .dll loads, but I can't figure out the correct names for the functions and other Opus syntax required items for these functions. The text file shows examples of what info is needed in the function calls and its syntax. I haven't been able to figure these out from the source code.
Thanks for your ideas. Any additional help is welcomed.
Yes, I am just guessing. I am new to VB and really don't understand it yet. So, I am just guessing about the names and parameters for functions, trying them, without any success.
uhhh thats not going to work. You can't just have a dll and use it. You have to reference it into the program, then you should probably do something like this
Code:
Imports *whatever namescape is for the dll is*
dim withevents *the name you want* as *whatever the main class is* = new *whatever the main class is*