Files
linux-voice-assistant/linux_voice_assistant/player/base.py
T
Florian Asche 1fc29241b4 Add linting scripts and pipeline (#201)
* Add linting scripts and pipeline
2026-03-05 01:58:39 +01:00

27 lines
453 B
Python

from abc import ABC, abstractmethod
from linux_voice_assistant.player.state import PlayerState
class AudioPlayer(ABC):
@abstractmethod
def play(self, url: str) -> None:
pass
@abstractmethod
def pause(self) -> None:
pass
@abstractmethod
def resume(self) -> None:
pass
@abstractmethod
def stop(self) -> None:
pass
@abstractmethod
def state(self) -> PlayerState:
pass