Files
hivecore_robot_voice/srv/AudioData.srv

28 lines
384 B
Plaintext
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

# 请求:获取音频数据
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