473,221 Members | 1,824 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,221 software developers and data experts.

raw audio input on Windows

I need to record raw 8-bit mono audio from a generic sound card on MS-Windows.
I need to do something like this:
sound_device = open audio device
buffer = sound_device.read ('1 second, 8 bit, mono, 8 KHz')
process buffer

If possible I would also like to experiment with sampling the raw audio
in my own loop. For example, something like this:
open audio device
while 1:
read byte from audio device
process byte
(I realize that Python is probably not ideal for this sort of DSP, but
I figure that it should handle 8KHz mono with no problem).

Does anyone have any experience with recording sound using the WIN32 API?
Can you point me in the right direction?

The OSS stuff in Python looks ideal, but unfortunately that's
a UNIX only thing :-(

Any hints are appreciated.

Jul 18 '05 #1
1 2991
> Any hints are appreciated.
I've not messed with this myself yet, but I know of an app that does
serious audio processing that had to go through some part of the
direct-X library. That app is sampling at a lot higher rate -
probably closer to the limits of pc sound cards.

If there's not a direct python api for directx, no pun intended,
there's a library that wraps any dll that should do the trick.
Jul 18 '05 #2

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

by: psk | last post by:
Hi, I need to read live audio from microphone and somehow make data packets from it and send using my client-server implementation where it will be played. Can anyone tell me abt any...
by: skt | last post by:
Hi Can anyone tell me how I can stream audio input from a microphone input in C/C++? I would prefer plain C/C++, rather than DirectX/Windows programming, though those would be fine too. Also, how...
by: positivebalance41m | last post by:
I have been searching how to do sound capture (record audio input) in VB.NET for days now. I find some references to "winmm.dll" calls, but they give VB5 or VB6 examples which won't code convert...
by: Romulo Carneiro | last post by:
Hi Folk! I want to do a application in real time to analyse a audio input, but i don't know what first step can i do. I'm going to use a notebook to analyse input audio. Well, my idea is analyse...
by: Tony K | last post by:
Is streaming audio capable in asp.net 2.0 / AJAX? What I mean by streaming audio is: ability to play one or more songs back to back...or maybe even let the user select several songs to play and it...
by: Ryan Liu | last post by:
Hi, I want to play Audio/Video in my C# application(standlalone, not web applicatoin). The source of multimedia may in different formats and decided by the end user, which I have no control. ...
by: Dököll | last post by:
Greetings, Good buddies! I am for the first time, since I started learning VB, going to build an application I wanted to build for my first son, a language and activities program that will allow...
by: AWW | last post by:
Using XP and VB 2005, it seemed like a good idea to save audio in the clipboard and then play it with backgroundworker. Cannot find a good Clipboard audio example anywhere - just SetAudio and...
by: =?Utf-8?B?bWFsYWs=?= | last post by:
i recently had xp, then isntalled a friends copy of vista then back to xp, but for some reason i cant get no audio device working..i installed the ABIT cd it came with my new motherboard that was...
by: veera ravala | last post by:
ServiceNow is a powerful cloud-based platform that offers a wide range of services to help organizations manage their workflows, operations, and IT services more efficiently. At its core, ServiceNow...
by: VivesProcSPL | last post by:
Obviously, one of the original purposes of SQL is to make data query processing easy. The language uses many English-like terms and syntax in an effort to make it easy to learn, particularly for...
by: mar23 | last post by:
Here's the situation. I have a form called frmDiceInventory with subform called subfrmDice. The subform's control source is linked to a query called qryDiceInventory. I've been trying to pick up the...
by: abbasky | last post by:
### Vandf component communication method one: data sharing ​ Vandf components can achieve data exchange through data sharing, state sharing, events, and other methods. Vandf's data exchange method...
by: jimatqsi | last post by:
The boss wants the word "CONFIDENTIAL" overlaying certain reports. He wants it large, slanted across the page, on every page, very light gray, outlined letters, not block letters. I thought Word Art...
by: fareedcanada | last post by:
Hello I am trying to split number on their count. suppose i have 121314151617 (12cnt) then number should be split like 12,13,14,15,16,17 and if 11314151617 (11cnt) then should be split like...
by: stefan129 | last post by:
Hey forum members, I'm exploring options for SSL certificates for multiple domains. Has anyone had experience with multi-domain SSL certificates? Any recommendations on reliable providers or specific...
by: egorbl4 | last post by:
Скачал я git, хотел начать настройку, а там вылезло вот это Что это? Что мне с этим делать? ...
by: MeoLessi9 | last post by:
I have VirtualBox installed on Windows 11 and now I would like to install Kali on a virtual machine. However, on the official website, I see two options: "Installer images" and "Virtual machines"....

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.