Files
encoach_backend/app/controllers/abc/speaking.py
Carlos-Mesquita 6909d75eb6 Fixed level issues
2024-11-10 04:21:36 +00:00

24 lines
530 B
Python

from abc import ABC, abstractmethod
from typing import Optional
from fastapi import BackgroundTasks
class ISpeakingController(ABC):
@abstractmethod
async def get_speaking_part(self, task: int, topic: str, second_topic: str, difficulty: str):
pass
@abstractmethod
async def get_avatars(self):
pass
@abstractmethod
async def generate_video(self, text: str, avatar: str):
pass
@abstractmethod
async def poll_video(self, vid_id: str):
pass