Skip to content

Main content

Voice Sample Hop Duration Tool

Calculate voice sample hop duration from explicit caller-supplied inputs.

Loading tool…

Description

For nonnegative integer hopSamples and positive sampleRateHz return hopSeconds=hopSamples/sampleRateHz.

Voice and airflow research records use sample rates, frame windows, cycle boundaries, event clocks, unit conversions, and laterality labels. A data-support fraction or signed difference has a specific convention and denominator. These calculations operate on supplied records rather than an audio, respiratory, or vestibular examination.

For nonnegative integer hopSamples and positive sampleRateHz return hopSeconds=hopSamples/sampleRateHz.

When to use this tool

Use Voice Sample Hop Duration when you need this sample, frame, cycle, timing, airflow, or laterality component for supplied research records.

How to use the tool and how it works

  1. Enter hopSamples, sampleRateHz. Use the units and conventions below.
  2. Run the tool. Correct any format, range, or cross-field input error before interpreting the output.
  3. Read hopSeconds. Use the output convention below.

For nonnegative integer hopSamples and positive sampleRateHz return hopSeconds=hopSamples/sampleRateHz.1

Input fieldMeaning and unitsAccepted input
hopSamplesNonnegative integer samples per hop; zero permitted.Required. Safe integer; minimum 0.
sampleRateHzSample Rate HzRequired. Finite number; strictly above 0.
Output fieldInterpretationReturned shape
hopSecondsHop SecondsRequired. Finite number.
json
{
  "input": {
    "hopSamples": 160,
    "sampleRateHz": 16000
  },
  "output": {
    "hopSeconds": 0.01
  }
}

Limitations and assumptions

  • Sample rate is samples per second. A zero hop is allowed here; the tool converts a supplied sample interval without extracting voice frames, estimating sample rate, or assessing voice quality.
  • Inputs must satisfy both the field types and the cross-field conditions above. Invalid input causes an error; a successful false flag or documented placeholder is a different result.
  • Numeric calculations use binary floating point unless exact decimal-integer arithmetic is explicitly stated. No hidden measurement tolerance or decimal rounding is added; nonfinite or out-of-contract results are rejected. Signed zero is exported as zero.

Alternative or Complementary methods

Use calibrated acquisition and a documented signal-analysis or assessment protocol when a local conversion is insufficient. Verify sample rate, frame boundaries, clock corrections, and record annotations.

References

  1. Calculation and input contract: otolaryngology/voice-sample-hop-duration — tool.io

Similar or alternative tools

  • Research Voice Frame Hop

    Compute supplied research frame hop and first-to-last start span, excluding unspecified frame duration.

  • Voice Frame Support Share

    Mark frames complete when their full span lies within the recording, count complete and valid-complete frames, and return share over completeFrames when positive, otherwise zero with defined=false.