mirror of
https://github.com/xinnan-tech/xiaozhi-esp32-server.git
synced 2026-11-25 04:29:51 +01:00
9 lines
220 B
Python
9 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
|