Get

Function

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

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
download_mode"g711a","aac","wav","mp4","mp3"stringThe format of the audio file to be downloaded when the remote end is listening.
license_platestringMust bring it when the control_type is AiPlate, and don't need it when it is other. It corresponds to "License Plate" on the interface.
page"smart_alarm_linkage",
"alarm_input",
"alarm_exception",
"ai_database_management", "
ai_license_plate_management",
"ai_appearance_frequency"
stringPage type,
"smart_alarm_linkage" smart linkage page,
"alarm_input" IO page,
"alarm_exception" exception page,
"ai_database_management" face database page,
"ai_license_plate_management" license plate database page,
"ai_appearance_frequency" personnel frequency page
channel"CH1", "CH2"......"CHX"stringIt must be included when the "page" is "smart_alarm_linkage" or "ai_database_management".
ability"FireDetection", "TemperatureMeasurement",
"FaceDetection",
"HumanVehicle",
"LicensePlate",
"Intrusion",
"EnterRegion",
"ExitRegion",
"LineCrossing",
"ObjectDetection",
"CrossCounting",
/> "HeatMap",
"CrowdDensity",
"QueueLength",
"RareSound",
"MotionDetection",
"VideoTampering",
"HumanDetection",
"WanderDetection",
"ParcelDetection",
"MultiTypeRecognition",
"FlameDetection",
"SoundDetection"
stringIntelligent type. Must be included when the "page" is "smart_alarm_linkage".

Sample:

POST /API/AlarmConfig/VoicePrompts/Get HTTP/1.1
{
    "version":"1.0",
    "data":{
        "control_type":"Normal",
        "download_mode":"mp3",
        "page":"ai_database_management",
        "channel":"CH1"
    }
}

Response Message

Parameter Description

Table 2
ParameterRangeTypeDescription
infoobjectSee Table 3 for details.
audio_liststring arraylist of audio files.
Table 3
ParameterRangeTypeDescription
languagestringThe current system language, used to cut into the default language when the web server imports text.
ipc_channel_infostring arrayThe front-end supports language output channel list.
urlstringThe url of the remote audition download audio file. For example: http://IP:Port/VoicePromptsTransform/api/FileName, the remote should replace IP, Port, and FileName by itself, where FileName is the file corresponding to audio_list+ File format, this file format is the download_mode (http://127.0.0.1:80/VoicePromptsTransform/api/test.mp3) sent when requesting.
voice_speaker_infostring arrayThe front-end supports language output ip speaker list.

Sample:

HTTP/1.1 200 OK
Content-Type: application/json
{
    "result": "success",
    "data": {
        "audio_list": [
            "5_13227.mp3", //Each item in the list is divided into two parts by "_", the first half is the unique serial number assigned to the audio file by the system, and the second half is the audio file name.
            "6_9528.mp3",
            "7_AlienBoi.mp3"
        ]
    }
}

Error Code

See Response Messages Body and Common error_code for more information.