feat: Implement latest Backend API Calls for Speaker Diarization Feature
Description
Integrate the latest backend API support for the Speaker Diarization feature into the frontend application. The implementation should allow users to enable or disable speaker diarization during transcription while maintaining compatibility with the existing transcription workflow.
The frontend must consume the updated backend API contract without requiring any backend modifications.
Requirements
- Integrate latest backend transcription API changes related to speaker diarization.
- Add frontend support for enabling/disabling speaker diarization.
- Send the correct
diarizationboolean in transcription requests. - Update API request/response typings and interfaces.
- Ensure backward compatibility with the existing transcription flow.
- Handle diarization-related states and responses properly.
- Prevent unnecessary API re-renders or repeated requests.
- Maintain existing UI/UX consistency and coding standards.
Acceptance Criteria
-
Users can toggle Speaker Diarization from the frontend.
-
API requests include:
diarization: true | false -
No backend changes are introduced.
-
Existing transcription functionality continues to work correctly.
-
No infinite render loops or repeated API calls occur.
-
Proper error handling is implemented for diarization requests.
Technical Notes
-
Update relevant files such as:
api.tsDictationEditor.tsx- related settings/components/interfaces
-
Follow existing frontend architecture and TypeScript conventions.