473,698 Members | 2,434 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Microphone?

Hello!

Can someone tell me how to make a function that returns the sound frequency
recorded by the microphone in the last moment?
I use Dev-C++ and I'm a total newbie if it's important.
Nov 14 '05 #1
5 5388
Tangerine <pa**@poczta.on et.pl> scribbled the following:
Hello! Can someone tell me how to make a function that returns the sound frequency
recorded by the microphone in the last moment?
I use Dev-C++ and I'm a total newbie if it's important.


ISO standard C does not specify anything about microphones. Please ask
in a newsgroup dedicated to your own implementation.

--
/-- Joona Palaste (pa*****@cc.hel sinki.fi) ------------- Finland --------\
\-- http://www.helsinki.fi/~palaste --------------------- rules! --------/
"Shh! The maestro is decomposing!"
- Gary Larson
Nov 14 '05 #2
Tangerine wrote:

Can someone tell me how to make a function that returns the sound
frequency recorded by the microphone in the last moment?
You mean the last trumpet has sounded? I didn't hear it :-)
I use Dev-C++ and I'm a total newbie if it's important.


No it isn't. Your question is confusing, and microphones and
their ilk are not part of the standard C language. Ask on a group
dealing with your system, after making you problem clear.

--
Chuck F (cb********@yah oo.com) (cb********@wor ldnet.att.net)
Available for consulting/temporary embedded and systems.
<http://cbfalconer.home .att.net> USE worldnet address!
Nov 14 '05 #3
CBFalconer <cb********@yah oo.com> spoke thus:
You mean the last trumpet has sounded? I didn't hear it :-)


I'd make some comment about the Book of Revelation, but I always
thought it was K&R2 ;) If you didn't hear the last trumpet, God
must've written something like

void main(void)
{
printf( "Hello, world!\n" );
}

The Last Judgement is presumably a possible consequence of UB ;)

--
Christopher Benson-Manica | I *should* know what I'm talking about - if I
ataru(at)cybers pace.org | don't, I need to know. Flames welcome.
Nov 14 '05 #4
>ubject: Microphone?
From: Tangerine pa**@poczta.one t.pl
Date: 1/8/04 9:58 AM US Mountain Standard Time
Message-id: <bt***********@ news.wplus.net>

Hello!

Can someone tell me how to make a function that returns the sound frequency
recorded by the microphone in the last moment?
I use Dev-C++ and I'm a total newbie if it's important.


Goto news:comp.lang. matlab and ask your
question there. I'll answer your question
from there. But before you do, please think
a bit about what you mean by "last moment". Describe it. How many samples?
Nov 14 '05 #5
"Tangerine" <pa**@poczta.on et.pl> wrote:
Can someone tell me how to make a function that returns
the sound frequency recorded by the microphone in the
last moment? I use Dev-C++ and I'm a total newbie if
it's important.


Once you actually work out how to make your implementation
record some audio into a PCM (pulse-code modulation) raw
audio data block, you will want to use some FFT (fast
fourier transforms) to get a signal strength reading for
each frequency, and pick the maximum point.

The implementation specific part should be topical on
comp.os.ms-windows.program mer.win32 or
comp.os.ms-windows.program mer.multimedia

Whereas the domain conversion is a mathematical issue,
could be topical on comp.programmin g or somewhere like
sci.math

I have just implemented a simple audio recording
program on Cygwin/GCC which should be a similar
environment to your Dev-C++, it was actually very
easy while reading the API documentation.

Source here (121 lines, only two of which contain
a call to a non-standard function):
http://members.optushome.com.au/sbiber/recwave.c

--
Simon.
Nov 14 '05 #6

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

Similar topics

0
3107
by: Sune Pedersen | last post by:
How do i get the microphone input level in clear text Sune
1
4398
by: | last post by:
Can I record voice via microphone... (what class???) ....and after send the voice to server? (With a Java Applet)
1
10721
by: Ken Lemieux | last post by:
It's my understanding in order to mute the pc microphone from c# requires DirectX 9. Could anyone confirm this for me, and provide examples or technicle refrences where it may be discussed? Thanks, Ken Lemieux
0
2104
by: Dr. Zharkov | last post by:
Hello. The following program does not work for me: 1. We load components of Microsoft Agent and disconnect a computer from Internet. 2. In VB .NET we create the project, appears Form1. 3. On Form1 we place Microsoft Agent Control 2.0 with name AxAgent1. 4. We double-click on Form1 and in the appeared procedure write the following code: Dim myGenie As AgentObjects.IAgentCtlCharacterEx Const DATAPATH_1 As String = "genie.acs"
2
3772
by: Yannick | last post by:
Hello, I'm currently writing an application that has to Fourier-Analyze little pieces of audio-data but i don't know how to access the microphone input at real time. Are there libraries to do that? Or how is it done? Thank you very much. Yannick, Belgium
1
2395
by: rajibnsu | last post by:
Hi, this is abu syed khan again. i want to write a program in c# that takes input from microphone and then give output through printer port. i can give output through a printer port. but the problem is i cant take input in my program from a microphone. suppose i say "one" in microphone then my program recognize the word and give output through printer port. i can give output but input is a problem for the time being. if u wish, i can post my...
3
9616
by: Porkie999 | last post by:
hi i created a program in vb.net 2005 that is meant to allow microphone activity i.e you read the lyrics to a song on the screen and you are meant to be able to sing to it through a microphone like koroake however i have been unable to get help on such a topic please help me is it possible to get some sort of script that just lets me talk through a microphone and come out of the speakers? thanks in advance i would prefer this to be a code...
0
4910
by: roopaloswal | last post by:
Hi All, I need to record audio captured from microphone to the local file system .Is it possible? I am trying to use NetConnect() to connect to local file system. But its throwing error. I am attaching my code below. package
1
2096
by: dolittle | last post by:
Hi, I'm new to flex and trying to understand a tutorial by reading the code. There is a line: var mics:Array = Microphone.names; Flex docs says that you need to import flash.media.Microphone but on the code they don't: import mx.formatters.DateFormatter; import flash.sampler.Sample; import mx.events.SliderEvent; import mx.events.FlexEvent;
0
9160
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
9029
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
8897
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,...
0
8862
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
7729
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
1
6521
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
4370
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...
1
3050
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
3
2002
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.