feat: implement benchmarking analytics and realtime metrics display
Summary
This merge request introduces realtime benchmarking analytics support in the Speech Voice App Frontend by integrating the required backend API calls and displaying ASR performance metrics in the user interface.
Changes Implemented
Backend API Integration
- Added missing benchmarking-related API calls
- Integrated realtime analytics response handling
- Improved error handling and fallback scenarios for analytics APIs
UI Enhancements
-
Added benchmarking analytics section below the transcription box
-
Implemented realtime metrics display during/after transcription
-
Added support for displaying:
- Processing Time
- RTFx Value
- CER (Character Error Rate)
- WER (Word Error Rate)
- Detected Language(s)
- Number of Speakers Detected
State Management
- Updated frontend state handling for benchmark data
- Added conditional rendering for local/offline analytics mode
- Improved synchronization between transcription and analytics updates
Testing Performed
- Verified successful API integration and response rendering
- Tested realtime analytics updates during transcription flow
- Validated UI behavior for toggle on/off states
- Checked handling of missing or incomplete analytics responses
- Confirmed no impact on existing transcription functionality
Expected Outcome
The application now provides realtime benchmarking insights directly within the transcription interface, enabling users to monitor ASR model performance and transcription quality metrics effectively.
closes #31 (closed)