pucardotorg / dristi_experiments

For Pucar Solutions Team
2 stars 4 forks source link

Transcription - Create a test suite to perform e2e tests #36

Open suyashgautam opened 4 months ago

suyashgautam commented 4 months ago

Task: Create E2E Test Suite for WebSocket Connection and Audio Transcription

Description

We need to create an end-to-end (E2E) test suite that verifies the complete flow of our transcription service, starting from establishing a WebSocket connection, passing audio to the connection, and receiving the transcription. We currently have a server class test suite in the tests folder and integration tests with Faster-Whisper. This issue aims to extend the current setup to support E2E tests for both Faster-Whisper and Bhashini ASR services.

Requirements

  1. WebSocket Connection:
    • Establish a WebSocket connection with the server.
  2. Audio Passing:
    • Pass audio files through the WebSocket connection.
  3. Transcription Reception:
    • Receive the transcription results from the server.
  4. Audio and Annotations:
    • Add audio files and their corresponding annotations in the test/audio_files folder.

Current Setup

Steps to Complete

  1. Add Audio Files and Annotations:
    • Place the necessary audio files and their annotations in the test/audio_files folder.
  2. Develop WebSocket Connection Test:
    • Write tests to establish and verify a WebSocket connection.
  3. Implement Audio Passing Test:
    • Develop tests to pass audio data through the WebSocket connection.
  4. Verify Transcription Reception:
    • Write tests to ensure the correct transcription results are received.
  5. Support Multiple ASR Services:
    • Update the test suite to support both Faster-Whisper and Bhashini ASR services.
    • Ensure the setup can dynamically switch between ASR services based on configuration or test parameters.

Additional Notes

Acceptance Criteria

suyashgautam commented 4 months ago

@SarveshAtawane Can you please take this up? Let me know if you face any issue