From 883a1db90ce06f59113e3b94eba4f3a887366be6 Mon Sep 17 00:00:00 2001 From: John <3859906+saltchicken@users.noreply.github.com> Date: Mon, 25 Mar 2024 16:01:18 -0700 Subject: [PATCH] Change datetime.utcnow() to datetime.now() Fixes deprecation warning. Functionally the same. --- transcribe_demo.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/transcribe_demo.py b/transcribe_demo.py index 6ea633c..4e8b9b5 100644 --- a/transcribe_demo.py +++ b/transcribe_demo.py @@ -91,7 +91,7 @@ def record_callback(_, audio:sr.AudioData) -> None: while True: try: - now = datetime.utcnow() + now = datetime.now() # Pull raw recorded audio from the queue. if not data_queue.empty(): phrase_complete = False