Detect Silence Of Audio In Buffer Of WMA Stream?

Aug 24, 2010

I have a standard WMA stream, streaming in constantly via the internet. I need to write an application to stream this audio, and looks for any periods of 'silence'. When it detects silence, it runs an event.

For the purposes of this, silence is defined as three seconds of zero-level audio. The stream keeps going in a technical sense, but there is no audible noise coming through it.

However, I want the program to detect the silence while it is still in the 'buffer'. That is, the user won't hear this silence before the program detects it is there.

The audio shouldn't stop as it is analysing this silence - it needs to keep playing the audio constantly to the user.

I'm open to using whatever suitable API is out there - such as BASS, or the Windows Media extensions built into the dot net platform.

View 2 Replies


ADVERTISEMENT

Load A File From Folder To Memory Stream Buffer?

Jun 1, 2011

I am working on vb.net win form. My task is display the file names from a folder onto gridview control. when user clicks process button in my UI, all the file names present in gridview, the corresponding file has to be loaded onto memory stream buffer one after another and append the titles to the content of the file and save it in hard drive with _ed as a suffix to the file name.I am very basic programmer. I have done the following attempt and succeeded in displaying filenames onto gridview. But no idea of later part.

'Displaying files from a folder onto a gridview
Dim inqueuePath As String = "C:UsersDesktopINQUEUE"
Dim fileInfo() As String

[code]......

View 2 Replies

Reading Large File Stream In .net (How Can I Increase Buffer Size)?

Mar 3, 2009

i need to read a large file stream binary my code is Dim sr As New IO.FileStream(srcFile,

[Code]..

View 10 Replies

Audio Stream Capture From Web

Nov 18, 2009

I have link: [URL]

I want capture the audio stream on my computer in mp3/wav.

I have no idea from what i should start. What should i use for start developing? I'm working in VS2008 on VB. Can i do it in VB? What additional software i need?

View 2 Replies

.net Capture System Audio To Stream?

Jun 21, 2011

Is it possible to capture all/any audio played by a PC into a system.io.stream, so that it can then be run through speech recognition (System.Speech.Recognition.SpeechRecognitionEngine)?Essentially I'm looking to pefrom speech recognition on any audio on the client PC, google seems to suggest that capturing a stream like this can be done using Microsoft.DirectX.DirectSound, however I cannot honestly determine how.

View 1 Replies

Convet My.resources Audio To Stream?

Jan 4, 2011

I'm using vb.net and "my.resources" to store wav audio files.I know I can play such files using:

My.Computer.Audio.Play(MyProjectName.My.Resources.Resources.resourcename, AudioPlayMode.BackgroundLoop)

However I want to use bass.net to play the file and it requires either the the file name on the file system or a stream. how do you get the data inside an audio resource into a stream?This is what I have so far:

Dim imgByteArray() As Byte
imgByteArray = CType(MyProjectName.My.Resources.ResourceManager.GetObject("resourcename"), Byte())
stream = New System.IO.MemoryStream(imgByteArray)

[code]....

I get this error on the bold line above:

Unable to cast object of type 'System.IO.UnmanagedMemoryStreamWrapper' to type 'System.Byte[]'.

1. Is there a way to cast from System.IO.UnmanagedMemoryStreamWrapper to type System.Byte?

2. What would be the best method to get the audio resource into a stream format?

View 5 Replies

Replay A VB Audio File Or Stream?

Sep 21, 2010

I am trying to write a little synthesizer program, and as a first step I am creating .wav files opened for reading and writing using the code below called from a button click event handler. The audo plays but once, no matter how many instances of the Audio.Play method are called. I also tried closing the file and then calling the Audio.Play method on the full path name. In each case, the audio plays but once. If I click the button again, the file will be played once more. The duration for the audio is one second, so I am sure that it is only being played once every time. I do not want to loop the data. The idea is that when the user plays a new note, I update the file and replay it with the new data. Since the file is recreated every time I click the button, I guess what I *need* is working, but I am still curious why I cannot replay the content of the file.

' Create a file stream object for reading and writing.
Dim FS As New IO.FileStream(fileNamePath, _
IO.FileMode.Create, _

[Code]....

View 9 Replies

Microphone Audio Stream DIRECTLY To Speaker In VB?

May 6, 2011

It SOUNDS simple. In aVusual Basic application, how do I made an open (or controlled thread) connection to continuausly stream the microphone to the speakers?

View 1 Replies

Redirect Audio Stream To/from The Serial Port?

Jan 19, 2011

I'm writing a program that will allow me to send SMS and call using a GSM modem.

I'm communicate with the modem using AT commands.

I have a problem with "connect" sound from the modem to the speakers.

After installing the modem is visible in the system as two ports.

On one of them sends and receives commands.

The second is just for voice communication.

I can't redirect PC audio input/output to the modem serial port. (So I can't hear callers and vice versa)

From what I've managed to find I have to use SAPI. (ISpVoice::SetOutput)

View 10 Replies

Stream Audio And Video In The Local Area Network?

Oct 26, 2009

I am developing an application where in I need to stream audio and video in the local area network. There is calling option from my application where users can call each other(audio call or video call) in the LAN.

View 3 Replies

Loading A File Into Memory Stream Buffer And Creating New File With Same Content And With Different Filename?

May 31, 2011

I don't know whether it is simple or not because i am new to programming. my requirement is : In my vb.net winform application, the filenames of the files present in "D:Project" willbe displayed in DataGridView1 control. Now I want to load these files one after another into memory stream buffer and add the headers("ID","Name","Class") to the content in the file. Then I want to save these files in "C:" with "_de" as suufix to the filename i.e.,sample_de.csv.

View 1 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

Detect The Frequency Of Audio Coming?

Mar 25, 2009

I am looking to be able to do life frequency detection in VB.net. I must say I don't really know where to begin here. I have looked into BASS.net, but that seems to only work with pre-recorded audio. I need to be able to detect the frequency of audio coming in over the line in or mic input in near real-time.

View 2 Replies

Detect The Encoding Of A Stream?

Sep 6, 2011

I would like to know the way a stream or a string is encoded before converting it. If a string is not utf-8 it would be converted to utf-8.

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

Buffer Cannot Be Null - Parameter Name: Buffer

Dec 15, 2011

[Code]...

This is my code for retrieving pictures, it was working before but then i accidentally deleted the table and i created it again with the same name and same fields. and now whenever i open the form with the picture, there was a message box error. it says Buffer cannot be null. Parameter name: buffer I don't know what i did wrong.

View 5 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

VS 2008 Recording Audio - Capture The Audio Played On My Laptop

Jun 11, 2009

Im trying to capture the audio played on my laptop. so i have searched the internet and found a source code for doing exactly that. the problem i have is that my audio device is not listed in the dropdown box (see picture) but it does when its run on windows xp (im running windows 7 x64) the goal of this application would be to capture my friends radio stream and save the individual played mp3's to a loction on my hard drive.(yes i have permission) i have included the source code so perhaps some 1 could have a look at it. (source code)[URL]

View 2 Replies

Make A VU Meter For Audio To Monitor Audio Input?

Feb 26, 2007

make a VU meter for Audio to monitor audio input devices volume level such as microphone and etc?

View 7 Replies

Routing Modem Audio Out To SR Engine Audio Input Under VB / VBA?

May 20, 2009

I have a database application developed around Access with VBA,I have used the Speech SDK and developed an application that in conjunction with MSCOMM 6.0 library calls into a remote IVR system.It sends in the credentials and queries information in response to that IVR's verbal requests. All seems successfull except for one problem;I'm using a shared SR engine and its using the system microphone as its audio input, this in turn gets the sound from the speakers which are routed to the telephone line through the modem. Of course this has a number of disadvantages - noise added to the sound from the environment and sound quality degredation as well as speaker volume dependency.

I would like the SR engine to take its audio input from the modem in paralell with the sound that goes to the speakers (so we can listen in to the call as well). This means that I must route the system audio output to the SR engine audio input. It seems that I must use an InProc SR instance - however in VBA that type is not recognized - since the shared SR uses the microphone as input by default. there is some statement to the effect that it is difficult in Microsoft's Help file. I'm unable to set the SR audio input to the modem output stream in VBA.As needed I can accomplish the C++ interface using an ActiveX object or a DLL to expose the missing API to VBA?

View 7 Replies

Stream Read Return Length 0 While Stream Is Open And Has Valid Data In It?

May 25, 2012

in an winForm app in VS2010 win 7 compiling to x86, I try to do what Alvas.Audio seems to work. See (c# ex: [URL] for reference.

Dim data() As Byte = wr.ReadData(second * i, second)

The result give me data.length()=0. I do not have any exception, I can read format from it and whatever reader I use I got this problem.EDIT : After some tests, it seems like the uncompressed file I create in the first step (in PCM format, with .wav extension) can not be recognized by the Alvas.audio library for the second step. I must miss something around Audio file markups or something alike.

Here is the code that might be the source (basically this is step 1):

Dim functOut As String = String.Empty
Dim wr As Alvas.Audio.IAudioReader = Nothing
Dim fs As IO.FileStream = Nothing

[code]....

How can I write the resulted stream to be sure I can read it again later?

View 1 Replies

VS 2010 Make Shoutcast Stream Info Like The Stream Name

May 5, 2011

Im making a desktop player for a online web radio, and for the program I wanna make it show all the stream info. Like the stream name, and such. However I dont know how to do this? I looked everywhere

The server url is setup like this "[URL]" And it has all the stream info and that there. So is there a way I can get the info from there onto like say a label? Live updates btw.

View 1 Replies

Play Audio After The Previous Audio

Sep 23, 2009

how can i play the audio after the previous audio play is finish by using directx.

assume i have audio1.wav and audio2.wav.

i play audio1.wav by this code.

audio1 = audio.fromfile("D:audio1.wav", false)

how can i play audio2.wav after audio1.wav is finish? without use any button or signal. just depends on when the audio1.wav is finish, then audio2.wav will play automatically.

View 4 Replies

Connect To SQL DB Receive The Code And Then Check If That Code Is Correct And If Its Correct Download Silence The Pro File?

Jun 8, 2010

i'm working on a system that upgrades a basic version to a proversion but i have a payment gateway . it generates a code in an SQL DB.now i have a form in VB that has a textbox and a button how can i let VB connect to my SQL DB receive the code and then check if that code is correct and if its correct download silence the pro file. from an url.

View 7 Replies

Crypto Stream To Memory Stream?

Nov 22, 2011

I have a problem with the cryptostream, if i write the stream to a memorystream the memory that the stream used is still alocated and i have no way of unalocating it.what am i missingdoing wrong? im using-using on the streams,readers and crypto stuffs so the framework should shut them all down right? i tryed calling .close and .dispose but nothing ,in fact i moved it all over I have provided the sub that im using for the encrytion im in .net 4.5 so there is a lil async stuff but i know thats not the problem coz i moved this code out of my main app(.net 4) for testing to see if i could fix the problem.[code...]

View 12 Replies

Double Buffer Or Not To Double Buffer?

Apr 17, 2010

To Double Buffer or not to Double Buffer this is the Question!I have a form with Protected Overrides Sub OnPaint that sets forms background to a gradient fill ,on top of that is a transparent richtext box.
Ok. now here`s the problem ,If i enable forms double buffering the transparent Rtb doesn't flicker when forms resized. but the forms drop shadow does flicker! ,its a boarderless form using CS_DROPSHADOW to draw the drop shadow Now if i disable double buffering the forms drop shadow doesn`t flicker but the transparent Rtb does ,any one have a clue how to get both to work in harmony !

View 3 Replies

ASCII To HEX Buffer Converting?

Sep 16, 2009

The reply buffer is in ASCII value...but I need is HEX value.Is there any way that the reply buffer is in hex?

Code:
Public Function read_write_string(ByVal devicehandle, ByVal command, ByVal commandlenght) As String
Dim inputReportBuffer(100) As Byte
unManagedBuffer = Marshal.AllocHGlobal(inputReportBuffer.Length)

[code]....

View 4 Replies

Buffer 28 Bytes From The Com Port?

Apr 21, 2010

I have a problem that i cant solve i am trying to buffer 28 bytes from the com port into the array actual_packet_VPS1(30). It works with the counter set to 0 - 15 but doesnt work when we increase the counter size to 0 -28.

Private Sub MSComm5_OnComm(ByVal eventSender As System.Object, ByVal eventArgs As System.EventArgs) Handles MSComm5.OnComm
Dim buffer As Object

[Code].....

View 2 Replies

How To Double Buffer A Flowlayoutpanel

Jan 12, 2012

I have a need to double buffer a flowlayoutpanel. I have the form set to doublebuffered which is half the story but their is no property in the list to make the flowlayoutpanel do this (although MSDN states that it has this property) how i can set it to true for the panel?

View 5 Replies

Playing Video From Buffer?

Apr 29, 2012

Im trying to do a video player but i have to play this video from the buffer, is this possible.. Let me explain you much more complicated,a got a CryptoStream and im decryting the video

While lngBytesProcessed < lngFileLength
'Read file with the input filestream.
intBytesInCurrentBlock = fsInput.Read(bytBuffer, 0, 4096)
'Write output file with the cryptostream.

[code]....

This code writes my decryted or crypted video to a new file. However, i need to play the video file from the buffer(without copying to a new file), in other way it would be meaningless if i create a decryted file. in other words it would unsecure for me cuz if anyone can locate my temp directorey they can copy my decrypted video files.

View 5 Replies







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