Audio-Analyzer-ToneDetect

 view release on metacpan or  search on metacpan

README  view on Meta::CPAN


    chunk_max 70
        Maximum number of chunks to process before returning. Returns false
        if it reaches this number of chunks without detecting a tone. With
        default chunk_size and sample_rate, the default of 70 equates to
        about 4.5 seconds of audio.

    min_tone_length 0.5
        Minimum durration of a tone, in seconds, before we consider it
        detected. Due to sample rate, chunk size, and integer math, with
        defaults this ends up being 0.448 seconds. The formula for actual
        seconds is int( min_length * sample_rate / chunk_size ) * chunk_size
        / sample_rate. Default to 0.5

    valid_tones undef, 'builtin', or ARRAYREF
        A list of valid (expected) tones. If supplied, the closest expected
        tone for a given detected tone is returned. Call get_next_tone() in
        list context or supply the following call back if you want both
        values. A value of 'builtin' uses a builtin list of valid classic
        Motorola Minitor tones. Defaults to unset.

lib/Audio/Analyzer/ToneDetect.pm  view on Meta::CPAN

=item chunk_max 70

Maximum number of chunks to process before returning.  Returns false if it
reaches this number of chunks without detecting a tone. With default chunk_size
and sample_rate, the default of 70 equates to about 4.5 seconds of audio.

=item min_tone_length 0.5

Minimum durration of a tone, in seconds, before we consider it detected.  Due to
sample rate, chunk size, and integer math, with defaults this ends up being
0.448 seconds.  The formula for actual seconds is int( min_length * sample_rate
/ chunk_size ) * chunk_size / sample_rate.  Default to 0.5

=item valid_tones undef, 'builtin', or ARRAYREF

A list of valid (expected) tones.  If supplied, the closest expected tone for
a given detected tone is returned. Call get_next_tone() in list context or
supply the following call back if you want both values.  A value of 'builtin'
uses a builtin list of valid classic Motorola Minitor tones.  Defaults to unset.

=item valid_error_cb



( run in 1.290 second using v1.01-cache-2.11-cpan-3cd7ad12f66 )