getConfig 接口
获取音频配置。
请求方式
POST/GET http://ip/V1.0/volume/getConfig
请求数据
无
返回数据
{
"audioList": [
{
"audioSourceId": 3,
"meter": [
-100,
-100
],
"audioInfo": {
"beInMultiScenes": 0,
"boost": false,
"direction": 0,
"isGFX": false,
"label": "",
"muted": 0,
"name": "PROGRAM",
"preview": false,
"scope": 0,
"solo": 0,
"sourceType": 0,
"supportAFV": false,
"type": 3,
"volume": 0,
"volumeRecovery": 0
}
},
{
"audioSourceId": 1,
"meter": [
-100,
-100
],
"audioInfo": {
"beInMultiScenes": 0,
"boost": false,
"direction": 0,
"isGFX": false,
"label": "",
"muted": 0,
"name": "MONITOR",
"preview": false,
"scope": 0,
"solo": 0,
"sourceType": 0,
"supportAFV": false,
"type": 1,
"volume": -15,
"volumeRecovery": 0
}
},
{
"audioSourceId": 513,
"meter": [
-100,
-100
],
"audioInfo": {
"beInMultiScenes": 1,
"boost": false,
"direction": 0,
"isGFX": false,
"label": "",
"muted": 0,
"name": "MIC",
"preview": false,
"scope": 1,
"solo": 0,
"sourceType": 0,
"supportAFV": false,
"type": 512,
"uuid": "mic",
"volume": 0,
"volumeRecovery": 0
}
},
{
"audioSourceId": 1792,
"meter": [
-100,
-100
],
"audioInfo": {
"beInMultiScenes": 0,
"boost": false,
"direction": 0,
"isGFX": false,
"label": "",
"muted": 1,
"name": "HDMI 1",
"preview": false,
"scope": 0,
"solo": 0,
"sourceType": 6,
"supportAFV": true,
"type": 1792,
"uuid": "eco0",
"volume": 0,
"volumeRecovery": 0
}
},
{
"audioSourceId": 2048,
"meter": [
-100,
-100
],
"audioInfo": {
"beInMultiScenes": 0,
"boost": false,
"direction": 0,
"isGFX": false,
"label": "",
"muted": 2,
"name": "HDMI 2",
"preview": false,
"scope": 0,
"solo": 0,
"sourceType": 7,
"supportAFV": true,
"type": 2048,
"uuid": "eco1",
"volume": -13,
"volumeRecovery": 0
}
},
{
"audioSourceId": 1539,
"meter": [
-100,
-100
],
"audioInfo": {
"beInMultiScenes": 0,
"boost": false,
"direction": 0,
"isGFX": false,
"label": "BGM",
"muted": 0,
"name": "BGM",
"preview": false,
"scope": 0,
"solo": 0,
"sourceType": 0,
"supportAFV": false,
"type": 1539,
"uuid": "global_bgm",
"volume": 0,
"volumeRecovery": 0
}
},
{
"audioSourceId": 266,
"meter": [
-100,
-100
],
"audioInfo": {
"beInMultiScenes": 0,
"boost": false,
"direction": 0,
"isGFX": false,
"label": "Camera #1",
"muted": 0,
"name": "Camera #1",
"preview": false,
"scope": 0,
"solo": 0,
"sourceType": 30,
"supportAFV": true,
"type": 266,
"uuid": "fcd51e30551e4795879c8bdc8f5397cd",
"volume": 10,
"volumeRecovery": 0
}
},
{
"audioSourceId": 268,
"meter": [
-100,
-100
],
"audioInfo": {
"beInMultiScenes": 0,
"boost": false,
"direction": 0,
"isGFX": false,
"label": "机位 #1",
"muted": 0,
"name": "机位 #1",
"preview": false,
"scope": 0,
"solo": 0,
"sourceType": 32,
"supportAFV": true,
"type": 268,
"uuid": "0fb2b8a73754415cbea02a08c9446f96",
"volume": 10,
"volumeRecovery": 0
}
},
{
"audioSourceId": 256,
"meter": [
-100,
-100
],
"audioInfo": {
"beInMultiScenes": 0,
"boost": false,
"direction": 0,
"isGFX": false,
"label": "22",
"muted": 2,
"name": "22",
"preview": false,
"scope": 0,
"solo": 0,
"sourceType": 10,
"supportAFV": true,
"type": 256,
"uuid": "ebdaeb581a9b41b89d26a67c7c018cae",
"volume": 0,
"volumeRecovery": 0
}
},
{
"audioSourceId": 276,
"meter": [
-100,
-100
],
"audioInfo": {
"beInMultiScenes": 0,
"boost": false,
"direction": 0,
"isGFX": false,
"label": "Magewell",
"muted": 2,
"name": "Magewell",
"preview": false,
"scope": 0,
"solo": 0,
"sourceType": 54,
"supportAFV": true,
"type": 276,
"uuid": "1721371716617",
"volume": 0,
"volumeRecovery": 0
}
}
],
"micAudioDevice": {
"audioSourceId": 513,
"cardNo": 0,
"devNo": 0,
"deviceType": 0,
"direction": 1,
"id": 513,
"isMic": true,
"sourceType": 0
},
"monitorAudioDevice": {
"audioSourceId": 0,
"cardNo": 0,
"devNo": 0,
"deviceType": 0,
"direction": 0,
"id": 0,
"isMic": true,
"sourceType": 0
},
"monitorMicSound": true,
"message": "SUCCESS",
"status": 0
}
1. 返回状态
"status": 0
属性 | 说明 |
---|---|
status | 返回状态。0:数据获取成功 |
message | 返回状态描述 |
monitorMicSound | 是否监听麦克风音频,true:监听 false:不监听 |
monitorAudioDevice | 监听设备 |
micAudioDevice | 麦克风设备 |
audioList | 音频配置列表 |
2.音频设备 AudioDevice
属性 | 说明 |
---|---|
audioSourceId | 音频资源ID |
deviceType | 设备类型, 0:内置音频设备; 1:外接音频设备 |
id | 设备ID |
devNo | 设备序号 |
cardNo | 声卡序号 |
3.音频配置 AudioInfo
属性 | 说明 |
---|---|
type | 音频类型 |
beInMultiScenes | 音频是否存在于多个画面。为 1 时,支持setScope 1:是; 0:否 |
scope | 音频是否设置为全局,即是否与其他场景共享配置。 0:共享;1:不共享 |
supportAFV | 是否支持设置为AFV(音频跟随视频) true:支持;false:不支持 |
solo | 是否仅监听此路音频 1:是; 0:否 |
muted | 音频状态 0:一直打开; 1:一直关闭; 2:AFV(音频跟随视频) |
volume | 音量,dB |
label | 标签 |
name | 名称 |
其他未列举属性为预留参数。