Batch import wasn't updated
This commit is contained in:
@@ -7,7 +7,7 @@ from typing import Dict, List
|
||||
|
||||
from starlette.datastructures import UploadFile
|
||||
|
||||
from app.dtos.listening import GenerateListeningExercises
|
||||
from app.dtos.listening import GenerateListeningExercises, Dialog
|
||||
from app.repositories.abc import IFileStorage, IDocumentStore
|
||||
from app.services.abc import IListeningService, ILLMService, ITextToSpeechService, ISpeechToTextService
|
||||
from app.configs.question_templates import getListeningTemplate, getListeningPartTemplate
|
||||
@@ -135,6 +135,9 @@ class ListeningService(IListeningService):
|
||||
|
||||
return {"exercises": exercises}
|
||||
|
||||
async def generate_mp3(self, dto: Dialog) -> bytes:
|
||||
return await self._tts.text_to_speech(dto)
|
||||
|
||||
async def save_listening(self, parts: list[dict], min_timer: int, difficulty: str, listening_id: str):
|
||||
template = getListeningTemplate()
|
||||
template['difficulty'] = difficulty
|
||||
|
||||
Reference in New Issue
Block a user