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:
parent
03a8e69367
commit
68a80c682b
|
@ -23,7 +23,7 @@ class OpenaiSpeechRepository:
|
||||||
return extension
|
return extension
|
||||||
|
|
||||||
async def speech_to_text(self, audio: bytes) -> str:
|
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:
|
if not file_extension:
|
||||||
raise ValueError("File extension is not supported")
|
raise ValueError("File extension is not supported")
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user