Detecting frequency of the sound by phone`s microphone
Hello
Please tell me how to detect the frequency od voice/music using phone`s microphone. Is it possible to do it using MMAPI? I want to create universal solution, not just app for specified phone.
it's not necessary to use an FFT. and sometimes is not sufficient:
(there's a whole literature on finding the fundamental frequency of a signal).
a simpler technique:
filter out (using a fast IIR filter) the frequencies located over the band you are
interested, then use a zero-crossing method.
if the sound you're analyzing is not too harmonic rich, the algorithm works
rather well, and it's very fast.
m.
Similar Messages
-
Detect frequency of an analog signal coming in through myRIo AudioIn analog port
I am working on a fire-fighting robot that runs using myRio. I have a small mic plugged into the 'AudioIn' port of the myRIO and the robot has to detect a certain frequency(2.8 or 3.5 KHz) to start navigation. The AnalogIn express VI gives me raw voltage amplitudes of type 'Double' but the 'Tone Measurment' vi I wanted to use takes in a 'Signal' data type. I tried converting the raw data to dynamic data and feeding it in but did not work. One problem is that I cannot control the sample rate of the AnalogIn express VI (LabView 2013), I appreciate any suggestions on how to go about doing it.
Solved!
Go to Solution.
Attachments:
Capture.PNG 16 KBThank you all for your feedback.
@Bob_Schor the robot competition is tomorrow. Thanks for the suggestions but the High Throughput Add-on turned out to be what I was looking for.
@MilanR thank you so much. I installed LabView 2014 and the myRIO 2014 High Throughput Add-on and I now have access to low level VIs that will let me control sampling frequency and number of samples.
I am now using 'Tone measurments' to measure the frequency of the sound. But the frequency measured is not accurate, but it is atleast consistent. I am sampling at 7 KHz and taking 5000 samples at once. The two frequencies I want to detect are 2.8 KHz and 3.5 KHz. However, the mesaured frequecies I get from Tone Measurment VI are 0.400 Hz and 0.499 Hz, which are always consistent. Picture is attached below.
Attachments:
Capture3.PNG 10 KB -
i carnt hear my message tone,the sound it makes when the phone locks and opens,also i am unable to hear music when playing from my phone but my ringtone and alarm tone work.Ive made sure the silent button is not on,and the volume button on the side of the phone is just showing it blank instead of it going up and down.To try and fix this i have reset my settings and restored my phone,but now its just skipping the music i have purchased from itunes when in a docking station which is now another problem i have as well.Can anyone help????
Hello dbrookes,
Thank you for using Apple Support Communities!
It sounds like even though the Mute switch is not on, sounds are not making the, well, sound they should, and the volume buttons make a blank volume indicator appear on the screen that does not show the volume level.
I wanted to recommend a couple of things.
First, I would reset the phone:
Resetting your device
Press and hold the Sleep/Wake button and the Home button together for at least ten seconds, until the Apple logo appears.
From: iPhone, iPad, iPod touch: Turning off and on (restarting) and resetting
http://support.apple.com/kb/ht1430
If that does not resolve the issue, then you may want to try backing up to iTunes, and restoring the iPhone again but this time do not restore the backup and set it up as new to see if the issue persists without the previous configuration.
Just incase you need it, this article will help with that:
iOS: How to back up and restore your content
http://support.apple.com/kb/HT1766
Cheers,
Sterling -
So my iphone 4 is about 2 years old. Whenever I receive a message, my phone does not vibrate or make a sound. This happens even when my phone is not on silent, I dont know why this has happened. However when I receive a call, my phone goes off. I dont know why this happens. Am i the only one that's experienced this?
Yes i have, and its all set to be fine. When my phone is unlocked all the sounds work, it's only when it is locked
-
Iphone 4: while talking, phone automatically switches onto facetime and at other times when talking the sound "beep beep" is heard and disconnects from call? Anyone know what is happening??
Basic troubleshooting from the User's Guide is reset, restart, restore. Has any of this been tried?
-
i downloaded ios5.1.1 to my phone, but i dont like the new software. The face detection used in the camera jut isnt for me. So, i would like to know if there was a way to undo the update and go back to ios 5.0.1. My iphone is not jailbroken or unlocked.
The face detection used in the camera jut isnt for me.
Try a different camera app. Camera Plus is a good one and there are many others. -
How can I return the sound on my iPod 4 touch to normal? The sound is speeded up when I play a downloaded podcast in any format - Bose dock, ear phones or mic. It's hard to tell, but the music seems ok, and the podcasts sound fine on my Mac.
I don't know what happened, but suddenly the playback was speeded up, even on podcasts that I had listened to normally before! Do I need to take it in for repair? Is there anything I can do? Thanks for your advice! PaulaiPod touch User Guide (For iOS 5.0 Software)
-
I recently found my phone outside in light rain (it had been there about 20 minutes). It had some glitches at first, however after letting it rest overnight it seemed to mostly recover. The one problem I am having is that I no longer have sound for any of my applications. I do have sound for phone fuctions, and I am able to use the speaker for phone functions.
When I am in my applications, including music/videos, the only way I can hear is if I use my earbuds. I am able to make a video and it will record sound just fine.
When I go to the multitask screen, the volume bar is empty and I cannot adjust it using the side buttons (even though in settings I have that feature activated). I completely reset all of my settings tonight and that did not make a difference.
Is there a setting I am missing, or am I just SOL? I am trying to avoid having to get a whole new phone but it is very frustrating to not have sound with my applications.Hi Baileyfour,
Welcome to the Support Communities!
The articles below may be able to help you with this issue.
Click on the link to see more details and screenshots.
iPhone: Can't hear through the receiver or speakers
http://support.apple.com/kb/TS1630
There are two places where vibrations can be set.
One is the Settings > Sounds
The other area is Settings > Notifications
If you have an app set to Alert, it may have a vibration set for it.
iOS: Understanding Notifications
http://support.apple.com/kb/ht3576
Information about Notifications settings can also be found in the iPhone User Guide (pages 131, 132)
http://manuals.info.apple.com/en_US/iphone_user_guide.pdf
I hope this information helps ....
Have a great day!
- Judy -
My iphone 4s is no longer detecting wifi since the IOS8 updates came out. I've restarted, rest the networks, reset the phone back to factory settings, and even tried the freezer trick. It is STILL not detecting ANY wifi networks. HELP!!! I cannot afford to go over my data and I use wifi at home and work... I believe the updates have caused the issue, because it was working fine before the second update released (I hadn't put the first one one until I noticed it had stopped working, and by then the second IOS8 version had came out). They need to do a third update to fix this issue.
If it's grayed out:
Reset Network Settings - if that doesn't fix it, then Backup and Restore AS A NEW DEVICE.
If it's still grayed out, unfortunately that means your Wi-Fi antenna quit, and it needs service. -
Hi! I have an iPhone 4s and when I FaceTime the sound is really low. It´s really annoying. When I do phone calls it works, and on my MacBook Pro it works much better on FaceTime than on my phone. Can someone pls help to so solute this? Really need help! Thanks
This sounds like something similar to https://discussions.apple.com/thread/3388112?start=105&tstart=0.
Try turning down the speak volume (System Preferences->Sound->Output->Output Volume) or the microphone gain (System Preferences->Sound->Input->Input Volume). Do this on both sides of the call. -
When I phone people can hear me without any problem, but I hear very very bad. The sounds is metallic and it is very difficult to understand. Have anyone idea of what is it about. I guess is not a software problem but I am not an expert. Thanks in advance
Make sure that you allow pages to choose their colors and that you haven't enabled High Contrast in the Accessibility settings.
*Firefox > Preferences > Content : Fonts & Colors > Colors : [X] "Allow pages to choose their own colors, instead of my selections above"
See also:
*http://kb.mozillazine.org/Images_or_animations_do_not_load
*https://support.mozilla.org/kb/Images+or+animations+do+not+show -
When I try to use my TWC App on my iPad2, the sound is about 15 seconds off from the picture. This only happening on my iPad, not my phone or my computer. TWC said it's an Apple issue. Is there a fix?
Hello Corkymom4,
Thanks for using Apple Support Communities.
Please follow the troubleshooting steps in the article below to resolve issues with apps downloaded from the App Store.
iOS: An app you installed unexpectedly quits, stops responding, or won’t open
http://support.apple.com/kb/TS1702
Take care,
Alex H. -
When I get a phone call or text message it will not make the sound. Just vibrate. But the switch is on normal. When I change it to vibrate the volume thing will not show. Nor will my up volume up key work. Is there any way to fix it?
Basic troubleshooting from the User's Guide is reset, restart, restore (first from backup then as new). Try each of these in order until the issue is resolved.
-
My sound has recently gone on my iphone4s, this only happens when I use my phone myself. The sound works when i receive a call or a message etc but I am unable to watch videos or play music, the sound also doesn't work on games. Please can anyone help with this issue or let me know how to fix it if experienced the same problem?
Remove all apps from multitasking bar. Double click Home button then tap and hold an icon and tap on little x on every app. Then reset. Hold down Home and Power button until Apple logo appears.
-
When I take my phone off charge in the morning I get an info box on the front which has the sound trumpet icon with a line through it and the word Mute. The only way to get rid of it is to reboot the phone any ideas as to how I can stop this happening?
Hello cor-el, thanks for your reply. I changed my settings for downloads to desktop and it has appeared on there. When I double click I am asked which program I want to open file. I click firefox and another box "opening install" says I have chosen to open the file which is an application and do I want to save it. This is the only real option so I press save file. I get a box saying this is an executable file which may contain viruses - do you want to run. I press ok and the final box showing C drive file name and desktop appears stating application not found.
This happens the same whenever I try to install.
To my untrained eye the application is not being recognised as an application and I cannot work out how to get it to do that.
My plugin is still showing as out of date.
Is there anything you could suggest. Thanks for your time.
Maybe you are looking for
-
Error while creating the repair order
I am getting an error when the repair order automatically creates the services it giving the error...."No entry for plant 1200, service object 01 CSREPAIR in table T399A" So please can any one tell me that why its performing like that? Thanks Mohsin
-
Access 2003 - Repeated "You cant make changes to the database" error
Hey all, Im having a very strange problem with Microsoft Access 2003, we work with old databases and when we open them up through Access 2003 we get the message "you cant make changes to the database objects" error, which is expected. However the lap
-
Hi everyone, I have two folders on my computer that I am sharing within my local network. I went to the Sharing pane and added these folders to the list of folders to be shared. Not only that I have given the group "Everyone", read and write access.
-
Total Crash (CC) on attempting to Create a Fluid Grid Layout!
I hope someone can recreate this, because I'm climbing up the walls right now. Where to start? I'm trying to create a single fluid-grid page. I'm too tired to repeat the steps concisely, but after being prompted to save my CSS, I do. That's when
-
Approval Query For A/R Delivery
Hi I have made a query for Approval Procedure, only those Delivery documents will go for approval for which A/R Down payment Request has not been made. But it is not working properly Kindly Correct the query. SELECT Distinct 'True' where dln1 t0 inn