Discussion Board

Results 1 to 5 of 5
  1. #1
    Registered User wiso33's Avatar
    Join Date
    Mar 2009
    Posts
    389
    Hi,everyone. I want to done such a game: A girl will doing each postures with volume from microphone, e.g. She will dancing if shout loudly toward microphone. She will smiling if low voice. She will sleeping if Silence.

    How to detect volume from microphone real time.

  2. #2
    Nokia Developer Moderator wizard_hu_'s Avatar
    Join Date
    Feb 2006
    Location
    Mallorca, Holiday
    Posts
    27,683
    Simply get some samples from any recorder API, like CMdaAudioRecorderUtility or CMdaAudioInputStream, calculate some loudness (RMS or average-of-absolutes over some short time), and compare it to various threshold values.

  3. #3
    Registered User wiso33's Avatar
    Join Date
    Mar 2009
    Posts
    389
    Thank for reply. And how to calculate loudness in sample data.

  4. #4
    Nokia Developer Moderator wizard_hu_'s Avatar
    Join Date
    Feb 2006
    Location
    Mallorca, Holiday
    Posts
    27,683
    The tool is called mathematics.
    RMS: http://en.wikipedia.org/wiki/Root_mean_square
    "Average-of-absolutes": http://en.wikipedia.org/wiki/Absolute_deviation

    Of course you can bring in extras like Fourier transformation, and weight the result according to the human hearing.

  5. #5
    Registered User wiso33's Avatar
    Join Date
    Mar 2009
    Posts
    389
    In fact, I don't need exact loudness value. I need a threshold values to on-off enough. I wonder if there is a simple api to use in s60 sdk.

Similar Threads

  1. meter volume and detect dB to in sound
    By jibiao in forum Nokia N9
    Replies: 0
    Last Post: 2011-07-24, 13:39
  2. Debug Volume from Microphone
    By dottore11 in forum Python
    Replies: 1
    Last Post: 2009-12-30, 05:38
  3. microphone volume in N97
    By MuratMetu in forum Audio
    Replies: 1
    Last Post: 2009-11-25, 03:03
  4. How to detect volume key events on N82
    By jonnekodu in forum Symbian User Interface
    Replies: 3
    Last Post: 2008-09-18, 08:57
  5. How to detect side volume key in Series 40 devices.
    By gimmins in forum Symbian Tools & SDKs
    Replies: 1
    Last Post: 2006-05-12, 08:06

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Nokia Developer aims to help you create apps and publish them so you can connect with users around the world.

京ICP备05048969号  © Copyright Nokia 2013 All rights reserved