pipecat icon indicating copy to clipboard operation
pipecat copied to clipboard

TextFrame() issue with All Capital Letters in a word in sentence

Open sphatate opened this issue 7 months ago • 1 comments

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

  1. 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


sphatate avatar Apr 29 '25 12:04 sphatate

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.

markbackman avatar May 07 '25 22:05 markbackman

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.

markbackman avatar Jun 21 '25 14:06 markbackman