@@ -129,6 +129,26 @@ public class Statistics
129
129
*/
130
130
public static final String TOTAL_TRANSCRIBER_G_MINUTES = "total_transcriber_g_minutes" ;
131
131
132
+ /**
133
+ * The total number of milliseconds submitted to Google API for transcription.
134
+ */
135
+ public static final String TOTAL_TRANSCRIBER_GGL_MILLIS = "total_transcriber_ggl_millis" ;
136
+
137
+ /**
138
+ * The total number of milliseconds submitted to Oracle API for transcription.
139
+ */
140
+ public static final String TOTAL_TRANSCRIBER_OCI_MILLIS = "total_transcriber_oci_millis" ;
141
+
142
+ /**
143
+ * The total number of milliseconds submitted to Skynet/Whisper for transcription.
144
+ */
145
+ public static final String TOTAL_TRANSCRIBER_WSP_MILLIS = "total_transcriber_wsp_millis" ;
146
+
147
+ /**
148
+ * The total number of milliseconds submitted to Vosk for transcription.
149
+ */
150
+ public static final String TOTAL_TRANSCRIBER_VSK_MILLIS = "total_transcriber_vsk_millis" ;
151
+
132
152
/**
133
153
* The total number of requests submitted to the Google Cloud Speech API.
134
154
*/
@@ -317,6 +337,34 @@ public class Statistics
317
337
TOTAL_TRANSCRIBER_G_REQUESTS ,
318
338
"Total number of transcriber requests." );
319
339
340
+ /**
341
+ * The total number of milliseconds submitted to Google API for transcription.
342
+ */
343
+ private static LongGaugeMetric totalTranscriberGoogleMillis = JigasiMetricsContainer .INSTANCE .registerLongGauge (
344
+ TOTAL_TRANSCRIBER_GGL_MILLIS ,
345
+ "Total number of milliseconds sent to Google's API." );
346
+
347
+ /**
348
+ * The total number of milliseconds submitted to Oracle Cloud API for transcription.
349
+ */
350
+ private static LongGaugeMetric totalTranscriberOracleMillis = JigasiMetricsContainer .INSTANCE .registerLongGauge (
351
+ TOTAL_TRANSCRIBER_OCI_MILLIS ,
352
+ "Total number of milliseconds sent to OCI API." );
353
+
354
+ /**
355
+ * The total number of milliseconds submitted to Skynet Whisper for transcription.
356
+ */
357
+ private static LongGaugeMetric totalTranscriberWhisperMillis = JigasiMetricsContainer .INSTANCE .registerLongGauge (
358
+ TOTAL_TRANSCRIBER_WSP_MILLIS ,
359
+ "Total number of milliseconds sent to Skynet Whisper." );
360
+
361
+ /**
362
+ * The total number of milliseconds submitted to Vosk for transcription.
363
+ */
364
+ private static LongGaugeMetric totalTranscriberVoskMillis = JigasiMetricsContainer .INSTANCE .registerLongGauge (
365
+ TOTAL_TRANSCRIBER_VSK_MILLIS ,
366
+ "Total number of milliseconds sent to Vosk." );
367
+
320
368
/**
321
369
* Cumulative number of seconds of all conferences.
322
370
*/
@@ -407,6 +455,10 @@ public static synchronized void sendJSON(
407
455
408
456
stats .put (TOTAL_TRANSCRIBER_G_REQUESTS , totalTrasnscriberRequests .get ());
409
457
stats .put (TOTAL_TRANSCRIBER_G_MINUTES , totalTranscriberMinutes .get ());
458
+ stats .put (TOTAL_TRANSCRIBER_GGL_MILLIS , totalTranscriberGoogleMillis .get ());
459
+ stats .put (TOTAL_TRANSCRIBER_OCI_MILLIS , totalTranscriberOracleMillis .get ());
460
+ stats .put (TOTAL_TRANSCRIBER_WSP_MILLIS , totalTranscriberWhisperMillis .get ());
461
+ stats .put (TOTAL_TRANSCRIBER_VSK_MILLIS , totalTranscriberVoskMillis .get ());
410
462
411
463
stats .put (TOTAL_TRANSCRIBER_STARTED , totalTrasnscriberStarted .get ());
412
464
stats .put (TOTAL_TRANSCRIBER_STOPPED , totalTrasnscriberStopped .get ());
@@ -636,6 +688,38 @@ public static void incrementTotalTranscriberMinutes(long value)
636
688
totalTranscriberMinutes .addAndGet (value );
637
689
}
638
690
691
+ /**
692
+ * Increment the value of total number of milliseconds sent to Google API for transcription.
693
+ */
694
+ public static void incrementTotalTranscriberGoogleMillis (long value )
695
+ {
696
+ totalTranscriberGoogleMillis .addAndGet (value );
697
+ }
698
+
699
+ /**
700
+ * Increment the value of total number of milliseconds sent to Oracle API for transcription.
701
+ */
702
+ public static void incrementTotalTranscriberOracleMillis (long value )
703
+ {
704
+ totalTranscriberOracleMillis .addAndGet (value );
705
+ }
706
+
707
+ /**
708
+ * Increment the value of total number of milliseconds sent to Skynet Whisper for transcription.
709
+ */
710
+ public static void incrementTotalTranscriberWhisperMillis (long value )
711
+ {
712
+ totalTranscriberWhisperMillis .addAndGet (value );
713
+ }
714
+
715
+ /**
716
+ * Increment the value of total number of milliseconds sent to Vosk for transcription.
717
+ */
718
+ public static void incrementTotalTranscriberVoskMillis (long value )
719
+ {
720
+ totalTranscriberVoskMillis .addAndGet (value );
721
+ }
722
+
639
723
/**
640
724
* Increment the value of total number of transcriber request.
641
725
*/
0 commit comments