Merge pull request #113 from rudrodip/main

Fix handling of empty audio content in listener function
This commit is contained in:
Ty Fiero 2024-03-22 10:27:09 -07:00 committed by GitHub
commit 6d0e885c55
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 1 additions and 1 deletions

View File

@ -211,7 +211,7 @@ async def listener():
if message["type"] == "audio" and message["format"].startswith("bytes"):
if "content" not in message or message["content"] == None: # If it was nothing / silence
if "content" not in message or message["content"] == None or message["content"] == "": # If it was nothing / silence / empty
continue
# Convert bytes to audio file