TextFrame() issue with All Capital Letters in a word in sentence
pipecat version
0.0.60
Python version
3.12
Operating System
Ubuntu 22.04
Issue description
When we try to send all capital words in TextFrame(), the tts is not called and bot never speaks For example
Working -> TextFrame("Hello, I am Raj. Am I Speaking with Ramesh") Issue -> TextFrame("Hello, I am Raj. Am I Speaking with RAMESH")
We have tried with google, elevenlabs tts and same issue with both
Reproduction steps
- Do this tts.queue_frame(TextFrame("Hello, I am Raj. Am I Speaking with RAMESH"))
Expected behavior
TextFrame("Hello, I am Raj. Am I Speaking with RAMESH") Ideally this should also work.
Why having words all capitalize are causing issue
Actual behavior
TextFrame("Hello, I am Raj. Am I Speaking with RAMESH")
Logs
You're right, this is an issue. We are planning to migrate away from the internal match_endofsentence util to something more robust. We haven't put the time in yet, but this is something we plan to improve.
@aconchillo I'm assigning you to this, but it may end up being someone else.
There are a few issues like this one. I'm going to close this and instead track in an issue where we'll ultimately implement an improvement to end of sentence detection: #2040.