diff --git a/src/khoj/processor/conversation/offline/whisper.py b/src/khoj/processor/conversation/offline/whisper.py index d22486a9..56d2aaf5 100644 --- a/src/khoj/processor/conversation/offline/whisper.py +++ b/src/khoj/processor/conversation/offline/whisper.py @@ -6,7 +6,7 @@ import whisper from khoj.utils import state -async def transcribe_audio_offline(audio_filename: str, model: str) -> str | None: +async def transcribe_audio_offline(audio_filename: str, model: str) -> str: """ Transcribe audio file offline using Whisper """ diff --git a/src/khoj/processor/conversation/openai/whisper.py b/src/khoj/processor/conversation/openai/whisper.py index 6690c236..72834d92 100644 --- a/src/khoj/processor/conversation/openai/whisper.py +++ b/src/khoj/processor/conversation/openai/whisper.py @@ -6,7 +6,7 @@ from asgiref.sync import sync_to_async import openai -async def transcribe_audio(audio_file: BufferedReader, model, api_key) -> str | None: +async def transcribe_audio(audio_file: BufferedReader, model, api_key) -> str: """ Transcribe audio file using Whisper model via OpenAI's API """