音频转换
GET
无需 Key
运行中
接口简介
提供多格式音频转换服务,支持silk、mp3、pcm、wav格式互转,转换速度快,高效稳定,适配各类音频处理场景。
接口地址
https://api.lolimi.cn/API/amd/api请求示例
测试访问https://api.lolimi.cn/API/amd/api?url=音频链接&format=silk返回预览
JSON{
"code": 200,
"msg": "success",
"data": {
"audio_url": "http:\/\/api.lolimi.cn\/amd\/audio\/693797c7c0a67.silk",
"input_format": "mp3",
"output_format": "silk"
},
"request_id": "693797c71f2f1"
}
请求参数
| 参数名 | 类型 | 必填 | 描述 |
|---|---|---|---|
| url | string | Required | 音频链接二选一 |
| file | string | Required | 音频文件二选一 |
| format | string | Required | 可选择mp3,silk,pcm,wav格式 |
返回参数
| 参数名 | 类型 | 描述 |
|---|---|---|
| code | int | 状态码 |
| msg | string | 是否成功 |
| data.audio_url | string | 转换后的链接 |
| data.input_format | string | 转换前格式 |
| data.output_format | string | 转换后格式 |
| request_id | string | 标识ID |
参数配置
登录获取 KeyResponseWaiting...
<?php
$url = "https://api.lolimi.cn/API/amd/api";
$params = array (
'url' => 'value',
'file' => 'value',
'format' => 'value',
);
$url .= '?' . http_build_query($params);
$res = file_get_contents($url);
echo $res;