- 0 Login
- 1 System Settings
- 1.1 System Infomation
- 1.2 System Time
- 1.3 System Maintenance
- 1.4 Universal Asynchronous Receiver/Transmitter(UART)
- 1.5 General-purpose input/output(GPIO)
- 1.6 System Reboot
- 1.7 System Reset
- 1.8 System Memory
- 1.9 System Update
- 1.10 RS485
- 2 Network Settings
- 2.1 TCP/IP
- 2.2 4G Network
- 2.3 Wi-Fi Network
- 3 Platform Settings
- 3.1 GB-T28181
- 3.2 Customised platform
- 3.3 File Transfer Protocol (FTP)
- 3.4 Open Network Video Interface Forum(ONVIF)
- 3.5 Real Time Streaming Protocol (RTSP)
- 4 Video Settings
- 5 Audio Settings
- 5.1 Audio Encoding
- 5.2 Audio Input/Output
- 5.3 Audio File
- 6 Intelligent Settings
- 7 Alarm Settings
- 8 Record Settings
- 9 Pan/Tilt/Zoom(PTZ) Settings
- Appendix
5.3.1 Getting Audio Files
POST
/api/audio/config
Request
Cookie Params
access_token
string
required
Default:
{{access_token}}
Body Params application/json
id
string
required
op
string
required
Example
{
"id": "GSF_ID_CODEC_AOUT",
"op": "G0C0S0"
}
Request samples
Shell
JavaScript
Java
Swift
Go
PHP
Python
HTTP
C
C#
Objective-C
Ruby
OCaml
Dart
R
Request Request Example
Shell
JavaScript
Java
Swift
curl --location --request POST 'http://192.168.0.168/api/audio/config' \
--header 'Cookie: access_token=;access_token=' \
--header 'Content-Type: application/json' \
--data-raw '{
"id": "GSF_ID_CODEC_AOUT",
"op": "G0C0S0"
}'
Responses
🟢200请求成功
application/json
Body
code
integer
required
data
object
required
count
integer
required
vec
array [object {5}]
required
Example
{
"code": 0,
"data": {
"count": 14,
"vec": [
{
"idx": 0,
"sample_rate": 48000,
"channel_cnt": 1,
"filename": "Audio_caution48k.aac",
"remark": "作业区域,注意安全"
},
{
"idx": 1,
"sample_rate": 48000,
"channel_cnt": 1,
"filename": "Audio_nosmoking48k.aac",
"remark": "本区域禁止吸烟"
},
{
"idx": 2,
"sample_rate": 48000,
"channel_cnt": 1,
"filename": "Audio_novest48k.aac",
"remark": "请穿好反光衣"
},
{
"idx": 3,
"sample_rate": 48000,
"channel_cnt": 1,
"filename": "Audio_persondown48k.aac",
"remark": "请注意有人摔倒"
},
{
"idx": 4,
"sample_rate": 48000,
"channel_cnt": 1,
"filename": "Audio_regionalarm48k.aac",
"remark": "请注意区域异常"
},
{
"idx": 5,
"sample_rate": 48000,
"channel_cnt": 1,
"filename": "Audio_wearmask48k.aac",
"remark": "疫情防控,请戴好口罩"
},
{
"idx": 6,
"sample_rate": 48000,
"channel_cnt": 1,
"filename": "Audio_work48k.aac",
"remark": "工作时间,请坚守岗位"
},
{
"idx": 7,
"sample_rate": 48000,
"channel_cnt": 1,
"filename": "Audio_nohelmet48k.aac",
"remark": "请佩戴安全帽"
},
{
"idx": 8,
"sample_rate": 48000,
"channel_cnt": 1,
"filename": "Audio_nocalling48k.aac",
"remark": "本区域禁止通话"
},
{
"idx": 9,
"sample_rate": 48000,
"channel_cnt": 1,
"filename": "Audio_firesmoke48k.aac",
"remark": "请注意烟火"
},
{
"idx": 10,
"sample_rate": 48000,
"channel_cnt": 1,
"filename": "Audio_overload48k.aac",
"remark": "电梯超员,禁止运行"
},
{
"idx": 11,
"sample_rate": 48000,
"channel_cnt": 1,
"filename": "Audio_occlusion48k.aac",
"remark": "请勿遮挡智能识别装置"
},
{
"idx": 12,
"sample_rate": 8000,
"channel_cnt": 1,
"filename": "Audio_nohelmet.g711a",
"remark": "请佩戴安全帽"
},
{
"idx": 13,
"sample_rate": 8000,
"channel_cnt": 1,
"filename": "Audio_overload.g711a",
"remark": "电梯超员,禁止运行"
}
]
}
}
Modified at 2024-12-27 08:53:02