fetch_ptt_text

fetch_ptt_text只读扩展
获取语音转文字结果
别名:get_ptt_textget_record_text

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

Parameters

Param Type Required Default Description
message_id string ""

Returns (data)

{ text }:语音识别出的文本。

Every response is wrapped in the standard envelope: { "status": "ok", "retcode": 0, "data": ... }. The table below describes data.

Field Type Required Description
text string 语音转写文本
Raw JSON Schema
{
  "type": "object",
  "properties": {
    "text": {
      "type": "string",
      "description": "语音转写文本"
    }
  },
  "required": [
    "text"
  ]
}

Examples

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

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