Transferring Audio Streaming Files With Sockets

Feb 20, 2009

I am developing a server-client voice streaming chat application with vb.net, i am recording wav files by a microphone and using .net.Sockets to transfer the files from a client to the server.

The runtime from the client follows as :
Public Sub sendFile(ByVal file As IO.FileInfo)
Dim BufferSize As Integer = 1024
Dim fs As FileStream = New FileStream(file.FullName, FileMode.Open, FileAccess.Read)
Dim NoOfPackets As Integer = Convert.ToInt32(Math.Ceiling(Convert.ToDouble(fs.Length) / Convert.ToDouble(BufferSize)))
[Code] ......

The problem that I am having is that the wav file that arrives to the server sounds really bad like interrupting each half-second. Another strange thing is that if the originally file es 46KB big the one that receives the server is 47KB. How I will manage to build a voice chat with good quality using this technology. How I can start sending streaming audio meanwhile une user is speaking.

View 6 Replies


ADVERTISEMENT

How To Stop A Streaming Audio

Feb 7, 2011

How do I stop a audio stream once I play it using sapi. Do I have to skip the whole set of sentences ?

View 1 Replies

Streaming Non-PCM Raw Audio Using NAudio?

Jun 16, 2011

I have streaming raw audio coming in from a serial device, which I'm trying to play through WaveOut.

[Code].....

It too seems to suffer from lack of having a header.

View 1 Replies

Audio Management System - Allow User To Add Audio Files Itself Into Database Together With Audio Information

Jan 28, 2010

I'm developing a standslone system for my school project. I'm developing an audio management system which allow user to add audio files itself into database together with the audio information such as artist name and album year. I just started it few days ago and face some problems.. my song in the playlist wont continue to play after 1 finished and i need some idea on how to store the audio files into database ... in blob types may be?

Heres the screenshot and codes

Public Class Form1

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

[CODE]............................

View 2 Replies

Accomplish MMS Audio Streaming With Program?

Aug 10, 2009

Is there any way with vb.net of accomplishing MMS audio streaming?

Also, i read somewhere else within SO, that MMS streaming is no more supported by Microsoft. Is that true?

View 1 Replies

VS 2008 Play Streaming Audio

Jun 7, 2009

I am currently trying to find a way to play an audio stream from the internet so I thought that someone here might be able to help me. The stream I want to play is specified in a .m3u file and it is not a live stream, it is pre-recorded. This component is for a WPF Browser Application I'm developing.I thought of using the ActiveX MediaPlayer from WMP.dll but it's lack of intuitiveness confounded me. I would really dislike having to download the whole audio track before playing it since the file may be really large and take a long time to complete. Playing the file in Windows Media Player as an outside player is also out of the question.

View 14 Replies

Transferring Audio In Almost Realtime?

Aug 8, 2010

I'm currently working with a project where I need to transfer the internal audio (sound from the computer) to another computer and play it back there.

I thought of transferring the audio with a TCP server-client connection since I already have the knowledge of how to do that.

My problem now is that I don't know how I would capture the internal audio and how to be able to play it back as a stream on the target computer. I have searched a bit and many people recommend using MCI but I'm not sure if this will work on an "almost realtime audio stream" connection.

So my question is: What is the best way to grab the audio from the computer and then play back the data on another computer (as a stream)? I want to do it in realtime and not "recording" the sound and then send it to the target computer.

View 4 Replies

Transferring Files Over TCP?

Apr 2, 2010

Ive got a problem transferring files over TCP. On the server side I send a file (100kb) to the client side, and there it comes with about 10mb xDD

Sender:

client_send("---receivefile---")
client_send(OpenPathDialog.SafeFileName)
Dim SIZE As Int16 = 1024

[Code]....

View 1 Replies

Take A Regular Avi, Mpg, Wmv, Etc... With Out A Streaming Server Or A Streaming File?

Apr 2, 2006

I want to know how I can take a regular avi, mpg, wmv, etc... with out a streaming server or a streaming file, and not downloading the entire movie Play it with windows media player or a different media player, oreven a custom one.

View 2 Replies

My.computer.audio : Get It To Play Other Files Besides Just .wav, Like .mp3. Wave Files?

Sep 13, 2008

how can i get it to play other files besides just .wav, like .mp3. wave files are way too large to be used easily if you want a good quality. why cant i play .mp3 files with it?when i convert a 2.1 mb mp3 file to .wav it turns out to be 36 mb?any other ways besides computer.audio to play audio files on command?

View 1 Replies

Streaming Files - No Dialog - Streams Relatively Large Documents From A Webservice To A Proxy (Web Site)

Aug 2, 2011

I have a system which needs to be secure which streams relatively large documents from a webservice to a proxy (Web site) whch then grabs the stream and pushes this to the client. This works but there are some issues where it seems the response is not being pushed until the entire stream is complete? whether this is the case Im not sure have run charles and until it completes it is "Waiting for response".

The documents are currently PDF but it needs to handle many other types for the future. The octet stream etc is mostly testing related, how to get the Dialog to show - saying save as? for the large files the little ones don't matter to much but the big ones leave a big waiting period with no response.

Dim IncomingResponse As HttpWebResponse = DirectCast(Request.GetResponse(), HttpWebResponse)
Dim IncomingStream = IncomingResponse.GetResponseStream()

Dim BufferSize As Integer = 65536
Dim Buffer(BufferSize) As Byte

[code].....................

View 1 Replies

Add More Than One Audio Files In A Playlist

Jun 2, 2011

I ve added windows media player in the form. and i can add a audio file in it..but i want to add more than one audio files in a playlist and from tat playlist i want to retreive duration of each n every file and store it seperatly in an array or collection.

View 4 Replies

Manipulating Audio Files With .net?

Apr 2, 2012

I need to be able to read audio files and manipulate them from within my own program (similar to how Audacity does it). Now, I'm not asking for something with a thousand effects and such, I just need the minimal as far as audio manipulation for .net goes. I really just need to be able to figure out pitches and frequencies being played at what times and the ability to move them all around.

View 1 Replies

Playing MP3 Audio Files (And Not Using WMP)

Sep 27, 2010

Based on a thread earlier today, and in particular an answer that Cor gave wherein he
pointed to this article, I thought that I'd do some investigation. Many times here the question has come up about playing .mp3 audio files and NOT using the Windows Media Player object. In the article referenced above, he shows how this can be done via DirectX.

I've looked at DirectX before and it seemed ambiguous so I never really dug into it but it turns out to be pretty simple actually! I thought that I'd write this as a step-by-step of what I did so that maybe some of you will find use from it. The whole thing stems around using DirectX and to begin with, you'll need to download and install the SDK for it. If you haven't already,

try this link. Do be aware that it's a large download (about a half gig)! Once that's installed, create a form and add a reference to the class that we need for this. You can do this several ways, but the way I usually do is to right-click on the name in the Solution Explorer, then choose "Add Reference":

[Code]...

View 9 Replies

Use Read .mdi (audio) Files ?

Feb 24, 2009

How can i use vb.net to read .mdi (audio) files? im planning to use it for a guitar hero game.

View 4 Replies

Detect Audio Or Video Files?

Mar 10, 2010

How can I know type of file, music video or something else, in VB 2005 without looking extension.

View 1 Replies

Getting Data About Your Audio Files (And Not Using Metadata)?

Jun 10, 2011

Early on the OP was asked "how will you get the data about your music?" and it went into a whole other direction, but that's what I'm here to show: Another way to get the data about your music without dependence on the metadata.The music that I have has fairly extensive tags embedded but as I've discovered, that's not the case with all of them. It's a good starting point I suppose but is there another way? Let me jump to the end, then in the next several posts, we'll dissect the parts of it. My goal was use "only out of the components and methods" and this is what we end up with: Aside from the rudimentary things like song duration, how about if we could get a host of information about the songs, including the cover art? As shown in the example above, some also will have a link to additional information. The additional information may even contain a way to watch a music video for that song like this: Further, some will even contain what I call "Liner Notes" like this:

If this interests you, read on ...This isn't a new thought at all; I've explored this area before. Have a look at this on Code Project. Now before you go thinking that you've found the keys to the kingdom, I should explain a little minor issue about that - it doesn't work! In that, he relies heavily on three web services: Amazon Web Service MusicBrainz LyricWiki Amazon has significantly modified their service such that his methods don't work now. If you follow the posts following the thread, you'll see a few people have tried workarounds but over the years, even those stopped working because apparently they (Amazon) are in a state of flux regarding their API. LyricWiki is still alive and well, but - the music recording industry forced them to no longer offer their service to developers. MusicBrainz is in fact a heck of a resource and if you're at all interested in this topic, I would encourage you to have a look around. It's odd to work with, but it's chock full of good information and they're constantly adding to it or so it seems. All that said, this example won't use any of those but rather a different service all together: Last Dot FM. I can't say that I know much about them, but I happened onto them a few months back when I was first experimenting with all this stuff.

View 1 Replies

How Do I Play Audio/video Files

Apr 10, 2009

How do I play audio/video files in VB.NET?

remember to mark the replies as answers.

View 1 Replies

Play Xm Audio Files In Background?

Apr 19, 2011

I dont have bass dll or other files...How i play xm audio files in project, and whats the command to Call the function FOR PLAYING.

View 2 Replies

Playing Audio Files In The Background?

Jan 29, 2009

I am working on an application in VB.net (.NET 2.0) where I need to open a dynamic amount of different audio streams. Normally, for audio files, one would suggest importing the Windows Media Player COM reference and adding a GUI-based element from the toolbox, but since I'll be working with a dynamic amount of these a GUI would be a terrible idea (especially with Tab stops).

View 4 Replies

Running .ivr Audio Files Through Visual Basic

Aug 24, 2008

In VB, i see file format in wav, but how we can run other formats through vb code my.computer.audio take wav format is there any other posibility

View 5 Replies

Shuffle 10 Audio Files And Play In A Loop?

Dec 11, 2010

I have 1-10 audio files that were selected by the user using an "openFileDialog" (with a button and textbox for each). Now, I want it to play all of the files that they selected in a random order when the user clicks "Button12." After all the files have been played, I want it to start over and play all of them in a random order again. I don't want it to stop until the user clicks "Button13." When the user clicks "Button 12" again, it should start playing them in a random order again.

View 4 Replies

VS 2005 Combining Video And Audio Files?

Aug 3, 2009

I have a requirement to combine 2 audio files with a video file is this possible with vb.net.What the user basicly wants to do is select 3 files one video, 2 audio, then click a go button and the files be combined to produce a single file, where do I start?

Am wondering if media encoder can do this or do I need to look in other areas?

View 6 Replies

VS 2008 Put Into XML A Folder Full Of Audio Files

Aug 22, 2011

I have searched and found many articles and code that writes a directory structure to an XML file. However, I'm not having much luck finding/altering code that gives each sub folder a different name. I'm trying to put into XML a folder full of audio files. They are music - artist - album - file. Music is the root folder and file are the audio files but every piece of code calls artist and album the same name. eg

[Code]...

View 2 Replies

[2005] Unable To Play Some Audio Files

Jan 24, 2009

I am building a music player. I found this class that has worked great for what I need. However, for some reason, it won't play certain audio files. IT just reads it as 0 duration. I have no idea why. Below is the code that plays the file.

[Code]...

View 8 Replies

Audio Components Are Exposed By The .net Framework - Work With .wav Files?

Aug 18, 2010

About what audio components are exposed by the .net framework?

Can I work with .wav files? What kind of things can I do with .wav files as far as vb .net is concerned? Can I record? What should I look for when looking for info for .net related audio at msdn. Where else can I find info on this?

View 3 Replies

Cut And Save The Audio Files Played In Media Player

Aug 5, 2009

I have created a small media player calling COM component of Windows media player. Now i want to cut and save the audio files played in media player? is it possible with windows media player or i would have to use some other media player object? I can have the files info which i am using in window media player to play..but cant able to get the details which we can finds with our OS( windows) like compression format, bit-rate etc.

View 1 Replies

Forms :: Play Audio Files (WAV) When Form Loads?

Apr 19, 2009

How to play an audio file automatically when form loads?

View 5 Replies

Looping Audio Files In Tree View With Windows Media Player COM?

Mar 16, 2011

I am attempting to play a set of audio files continuously using a tree view. I am having troubles looping through an array to play one song after another in the selected parent node. It seems to work if I only use one song in the array but it doesn't want to actually loop through and keep playing; it goes through the loop but once the first song is over it stops. I am unsure if looping through an array in the AfterSelect sub routine is the best way of doing this,

Here is the entire Sub routine for the AfterSelect on the tree view.trvMain is the name of the entire tree view.wmpMain is the Windows Media Player COM.trvJazzHancock is the parent node for the two audio files I'm attempting to loop.

[Code]...

View 2 Replies

Audio Converter And Compressor - Audio & Video - Dream.In.Code

Mar 13, 2009

I just want to ask or I need some idea on how to convert wav files to mp3 and compressed the file to make the size smaller. I've search on the internet and find vorbis.dll as a reference object and lame.exe for converter. With regards to the audio compression, i downloaded monkey's audio software but doesnt have an idea on how to incorporate it.

View 2 Replies







Copyrights 2005-15 www.BigResource.com, All rights reserved