28 lines
384 B
Plaintext
28 lines
384 B
Plaintext
# 请求:获取音频数据
|
||
string command # "start" (开始录音), "stop" (停止并返回), "get" (获取当前缓冲区)
|
||
int32 duration_ms # 录音时长(毫秒),仅用于start命令
|
||
---
|
||
# 响应:音频数据
|
||
bool success
|
||
uint8[] audio_data # PCM音频数据(int16格式)
|
||
int32 sample_rate
|
||
int32 channels
|
||
int32 samples # 样本数
|
||
string message
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|