get_record

get_record只读扩展
获取语音信息;传 out_format 则服务端转码并附带 base64

Call via POST http://127.0.0.1:3000/get_record (JSON params as the body) or WebSocket.

Parameters

Param Type Required Default Description
file string ""
file_id string ""
out_format "mp3" / "amr" / "wma" / "m4a" / "spx" / "ogg" / "wav" / "flac"

Returns (data)

Returns the standard OneBot envelope; the data shape is not yet documented.

Examples

curl
Python
JavaScript
Go
SnowLuma SDK
curl -X POST http://127.0.0.1:3000/get_record \
  -H 'Content-Type: application/json' \
  -H 'Authorization: Bearer <access-token>' \
  -d '{"file":"","file_id":"","out_format":"mp3"}'
Using an AI assistant?

MCP-capable clients can discover and call this action directly — no hand-written HTTP. See MCP.