From: Dade Brandon Date: Mon, 21 Dec 2015 03:33:02 +0000 (-0800) Subject: app_amd: Correct documentation to reflect functionality X-Git-Tag: 11.22.0-rc1~53^2 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=refs%2Fchanges%2F44%2F1844%2F2;p=thirdparty%2Fasterisk.git app_amd: Correct documentation to reflect functionality Update documentation to reflect that maximum_number_of_words has functionality inconsistent with the variable name (and inconsistent with prior documentation.) Update documentation for silence_threshold, which previously implied that it was measuring time, rather than noise averages in the sample. Update the comments in amd.conf.sample. ASTERISK-25639 #close Change-Id: I4b1451e5dc9cb3cb06d59b6ab872f5275ba79093 --- diff --git a/apps/app_amd.c b/apps/app_amd.c index a849aad93b..66aadf9904 100644 --- a/apps/app_amd.c +++ b/apps/app_amd.c @@ -50,19 +50,19 @@ ASTERISK_FILE_VERSION(__FILE__, "$Revision$") Is maximum initial silence duration before greeting. - If this is exceeded set as MACHINE + If this is exceeded, the result is detection as a MACHINE is the maximum length of a greeting. - If this is exceeded set as MACHINE + If this is exceeded, the result is detection as a MACHINE Is the silence after detecting a greeting. - If this is exceeded set as HUMAN + If this is exceeded, the result is detection as a HUMAN Is the maximum time allowed for the algorithm - to decide HUMAN or MACHINE + to decide on whether the audio represents a HUMAN, or a MACHINE Is the minimum duration of Voice considered to be a word @@ -73,14 +73,14 @@ ASTERISK_FILE_VERSION(__FILE__, "$Revision$") Is the maximum number of words in a greeting - If this is exceeded set as MACHINE + If this is REACHED, then the result is detection as a MACHINE - How long do we consider silence + What is the average level of noise from 0 to 32767 which if not exceeded, should be considered silence? Is the maximum duration of a word to accept. - If exceeded set as MACHINE + If exceeded, then the result is detection as a MACHINE @@ -118,7 +118,7 @@ ASTERISK_FILE_VERSION(__FILE__, "$Revision$") Word Count - maximum number of words. - + diff --git a/configs/amd.conf.sample b/configs/amd.conf.sample index c4a5907c53..84b391ceaf 100644 --- a/configs/amd.conf.sample +++ b/configs/amd.conf.sample @@ -3,17 +3,29 @@ ; [general] +total_analysis_time = 5000 ; Maximum time allowed for the algorithm to decide + ; on whether the audio represents a HUMAN, or a MACHINE +silence_threshold = 256 ; If the average level of noise in a sample does not reach + ; this value, from a scale of 0 to 32767, then we will consider + ; it to be silence. + +; Greeting ; initial_silence = 2500 ; Maximum silence duration before the greeting. - ; If exceeded then MACHINE. -greeting = 1500 ; Maximum length of a greeting. If exceeded then MACHINE. + ; If exceeded, then the result is detection as a MACHINE. after_greeting_silence = 800 ; Silence after detecting a greeting. - ; If exceeded then HUMAN -total_analysis_time = 5000 ; Maximum time allowed for the algorithm to decide - ; on a HUMAN or MACHINE + ; If exceeded, then the result is detection as a HUMAN +greeting = 1500 ; Maximum length of a greeting. If exceeded, then the + ; result is detection as a MACHINE. + +; Word detection ; min_word_length = 100 ; Minimum duration of Voice to considered as a word +maximum_word_length = 5000 ; Maximum duration of a single Voice utterance allowed. between_words_silence = 50 ; Minimum duration of silence after a word to consider ; the audio what follows as a new word -maximum_number_of_words = 3 ; Maximum number of words in the greeting. - ; If exceeded then MACHINE -maximum_word_length = 5000 ; Maximum duration of a single Voice utterance allowed. -silence_threshold = 256 + +maximum_number_of_words = 3 ; Maximum number of words in the greeting + ; If REACHED, then the result is detection as a MACHINE + ; WARNING: Releases prior to January 1 2016 documented + ; maximum_number_of_words as 'if exceeded, then MACHINE', + ; which did not reflect the true functionality. In Asterisk 14, + ; this functionality will change to reflect the variables' name.