473,785 Members | 2,831 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Recording at stream

6 New Member
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),

Expand|Select|Wrap|Line Numbers
  1. ''using openNETCF
  2.  Dim Stream1 As Stream
  3. Stream1 = File.OpenWrite("\My Documents\" & txtFileName.Text & ".wav")
  4. m_Recorder = New OpenNETCF.Media.WaveAudio.Recorder
  5. m_Recorder.RecordFor(Stream1, 5400,OpenNETCF.Media.WaveAudio.SoundFormats.Stereo16bit11kHz) '' accept only i.o stream and record into it
  6.  
The Bluetooth stream I could write byte

Expand|Select|Wrap|Line Numbers
  1. ''using InTheHand 32feet.NET
  2. dim Buffer1 As Byte
  3. Dim stream As System.IO.Stream = Nothing
  4. stream = client.GetStream()  '' return i.o stream 
  5. stream.Write(Buffer1, 0, BufferLen)
  6.  
How to connected them so I could record and write at the same time (could I use memorystream)

Thanks
Jan 8 '09 #1
9 3861
RedSon
5,000 Recognized Expert Expert
@fevos
Have you tried
Expand|Select|Wrap|Line Numbers
  1. m_Recorder.RecordFor(client.GetStream(), 5400,OpenNETCF.Media.WaveAudio.SoundFormats.Stereo16bit11kHz)
Just replace the file writer stream with the IO stream. Wouldn't that work?
Jan 8 '09 #2
fevos
6 New Member
yeah first thing i try it is that but it does not work , but thanx for replay
Jan 8 '09 #3
RedSon
5,000 Recognized Expert Expert
what error do you get? Or what is the result?
Jan 8 '09 #4
fevos
6 New Member
i get an exception in the recorder libary "openNETCF" without details ..
Jan 8 '09 #5
RedSon
5,000 Recognized Expert Expert
wait if Client.GetStrea m() returns an IO stream and OpenNETCF.Media .WaveAudio.Reco rder.RecordFor( ...) takes and IO stream as it's first argument then what is the problem?

Do you have some documentation for the openNETCF package?
Jan 8 '09 #6
fevos
6 New Member
yes this the link openNETCF wav(i use recorder), and this the link for 32feet.net theat return client stream ,,,thanx man i appreciate your help .
Jan 8 '09 #7
RedSon
5,000 Recognized Expert Expert
what is the object type of "client"?
Jan 9 '09 #8
RedSon
5,000 Recognized Expert Expert
Nevermind I found it. client.GetStrea m() returns a type of NetworkStream which is a type of IO stream but I think you should try explicitly casting it as an IO stream.
Jan 9 '09 #9
fevos
6 New Member
thanks man , but it give me the same exception , i start new thread about Waveform Audio that record to buffer i hope I'll get your help there thank u so much ..
Jan 12 '09 #10

Sign in to post your reply or Sign up for a free account.

Similar topics

6
5547
by: Sugapablo | last post by:
I had an idea for something that I can't find any evidence if it exists, or if it can be done. I assume it can be done. What I'd like to be able to do, is to allow people who come to my website, click a button on the page to begin submitting an audio stream to the server. Basically, once the "record" button was hit by the client, an audio stream would be generated by the client's microphone and would be sent over port 80 (just like...
1
2436
by: Manfred Schwab | last post by:
Recording messages and print statements in a textfile during program execution. Is there a similar command to redirect errormessages or print statements into a standart asciifile during programm execution. I would like to echo the complete console output into a textfile and send this file as email at a certain point in time. The programm execution shall not be stopped.
0
1532
by: ajac | last post by:
In the windows xp system the sound recording system give us only 1 minute of recording time. I would like to get the "recording time Length " to the maximum. please let me know Urgently. Regards, ajac
4
1739
by: Lorn | last post by:
i have a very large data stream, on the order of 1.5 million records an hour (32 bytes per/record), which i would like to try and record to disk. it doesn't need to be iserted into a db, so flat files or binaries will probably be the end result. what would be the most efficient way of acheiving this with c++? the data is arriving via the internet on a broadband connection 3mbps and the hardware is an unraided uata-133 with a 1.4ghz athlon...
3
2189
by: Jussi Rasku | last post by:
Hello, I'm working on a small web-script that would allow me to remotely setup recordings to my tv-tuner (on my linux box). The idea is simple, but I'm unsure how to accomplish it. The idea: Using PHP generated www-page user could set mencoder to start recording at some specified time. The command is put to the crontab using linux "at" command.
6
2511
by: Dovelet | last post by:
Hi all, I would like to write DOS program to change the MS Windows Sound Recording source. When I run it with the parameter, it will change the recording source as follow: C:\> abc.exe microphone <- the Sound recording source change to Microphone C:\> abc.exe line <- the sound recording source change to Line-IN
1
1532
by: ACaunter | last post by:
Hi all, Have been getting no luck lately, but there must be a way i can recording audio from the website and save it.. It's no problem on applications (VB.Net), and I know other have done it before on the Websites - ASP.Net (I think by writing it in C++ or vb6 or something - and then embeded the object or something... ). Can anyone explain to me how i can do this, or provide some code if possible?? thanks all
1
1822
by: Sakharam Phapale | last post by:
Hi All, I am developing an application like sound recorder. While recording if there is a silence for more than given time (say 5 seconds), Recording should be paused.
0
1069
by: azdavid | last post by:
hi how i am cause the client(client-size) to recording himself and afterward sending the file(stream) to the server. how i am doning that in ASP NET?? Thank you
0
9645
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
10147
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
10090
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
1
7499
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
5380
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
0
5511
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
4050
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
2
3645
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
3
2879
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.