CMVR-IOT/cmvr-iot-inspection/src/main/java/com/cmvr/inspection/service/IInspectionDetectionAlertService.java
lixiaolong ecda2b0ebc feat(audio): 实现实时语音会话功能支持设备分离和音频缓冲优化
- 配置Tomcat支持20MB大JSON请求处理PPE报警中的Base64图片
- 扩展AudioService支持独立的扬声器和麦克风设备ID参数处理
- 实现浏览器音频推送器,提供音频帧缓冲和定时推送机制
- 添加音频数据protobuf定义,支持多种音频格式和编解码参数
- 重构音频会话管理,实现音频队列、统计监控和性能优化
- 增强心跳检测机制,改进机器人离线状态处理逻辑
2026-07-22 13:49:05 +08:00

19 lines
534 B
Java
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.

package com.cmvr.inspection.service;
import com.cmvr.inspection.domain.dto.alert.AlertEnvelope;
/**
* 边缘 AI 检测报警接收服务。
*/
public interface IInspectionDetectionAlertService
{
/**
* 接收并持久化一条 PPE 违规报警。
*
* @param envelope 报警信封
* @param requestIdempotencyKey HTTP 请求头中的幂等键,允许为空
* @return true 表示本次新增false 表示重复事件
*/
boolean receive(AlertEnvelope envelope, String requestIdempotencyKey);
}