Jump to content

Streaming Microphone audio?


Recommended Posts

Hey forum!

I'm getting close to releasing a beta version of my encrypted p2p messenger I'm coding.

One feature I'de really like to implement is audio chat.

I've searched through the forum, and can't seem to find any examples of capturing audio from the microphone, without writing it to a file.

Capturing it to a file makes the audio very choppy, as bits and pieces get cut out between audio files.

I believe at one point I saw a udf that allows capturing audio directly as a stream(that I could then send as packets across the network)

Could anyone point me in the right direction, as to how to go about capturing audio as a stream of data that I could then break into packets and send?

Thanks!

-null

Edit: There used to be an example in the BASS UDF, but I can't seem to locate it, or figure out exactly how to go about streaming audio with the included documentation.

Edited by nullschritt
Link to comment
Share on other sites

I found an example using an older version of BASS

However for some odd reason, the extended library doesnt play well with my encryption code. (if I run my code after initializing the library, autoit will outright fail, and stop working)

But I already use multiple processes in my code, so solving that problem was as easy as moving the recording part of the code into it's own process.

Now I'm just looking for a way to reduce the encryption time, possibly with a lossy compression engine.

Edited by nullschritt
Link to comment
Share on other sites

  • 2 years later...

Do a search in the Example scripts section for BASS

If I posted any code, assume that code was written using the latest release version unless stated otherwise. Also, if it doesn't work on XP I can't help with that because I don't have access to XP, and I'm not going to.
Give a programmer the correct code and he can do his work for a day. Teach a programmer to debug and he can do his work for a lifetime - by Chirag Gude
How to ask questions the smart way!

I hereby grant any person the right to use any code I post, that I am the original author of, on the autoitscript.com forums, unless I've specifically stated otherwise in the code or the thread post. If you do use my code all I ask, as a courtesy, is to make note of where you got it from.

Back up and restore Windows user files _Array.au3 - Modified array functions that include support for 2D arrays.  -  ColorChooser - An add-on for SciTE that pops up a color dialog so you can select and paste a color code into a script.  -  Customizable Splashscreen GUI w/Progress Bar - Create a custom "splash screen" GUI with a progress bar and custom label.  -  _FileGetProperty - Retrieve the properties of a file  -  SciTE Toolbar - A toolbar demo for use with the SciTE editor  -  GUIRegisterMsg demo - Demo script to show how to use the Windows messages to interact with controls and your GUI.  -   Latin Square password generator

Link to comment
Share on other sites

That's because the forum software was updated and it broke a lot of links, and the user posted that 2 years ago.

If I posted any code, assume that code was written using the latest release version unless stated otherwise. Also, if it doesn't work on XP I can't help with that because I don't have access to XP, and I'm not going to.
Give a programmer the correct code and he can do his work for a day. Teach a programmer to debug and he can do his work for a lifetime - by Chirag Gude
How to ask questions the smart way!

I hereby grant any person the right to use any code I post, that I am the original author of, on the autoitscript.com forums, unless I've specifically stated otherwise in the code or the thread post. If you do use my code all I ask, as a courtesy, is to make note of where you got it from.

Back up and restore Windows user files _Array.au3 - Modified array functions that include support for 2D arrays.  -  ColorChooser - An add-on for SciTE that pops up a color dialog so you can select and paste a color code into a script.  -  Customizable Splashscreen GUI w/Progress Bar - Create a custom "splash screen" GUI with a progress bar and custom label.  -  _FileGetProperty - Retrieve the properties of a file  -  SciTE Toolbar - A toolbar demo for use with the SciTE editor  -  GUIRegisterMsg demo - Demo script to show how to use the Windows messages to interact with controls and your GUI.  -   Latin Square password generator

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

×
×
  • Create New...