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

Whisper live transcription #491

Merged
merged 41 commits into from
Sep 13, 2023
Merged

Whisper live transcription #491

merged 41 commits into from
Sep 13, 2023

Conversation

rpurdel
Copy link
Contributor

@rpurdel rpurdel commented Aug 14, 2023

No description provided.

Copy link
Member

@bgrozev bgrozev left a comment

Choose a reason for hiding this comment

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

I added some comments for things that I noticed, but I didn't read thoroughly (I leave that to @damencho). Notably, I think there are some thread safety issues (unless I'm missing a reason why thread safety is not needed).

@damencho
Copy link
Member

damencho commented Sep 8, 2023

Have you ran the check style? It should complain for all those { that are not on new line.

@damencho
Copy link
Member

damencho commented Sep 8, 2023

How are you building the project? mvn install runs the checkstyle:

[INFO] --- maven-checkstyle-plugin:3.1.2:check (default) @ jigasi ---
[INFO] You have 0 Checkstyle violations.

@codecov
Copy link

codecov bot commented Sep 11, 2023

Codecov Report

Merging #491 (6a5467b) into master (156938a) will decrease coverage by 1.10%.
Report is 1 commits behind head on master.
The diff coverage is 1.11%.

❗ Current head 6a5467b differs from pull request most recent head 127ff7d. Consider uploading reports for the commit 127ff7d to get more accurate results

Impacted file tree graph

@@             Coverage Diff              @@
##             master     #491      +/-   ##
============================================
- Coverage     22.06%   20.96%   -1.10%     
- Complexity      285      288       +3     
============================================
  Files            68       74       +6     
  Lines          5827     6166     +339     
  Branches        788      827      +39     
============================================
+ Hits           1286     1293       +7     
- Misses         4318     4651     +333     
+ Partials        223      222       -1     
Files Changed Coverage
src/main/java/org/jitsi/jigasi/JvbConference.java 0.00%
.../main/java/org/jitsi/jigasi/SipGatewaySession.java 0.00%
...in/java/org/jitsi/jigasi/TranscriptionGateway.java 0.00%
.../org/jitsi/jigasi/TranscriptionGatewaySession.java 0.00%
.../jitsi/jigasi/health/SipHealthPeriodicChecker.java ø
...asi/transcription/AbstractTranscriptPublisher.java 0.00%
...si/transcription/AbstractTranscriptionService.java 0.00%
...transcription/GoogleCloudTranscriptionService.java ø
...ranscription/LibreTranslateTranslationService.java ø
...va/org/jitsi/jigasi/transcription/Participant.java ø
... and 10 more

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 b15bde3...127ff7d. Read the comment docs.

damencho
damencho previously approved these changes Sep 11, 2023
import org.osgi.framework.BundleContext;

import java.io.*;
import java.net.*;

Copy link
Member

Choose a reason for hiding this comment

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

Can you fix the imports.

}
else
{
logger.warn("+++++++++ Got HTTP status code " + responseCode);
Copy link
Member

Choose a reason for hiding this comment

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

Can you drop the debug logging.

{
logger.warn("Could not find '" + tenant + "' tenant in custom transcription service JSON property.");
return null;
logger.error("+++++++++++++ Could not retrieve transcriber from remote URL." + ex);
Copy link
Member

Choose a reason for hiding this comment

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

Can you drop the debug logging.

responseBody.append(inputLine);
}
inputStream.close();
logger.info("+++++++++ Received json " + responseBody);
Copy link
Member

Choose a reason for hiding this comment

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

debug logs

logger.info("+++++++++ Received json " + responseBody);
JSONObject obj = new JSONObject(responseBody.toString());
transcriberClass = obj.getString("transcriber");
logger.info("+++++++++ Using " + transcriberClass + " as the transcriber class.");
Copy link
Member

Choose a reason for hiding this comment

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

debug logs

@damencho damencho marked this pull request as ready for review September 13, 2023 13:12
@damencho damencho merged commit ff65c5e into jitsi:master Sep 13, 2023
0 of 2 checks passed
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.

3 participants