-
Notifications
You must be signed in to change notification settings - Fork 298
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
Conversation
There was a problem hiding this 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).
src/main/java/org/jitsi/jigasi/transcription/AbstractTranscriptionService.java
Show resolved
Hide resolved
src/main/java/org/jitsi/jigasi/health/SipHealthPeriodicChecker.java
Outdated
Show resolved
Hide resolved
src/main/java/org/jitsi/jigasi/transcription/TranscribingAudioMixerMediaDevice.java
Outdated
Show resolved
Hide resolved
src/main/java/org/jitsi/jigasi/transcription/TranscribingAudioMixerMediaDevice.java
Outdated
Show resolved
Hide resolved
src/main/java/org/jitsi/jigasi/transcription/WhisperWebsocket.java
Outdated
Show resolved
Hide resolved
src/main/java/org/jitsi/jigasi/transcription/WhisperWebsocket.java
Outdated
Show resolved
Hide resolved
src/main/java/org/jitsi/jigasi/transcription/WhisperWebsocket.java
Outdated
Show resolved
Hide resolved
src/main/java/org/jitsi/jigasi/transcription/WhisperWebsocket.java
Outdated
Show resolved
Hide resolved
src/main/java/org/jitsi/jigasi/transcription/WhisperWebsocket.java
Outdated
Show resolved
Hide resolved
src/main/java/org/jitsi/jigasi/TranscriptionGatewaySession.java
Outdated
Show resolved
Hide resolved
src/main/java/org/jitsi/jigasi/transcription/WhisperTsAudioSilenceCaptureDevice.java
Outdated
Show resolved
Hide resolved
Have you ran the check style? It should complain for all those |
How are you building the project?
|
src/main/java/org/jitsi/jigasi/transcription/WhisperAudioSilenceCaptureDevice.java
Outdated
Show resolved
Hide resolved
src/main/java/org/jitsi/jigasi/transcription/WhisperAudioSilenceMediaDevice.java
Outdated
Show resolved
Hide resolved
src/main/java/org/jitsi/jigasi/transcription/WhisperConnectionPool.java
Outdated
Show resolved
Hide resolved
src/main/java/org/jitsi/jigasi/transcription/WhisperTranscriptionService.java
Outdated
Show resolved
Hide resolved
…e from debugName, remove unused prop
When connect slows down then the joined muc event is slowed down and the session-initiate (jicofo invite) arrives first and the chatRoom is null at that time.
8ab5bf3
to
6a5467b
Compare
Codecov Report
@@ 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 Continue to review full report in Codecov by Sentry.
|
import org.osgi.framework.BundleContext; | ||
|
||
import java.io.*; | ||
import java.net.*; | ||
|
There was a problem hiding this comment.
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); |
There was a problem hiding this comment.
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); |
There was a problem hiding this comment.
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); |
There was a problem hiding this comment.
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."); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
debug logs
No description provided.