- Enhance TranscriptHandler to aggregate transcript fragments into complete sentences using match_endofsentence() - Add Whisker debugger integration for real-time pipeline visualization - Implement sentence buffering for both user and assistant messages - Add finalize_partial_sentences() method to handle incomplete sentences on disconnect - Improves transcript readability by reducing fragmented output Changes: - Import match_endofsentence utility for sentence boundary detection - Add pipecat_whisker.WhiskerObserver for debugging capabilities - Modify on_transcript_update() to accumulate and aggregate messages - Create _save_sentence() helper method for complete sentence handling - Update client disconnect handler to preserve partial sentences
9.9 KiB
9.9 KiB