Bubo

Please, could you  tell me how to record sound from microphone in VB 2005 EE . If you would be so kind anything simply.

Thanks.



Re: Visual Basic General Recording sound from microfphone in VB 2005 EE

cheyenne

cunis ta tu agus cead mile failte




Re: Visual Basic General Recording sound from microfphone in VB 2005 EE

Bubo

I don't understand, in spite of this thank you.



Re: Visual Basic General Recording sound from microfphone in VB 2005 EE

ReneeC

These fora only speak English.






Re: Visual Basic General Recording sound from microfphone in VB 2005 EE

Bubo

Is it possible at all

 





Re: Visual Basic General Recording sound from microfphone in VB 2005 EE

Bubo

Is there any sample



Re: Visual Basic General Recording sound from microfphone in VB 2005 EE

cheyenne

sorry bubo

I wish I could help but the only way I know to do that would be to open another program...like super mp3 recorder

i.e

process.start.smrpro.exe

the help is not very good on here lately. and I am only learning......

maybe you should re post your question........and then just maybe someone might help

sorry






Re: Visual Basic General Recording sound from microfphone in VB 2005 EE

Bubo

That's allright, cheyenne.

I want to record sound in my programme.

Thank you.





Re: Visual Basic General Recording sound from microfphone in VB 2005 EE

Blader

Try DirectX SDK.



Re: Visual Basic General Recording sound from microfphone in VB 2005 EE

Bubo

Thank you, but it seems too dificult for me.





Re: Visual Basic General Recording sound from microfphone in VB 2005 EE

Prime Digits

You might try this site. I found it to be easy to follow.

http://www.geocities.com/smigman.geo/mci/wav.html

I may be working on the same goal soon, I'll check back to see if this helps for you.

Sam




Re: Visual Basic General Recording sound from microfphone in VB 2005 EE

Bubo

Thank you very much!

I I tried it but this program for Visual Basic 4.0. It doesn't work in Visual Basic 2005 Express Edition.

I am much obliged.

Bubo





Re: Visual Basic General Recording sound from microfphone in VB 2005 EE

Blader

Public Class Form1

Private Declare Function mciSendString Lib "winmm.dll" Alias "mciSendStringA" (ByVal lpstrCommand As String, ByVal lpstrReturnString As String, ByVal uReturnLength As Integer, ByVal hwndCallback As Integer) As Integer

Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click

' record from microphone

mciSendString("open new Type waveaudio Alias recsound", "", 0, 0)

mciSendString("record recsound", "", 0, 0)

End Sub

Private Sub Button2_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button2.Click

' stop  and save

mciSendString("save recsound c:\record.wav", "", 0, 0)

mciSendString("close recsound", "", 0, 0)

End Sub

Private Sub Button3_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button3.Click

' play audio

My.Computer.Audio.Play("c:\record.wav", AudioPlayMode.Background)

End Sub

End Class





Re: Visual Basic General Recording sound from microfphone in VB 2005 EE

Bubo

It's beautiful. It works.

Thanks, Bubo.





Re: Visual Basic General Recording sound from microfphone in VB 2005 EE

CraftyFirewitch

Wow, thank you!!! I was looking for a solution like this for a week now! (I was trying to work with overcomplicated sound class libraries that are not even implemented in VB.NET to do exactly what this code does until I stumbled across this thread)

I have a couple of questions:

Is it possible to record the sound and then play it without having to store the file in the harddrive

If it's not possible, then is there a way to delete the record.wav file after playing it

Thanks