Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 965119
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 16, 20262026-05-16T01:56:34+00:00 2026-05-16T01:56:34+00:00

i already have a ‘start voice recording when the volume reach a special level.

  • 0

i already have a ‘start voice recording” when the volume reach a special level.
But it has one downside. When it starts recording it already missed a 1/2 second or so.
When speaking a sentence it would miss the first word.

Any ideas (best with example).

Lets say I start first listening and get the peakpower, average, lowpass

 [recorder updateMeters];  ALPHA = 0.05;
peakPowerForChannel = pow(10, (0.05 * [recorder peakPowerForChannel:0]));
averagePowerForChannel = pow(10, (0.05 * [recorder averagePowerForChannel:0]));
lowPassResults = ALPHA * peakPowerForChannel + (1.0 - ALPHA) * lowPassResults;  
averagePassResults = ALPHA * averagePowerForChannel + (1.0 - ALPHA) * averagePassResults;   

than i look if its loud enough to record

 if (peakPowerForChannel > 0.08f) ) -> start recording

and if its less than a value it stops

  (peakPowerForChannel < 0.01f) -> stop record, start listening again

for now I found best is listening the peakpower, rather the average. but still its not fine.
I also thought about to have a kind of tempory recording all time and when the peak is high enough I could start from now-2 seconds. Something like that, but here I dont know how to realize. So any practical suggestions are welcome.

thanks chris

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-16T01:56:34+00:00Added an answer on May 16, 2026 at 1:56 am

    Like you said, continually record a short 1/2s chunk, which expands indefinitely when the power level is reached and indefinite recording starts. When recording stops, it should include the missing 1/2s opening.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I already have this issue but I cannot remember how to solved it. (I
I already have a solution for encrypting of several XML nodes or strings. But
i already have a post which is quite similiar, but i am getting more
I already have the code for exporting a html table to excel, but how
I already have this code but it gives me the wrong result. private void
I already have a working solution to the following problem, but I worry that
I already have a hosted service deployment which has 2 worker role instances, I
I already have the dragging and dropping of a UIImageView to another UIImageView but
I already have a working android app with several persisted objects/classes. But what if
I already have the automatically generated back button in the top left corner, but

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.