Download src/open_llm_vtuber/vad/vad_interface.py from britto224/test_ui: direct link, hf CLI and curl.
- Browser
- Download file 389 Bytes
-
https://huggingface.co/spaces/britto224/test_ui/resolve/main/src/open_llm_vtuber/vad/vad_interface.py
- Command line
-
hf download hf://spaces/britto224/test_ui/src/open_llm_vtuber/vad/vad_interface.py
-
curl -L -o vad_interface.py https://huggingface.co/spaces/britto224/test_ui/resolve/main/src/open_llm_vtuber/vad/vad_interface.py
389 Bytes
| from abc import ABC, abstractmethod | |
| class VADInterface(ABC): | |
| def detect_speech(self, audio_data: bytes): | |
| """ | |
| Detect if there is voice activity in the audio data. | |
| :param audio_data: Input audio data | |
| :return: Returns a sequence of audio bytes containing human voice if voice activity is detected | |
| """ | |
| pass | |