mirror of
https://github.com/xinnan-tech/xiaozhi-esp32-server.git
synced 2026-07-22 23:23:55 +08:00
* update:server连接manager-api * update:读取智能体模型配置 * update:添加默认模型的按钮 * update:优化配置读取方式 * update:server兼容manager接口改造 * update:优化私有配置加载 * update:加载私有模型配置
10 lines
220 B
Python
10 lines
220 B
Python
from abc import ABC, abstractmethod
|
|
from typing import Optional
|
|
|
|
|
|
class VADProviderBase(ABC):
|
|
@abstractmethod
|
|
def is_vad(self, conn, data) -> bool:
|
|
"""检测音频数据中的语音活动"""
|
|
pass
|