Answer Machine Detection State Table Example

State table sample that uses the AMD custom server

Example State Table
-------------------

#
# =================================================
# Description

# Perform detection with
# Silence after voice = 1500 ms
# Human duration = 2000 ms
# Run time = 10000 ms

# This will run the detector for a maximum of 10 seconds
# If there is 1.5 seconds of silence after voice energy then
# a detection occurs
# If the voice energy was less than 2 seconds it is a human
# If the voice energy is greater than 2 seconds it is a machine
# If a beep is detected then its a beep/machine

#
# =================================================
# Prompt Directory


#
# =================================================
# Entry Point(s)

ENTRY_POINT(start,start);

#
# =================================================
# Variables

LOCAL
NUMBER rc;

#
# =================================================
# Actions

start:     OpenHostServerLink("CUSTOM_SERVER", "AMD")
    ;

    SendData("CUSTOM_SERVER", "AMD", "60", "SingleSimple",
                "1500",
                "2000",
                "10000")
    ;

    ReceiveData("CUSTOM_SERVER", "AMD", "60", "SingleSimple",
                rc)
    ;

    CloseHostServerLink("CUSTOM_SERVER", "AMD")
      edge EDGE_CLOSE_HOST_SUCCESSFUL:     exit
      edge EDGE_CLOSE_HOST_UNSUCCESSFUL:     exit
    ;

exit:     CloseEverything()
    ;