{
    "$schema": "http://json-schema.org/draft-04/schema#",
    "title": "Speech",
    "type": "object",
    "additionalProperties": false,
    "description": "TAnalytics-v3 .. Log when any speech recognition feature in the app is used",
    "properties": {
        "log_context": {
            "$ref": "/resources/schema/analytics/client/v3/LogContext.json",
            "description": "Required Log Context Reference"
        },
        "event_name": {
            "type": "string",
            "enum": ["SPEECH"]
        },
        "schema_definition": {
            "type": "string",
            "enum": ["Speech"]
        },
        "trigger": {
            "$ref": "/resources/schema/analytics/client/v3/SpeechTriggerType.json",
            "description": "Required trigger that activated the speech event"
        },
        "recognized_command": {
            "type": "string",
            "description": "Optional Command recognized by the speech engine"
        },
        "vendor": {
            "type": "string",
            "description": "Required name of the speech engine vendor"
        },
        "reffering_experience": {
            "type": "string",
            "description": "values of Map SRP_List SRP_Map Meetup Other"
        },
        "session_id": {
            "type": "string",
            "description": "When user use speech to perform one task then it will be called one session. One session can have more than one session commands depending on the task. Use log id of first speech event in the session as the session id for all of the speech events in the session."
        },
        "type": {
            "$ref": "/resources/schema/analytics/client/v3/CommandTypeValues.json",
            "description": "Preset Type of recognized command, tell the intention of user. Full command will be recorded as part of recognized_command field."
        },
        "status": {
            "$ref": "/resources/schema/analytics/client/v3/StatusType.json",
            "description": "Required status of action after speech recognition"
        }
    },
    "required": [
        "log_context",
        "event_name",
        "schema_definition",
        "trigger",
        "vendor",
        "status",
        "recognized_command"
    ]
}