Skip to content

Commit

Permalink
fix file path
Browse files Browse the repository at this point in the history
  • Loading branch information
Josh-XT committed Mar 26, 2024
1 parent 442ac55 commit 0c717a3
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion agixt/extensions/voice_chat.py
Original file line number Diff line number Diff line change
Expand Up @@ -232,7 +232,9 @@ async def transcribe_m4a_audio(
base64_audio=base64_audio, filename=filename
)
# Transcribe the audio to text.
user_input = await self.transcribe_audio_from_file(file_path=filename)
user_input = await self.transcribe_audio_from_file(
file_path=os.path.join("./WORKSPACE", filename)
)
user_input.replace("[BLANK_AUDIO]", "")
os.remove(os.path.join("./WORKSPACE", filename))
return user_input

0 comments on commit 0c717a3

Please sign in to comment.