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

User's audio is not received in Pipecat [finalize failed] #1054

Open
Atharv24 opened this issue Jan 21, 2025 · 4 comments
Open

User's audio is not received in Pipecat [finalize failed] #1054

Atharv24 opened this issue Jan 21, 2025 · 4 comments

Comments

@Atharv24
Copy link

Sometimes, the user keeps speaking, and the bot behaves as if user is on mute. Did some digging around with trace logs, and can see the finalize call fails just after the UserStoppedSpeakingFrame. Therefore, LLM does not receive the Final transcription frame, and no response is generated from the LLM.

Image

@Atharv24
Copy link
Author

Atharv24 commented Jan 21, 2025

I believe the error arises from here, since the deepgram docs specify that the return value is not guaranteed
Deepgram Finalize Docs

async_client finalize method from deepgram python SDK
Image

@markbackman
Copy link
Contributor

Was subsequent audio transcribed by Deepgram after the finalize failed message? That is, was only that one audio sample not transcribed and subsequent chunks were transcribed?

@Atharv24
Copy link
Author

@markbackman The issue once arises, remains for a few seconds (sometimes minutes too). Although it fixes itself after that.

@chadbailey59
Copy link
Contributor

From @Atharv24 in the Pipecat Discord:

However, there were InterimTranscriptionFrames being received before the final flush failed. Maybe we can add some sort of error boundary and stitch the interim frames together even if the final flush fails?

This is a good idea, but it would be difficult to test, since we can't reliably reproduce a 'finalize failed' from Deepgram. (Maybe we can hack the client to test it?)

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

No branches or pull requests

3 participants