API URL
/api/codec/audio/GetInfo.json
Request
Method:GET/POSTParameters: NONE
Response
Example:
{
"result": "ok",
"data": {
"source": {
"audioSource": "hdmi", //音频源信息,来自于hdmi或者linein
},
"audioEncode": [
{
"name" : "Channel-1",
"resample": "fastest",
"sampling": 48000,
"channels": 2,
"aacType": "AAC",
"bitrate": 64000,
},
{
"name" : "Channel-1",
"g711Law": "PCMU",
"resample": "fastest",
"aacType": "G711",
"bitrate": 64000
}
]
}
}
Data字段说明:
Field | Value | 说明 |
---|---|---|
resample | [String] | fastest/common fastest表示快速/音质一般,common表示高音质/较高CPU消耗 |
source.audioSource | [String] | hdmi/Line-IN hdmi表示来源为hdmi音频,Line-IN表示来源为模拟音频 |
aacType | [String] | AAC/G711 表示音频编码格式 |
channels | [Integer] | 1/2表示声道数:1表示单声道 ,2表示立体声 |
bitrate | [Integer] | 64000表示64Kbps编码码率 |
sampling | [Integer] | 48000表示48KHz采样率 |
g711Law | [String] | PCMU/PCMA表示G711类型 |