Range

Function

This API is used to get Alarm > Voice Prompts configuration parameter range.

Request Message

Parameter Description

Table 1
ParameterRangeTypeDescription
control_type"Normal", "AiFace", "AiPlate"stringControl type:
Normal: non-AI face and non-AI license plate
AiFace: AI face
AiPlate: AI license plate

Sample:

POST /API/AlarmConfig/VoicePrompts/Get HTTP/1.1
{
    "version": "1.0",
    "data": {
        "control_type":"Normal"
    }
}

Response Message

Parameter Description

Table 2
ParameterRangeTypeDescription
language"Simplified Chinese",
"Traditional Chinese",
"ČEŠTINA",
"DANSK",
"ENGLISH",
"FINNISH",< br />"FRANÇAIS",
"DEUTSCH",
"ΕΛΛΗΝΙΚΑ",
"עברית",
"MAGYAR",
"ITALIANO",
>"Japanese",
"POLSKI",
"PORTUGUÊS",
"РУССКИЙ",
"ESPAÑOL",
"ไ ท ย",
"SLOVENIA",
"ROMANIAN",
"BULGARIAN",
"ARABIC",
"HINDI",
"VIETNAM",
"HOLLAND",
"TURKEY",
"PERSIAN",
"SVENSKA",
"KOREAN",
"INDONESIA",
"BRAZILE ",
"TFLEMISH",
"Українська",
"SLOVENSKY"
stringThe current system language, used to cut into the default language when the web server imports text.
command"Upload", "Remove", "Transform", "Exit", "Play"stringcommand.
control_type"Normal","AiFace","AiPlate"stringControl type.
file_namestring length:1-64stringfile name.
textstring length:1-200stringfile text.
index0-65535intfile index.
convert_mode"File","NetworkText"stringconversion mode.
packet_index0-65535intpacket index.
file_count1-65535intNumber of files.
package_size1-51200intpackage size.
download_mode"g711a","wav","mp3"stringThe format of the audio file to be downloaded when the remote end is listening.
urlstring length:1-128stringdownload link.
license_platestring length:1-15stringIt must be brought when the control_type is AiPlate, and it is not necessary when it is other. It corresponds to the "License Plate" on the interface.
tips_support_importboolWhether to support import tips.
tips_max_length0-16intthe longest tip length.
volume0-100intvolume.
file_datastring length:1-5242880stringfile data.
audio_liststring arraylist of audio files.
siren_type_contentJson Object
delete_buttonboolDelete/import audio button

Sample:

HTTP/1.1 200 OK
Content-Type: application/json
{
    "result": "success",
    "data": {
        "language": {
            "type": "string",
            "items": [
                "简体中文",
                "繁體中文",
                "ČEŠTINA",
                "DANSK",
                "ENGLISH",
                "FINNISH",
                "FRANÇAIS",
                "DEUTSCH",
                "ΕΛΛΗΝΙΚΑ",
                "עברית",
                "MAGYAR",
                "ITALIANO",
                "日 本 語",
                "POLSKI",
                "PORTUGUÊS",
                "РУССКИЙ",
                "ESPAÑOL",
                "ไ ท ย",
                "SLOVENIA",
                "ROMANIAN",
                "BULGARIAN",
                "ARABIC",
                "HINDI",
                "VIETNAM",
                "HOLLAND",
                "TURKEY",
                "PERSIAN",
                "SVENSKA",
                "KOREAN",
                "INDONESIA",
                "BRAZILE",
                "TFLEMISH",
                "Українська",
                "SLOVENSKY"
            ],
            "hide_items": [
                "简体中文",
                "ČEŠTINA",
                "SLOVENIA",
                "VIETNAM",
                "SVENSKA",
                "INDONESIA",
                "BRAZILE",
                "TFLEMISH",
                "Українська",
                "SLOVENSKY"
            ]
        },
        "command": {
            "type": "string",
            "items": [
                "Upload",
                "Remove",
                "Transform",
                "Exit",
                "Play"
            ]
        },
        "control_type": {
            "type": "string",
            "items": [
                "Normal",
                "AiFace",
                "AiPlate"
            ]
        },
        "file_name": {
            "type": "string",
            "min_len": 1,
            "max_len": 64
        },
        "text": {
            "type": "string",
            "min_len": 1,
            "max_len": 200
        },
        "index": {
            "type": "int32",
            "min": 0,
            "max": 65535
        },
        "convert_mode": {
            "type": "string",
            "items": [
                "File",
                "NetworkText"
            ]
        },
        "packet_index": {
            "type": "int32",
            "min": 0,
            "max": 65535
        },
        "file_count": {
            "type": "int32",
            "min": 1,
            "max": 65535
        },
        "package_size": {
            "type": "int32",
            "min": 1,
            "max": 512000
        },
        "download_mode": {
            "type": "string",
            "items": [
                "g711a",
                "wav",
                "mp3"
            ]
        },
        "url": {
            "type": "string",
            "min_len": 1,
            "max_len": 128
        },
        "license_plate": {
            "type": "string",
            "min_len": 1,
            "max_len": 15
        },
        "tips_support_import": {
            "type": "bool"
        },
        "tips_max_length": {
            "type": "string",
            "min_len": 0,
            "max_len": 16
        },
        "volume": {
            "type": "int32",
            "min": 0,
            "max": 100
        },
        "file_data": {
            "type": "string",
            "min_len": 1,
            "max_len": 5242880
        },
        "audio_list": {
            "type": "array",
            "min_size": 0,
            "max_size": 100,
            "items": []
        }
    }
}

Error Code

See Response Messages Body and Common error_code for more information.