mirror of
https://github.com/xinnan-tech/xiaozhi-esp32-server.git
synced 2026-11-27 04:49:47 +01:00
9 lines
219 B
Python
9 lines
219 B
Python
from abc import ABC, abstractmethod
|
|
from typing import Optional
|
|
|
|
|
|
class VADProviderBase(ABC):
|
|
@abstractmethod
|
|
def is_vad(self, conn, data) -> bool:
|
|
"""Detect voice activity in audio data"""
|
|
pass
|