Closed ItsSimko closed 1 hour ago
This PR enhances the real-time audio processing functionality by improving the audio chunk handling, adding user feedback during processing, and adjusting UI elements. The main changes focus on ensuring no audio data is lost during recording and providing better visual feedback to users.
sequenceDiagram
actor User
participant Client as FreeScribe Client
participant Stream as Audio Stream
participant Queue as Audio Queue
participant Popup as Processing Popup
User->>Client: Start Recording
Client->>Stream: Open Stream
loop Recording
Stream->>Client: Audio Data
Client->>Queue: Add to Queue if not silent
end
User->>Client: Stop Recording
Client->>Queue: Send remaining audio chunks
Client->>Popup: Show Processing Popup
loop Processing
Queue->>Client: Process Audio
end
Popup-->>Client: Close Popup
Client->>Stream: Close Stream
Client->>User: Recording Complete
Change | Details | Files |
---|---|---|
Improved real-time audio processing logic |
|
src/FreeScribe.client/client.py |
Added processing feedback popup |
|
src/FreeScribe.client/client.py |
Adjusted UI layout and settings |
|
src/FreeScribe.client/UI/Widgets/AudioMeter.py src/FreeScribe.client/UI/SettingsWindow.py src/FreeScribe.client/client.py |
Hey @ItsSimko, here is an example of how you can ask me to improve this pull request:
@sweep Add unit tests for the `record_audio` function to verify the new audio chunk processing logic, specifically testing:
- Recording duration calculation
- Silent duration tracking
- Proper chunking of audio data when minimum duration and silence thresholds are met
- Handling of remaining audio chunks when recording stops
:book: For more information on how to use Sweep, please read our documentation.
Hey @ItsSimko, here is an example of how you can ask me to improve this pull request:
@sweep Add unit tests for the audio chunk processing logic in `record_audio()` to verify that remaining audio chunks are properly sent to the queue when recording stops.
:book: For more information on how to use Sweep, please read our documentation.
@sourcery-ai review