1
0
mirror of https://github.com/ijaric/voice_assistant.git synced 2025-05-24 14:33:26 +00:00

feat: small fixes

This commit is contained in:
Григорич 2023-10-09 21:09:52 +03:00
parent 03a8e69367
commit 68a80c682b

View File

@ -23,7 +23,7 @@ class OpenaiSpeechRepository:
return extension
async def speech_to_text(self, audio: bytes) -> str:
file_extension: str | None = self.__get_file_extension_from_bytes(audio)
file_extension = self.__get_file_extension_from_bytes(audio)
if not file_extension:
raise ValueError("File extension is not supported")