Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix(services): handle TranscriptionFrame separately in TTSService #966

Merged
merged 2 commits into from
Jan 12, 2025

Conversation

imsakg
Copy link
Contributor

@imsakg imsakg commented Jan 11, 2025

Exclude TranscriptionFrame from text frame processing in TTSService by updating the type check condition. This resolves unintended processing behavior when handling different frame types.

Discussion: https://discord.com/channels/1239284677165056021/1326894066775887963

Exclude TranscriptionFrame from text frame processing in TTSService by updating the type check condition. This resolves unintended processing behavior when handling different frame types.
@markbackman markbackman self-requested a review January 12, 2025 16:31
Copy link
Contributor

@markbackman markbackman left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM! Thanks for finding this.

FYI: @kwindla is doing something similar here, as @imsakg pointed out in Discord.
https://github.com/pipecat-ai/gemini-webrtc-web-simple/blob/39d63dbc3ead946f3386d6e92c00a15a3c20fe53/server/bot-gemini.py#L63

FYI @aconchillo

@markbackman markbackman merged commit 8c953ba into pipecat-ai:main Jan 12, 2025
5 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants