Skip to content

Commit

Permalink
fix: fixed sending whitespace-only messages to tts server
Browse files Browse the repository at this point in the history
  • Loading branch information
ErikBjare committed Jan 14, 2025
1 parent 3e8e869 commit 51ce6ae
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion gptme/tools/tts.py
Original file line number Diff line number Diff line change
Expand Up @@ -303,7 +303,7 @@ def speak(text, block=False, verbose=False, interrupt=True):

# Process each chunk
for chunk in chunks:
if not chunk:
if not chunk.strip():
continue

# Make request to the TTS server
Expand Down

0 comments on commit 51ce6ae

Please sign in to comment.