27 lines
453 B
Python
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
|