views:

259

answers:

0

Hi i want to record voice and send it throw Bluetooth stream , the problem is the recorder accepts only I.O Stream And write at the 'stream' without using (stream.write),

''using openNETCF

Dim Stream1 As Stream Stream1 = File.OpenWrite("\My Documents\" & txtFileName.Text & ".wav") m_Recorder = New OpenNETCF.Media.WaveAudio.Recorder m_Recorder.RecordFor(Stream1, 5400,OpenNETCF.Media.WaveAudio.SoundFormats.Stereo16bit11kHz) '' accsept only i.o stream and record into it

The Bluetooth stream I could write byte

''using InTheHand 32feet.NET dim Buffer1 As Byte Dim stream As System.IO.Stream = Nothing stream = client.GetStream() '' return i.o stream stream.Write(Buffer1, 0, BufferLen)

i try to do

m_Recorder.RecordFor(client.GetStream(), 5400,OpenNETCF.Media.WaveAudio.SoundFormats.Stereo16bit11kHz)

but i got exception in the recorder "openNETCF" package without details ..

How to connected them so I could record and write at the same time (could I use memorystream)

Thanks