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

feat: Enable transcription based on MUC config form #1135

Merged
merged 1 commit into from
Feb 12, 2024

Conversation

bgrozev
Copy link
Member

@bgrozev bgrozev commented Feb 8, 2024

Read room_metadata from the MUC config form, and enable transcription if
it is requested.

Read room_metadata from the MUC config form, and enable transcription if
it is requested.
Copy link

codecov bot commented Feb 8, 2024

Codecov Report

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

Comparison is base (e20abda) 28.57% compared to head (260f860) 28.60%.

Additional details and impacted files

Impacted file tree graph

@@             Coverage Diff              @@
##             master    #1135      +/-   ##
============================================
+ Coverage     28.57%   28.60%   +0.03%     
- Complexity      463      466       +3     
============================================
  Files           128      129       +1     
  Lines          7742     7778      +36     
  Branches       1058     1061       +3     
============================================
+ Hits           2212     2225      +13     
- Misses         5263     5286      +23     
  Partials        267      267              
Files Coverage Δ
.../main/kotlin/org/jitsi/jicofo/xmpp/muc/ChatRoom.kt 0.00% <ø> (ø)
...n/kotlin/org/jitsi/jicofo/xmpp/muc/RoomMetadata.kt 100.00% <100.00%> (ø)
...tlin/org/jitsi/jicofo/xmpp/muc/ChatRoomListener.kt 0.00% <0.00%> (ø)
...tsi/jicofo/conference/JitsiMeetConferenceImpl.java 43.44% <0.00%> (-0.06%) ⬇️
...va/org/jitsi/jicofo/jigasi/TranscriberManager.java 19.23% <0.00%> (-1.90%) ⬇️
...n/kotlin/org/jitsi/jicofo/xmpp/muc/ChatRoomImpl.kt 0.00% <0.00%> (ø)

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 e20abda...260f860. Read the comment docs.

{
if (jigasiDetector == null)
{
logger.warn("Transcription requested, but jigasiDetector is not configured.");
Copy link
Member

Choose a reason for hiding this comment

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

Note for the future: it would be useful to somehow propagate this all the way to the client.

Copy link
Member Author

Choose a reason for hiding this comment

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

Agreed

@Override
public void transcriptionRequestedChanged(boolean transcriptionRequested)
{
if (transcriptionRequested)
Copy link
Member

Choose a reason for hiding this comment

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

Shouldn't this check for the active flag too? Note that right now there will be 2 ways to trigger this and both will happen roughly at once:

  • presence
  • room metadata

Copy link
Member Author

Choose a reason for hiding this comment

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

That's why the tasks are put on a single threaded executor. I can check the flag here, but I'll have to re-check it in the other thread too.

Copy link
Member

Choose a reason for hiding this comment

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

👍 I'm not familiar with the code so I thought I'd ask. SGTM!

Copy link
Member Author

Choose a reason for hiding this comment

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

It's a good question

@bgrozev bgrozev merged commit 7ae1013 into jitsi:master Feb 12, 2024
4 of 5 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.

2 participants