Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Transcribing backend flag #519

Merged
merged 5 commits into from
Feb 16, 2024
Merged

Transcribing backend flag #519

merged 5 commits into from
Feb 16, 2024

Conversation

damencho
Copy link
Member

No description provided.

When backend enabled, even if no one is listening for transcriptions we keep going.
Copy link

codecov bot commented Feb 14, 2024

Codecov Report

Attention: 70 lines in your changes are missing coverage. Please review.

Comparison is base (86273ae) 20.86% compared to head (dac915a) 20.85%.
Report is 6 commits behind head on master.

❗ Current head dac915a differs from pull request most recent head f0fe2ca. Consider uploading reports for the commit f0fe2ca to get more accurate results

Additional details and impacted files

Impacted file tree graph

@@             Coverage Diff              @@
##             master     #519      +/-   ##
============================================
- Coverage     20.86%   20.85%   -0.02%     
- Complexity      289      291       +2     
============================================
  Files            74       74              
  Lines          6222     6278      +56     
  Branches        833      837       +4     
============================================
+ Hits           1298     1309      +11     
- Misses         4699     4749      +50     
+ Partials        225      220       -5     
Files Coverage Δ
...rc/main/java/org/jitsi/jigasi/AudioModeration.java 14.01% <0.00%> (+0.10%) ⬆️
...va/org/jitsi/jigasi/transcription/Transcriber.java 0.00% <0.00%> (ø)
.../org/jitsi/jigasi/TranscriptionGatewaySession.java 0.00% <0.00%> (ø)
src/main/java/org/jitsi/jigasi/JvbConference.java 40.64% <9.83%> (-1.67%) ⬇️

... and 3 files with indirect coverage changes


Continue to review full report in Codecov by Sentry.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 411d7ae...f0fe2ca. Read the comment docs.

String avModerationAddress = avIdentity.getName();
this.getAudioModeration().setAvModerationAddress(avModerationAddress);

logger.info(String.format("%s Discovered %s for %oms.",
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Do we really care about this message only for avModarationAddress? I suggest either remove it or move it out of the "if" to be printed right after the discoverInfo call

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'll remove that and move the print after, I just kept it when moving the stuff.

// we process room metadata messages only when we are transcribing
if (roomMetadataIdentity != null && this.gatewaySession instanceof TranscriptionGatewaySession)
{
if (roomMetadataListener != null)
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Any reason not to make the field final and always initialize it? You can remove these 5 lines of code and not worry about this executing after a re-connect for example

private void maybeStopTranscription()
{
if (transcriber.isTranscribing()
&& !(transcriber.isAnyParticipantRequestingTranscription()
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

nit: suggest to extract a isTranscriptionRequested() method

@damencho damencho merged commit d83c921 into master Feb 16, 2024
0 of 2 checks passed
@damencho damencho deleted the transcribing-backend branch February 16, 2024 19:11
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants