@qvac/transcription-whispercpp 0.6.1 → 0.6.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +1 -1
- package/prebuilds/android-arm64/qvac__transcription-whispercpp.bare +0 -0
- package/prebuilds/darwin-arm64/qvac__transcription-whispercpp.bare +0 -0
- package/prebuilds/darwin-arm64/qvac__transcription-whispercpp.bare.exports +1 -1
- package/prebuilds/darwin-x64/qvac__transcription-whispercpp.bare +0 -0
- package/prebuilds/darwin-x64/qvac__transcription-whispercpp.bare.exports +10 -4
- package/prebuilds/ios-arm64/qvac__transcription-whispercpp.bare +0 -0
- package/prebuilds/ios-arm64/qvac__transcription-whispercpp.bare.exports +1 -1
- package/prebuilds/ios-arm64-simulator/qvac__transcription-whispercpp.bare +0 -0
- package/prebuilds/ios-arm64-simulator/qvac__transcription-whispercpp.bare.exports +1 -1
- package/prebuilds/ios-x64-simulator/qvac__transcription-whispercpp.bare +0 -0
- package/prebuilds/ios-x64-simulator/qvac__transcription-whispercpp.bare.exports +10 -4
- package/prebuilds/linux-arm64/qvac__transcription-whispercpp.bare +0 -0
- package/prebuilds/linux-x64/qvac__transcription-whispercpp.bare +0 -0
- package/prebuilds/win32-x64/qvac__transcription-whispercpp.bare +0 -0
- package/prebuilds/win32-x64/qvac__transcription-whispercpp.bare.exports +0 -0
- package/whisper.js +16 -0
package/package.json
CHANGED
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
@@ -7,7 +7,7 @@
|
|
|
7
7
|
],
|
|
8
8
|
"current_versions": [
|
|
9
9
|
{
|
|
10
|
-
"version": "0.6.
|
|
10
|
+
"version": "0.6.2"
|
|
11
11
|
}
|
|
12
12
|
],
|
|
13
13
|
"exported_symbols": [
|
|
@@ -58,6 +58,7 @@
|
|
|
58
58
|
"__ZTSNSt3__120__shared_ptr_emplaceIN32qvac_lib_inference_addon_whisper25JsTranscriptOutputHandlerENS_9allocatorIS2_EEEE",
|
|
59
59
|
"__ZTSN28qvac_lib_inference_addon_cpp16OutputCallBackJsE",
|
|
60
60
|
"__ZTINSt3__111__end_stateIcEE",
|
|
61
|
+
"__ZTSNSt3__110__function6__funcIZN32qvac_lib_inference_addon_whisper6runJobEP8js_env_sP18js_callback_info_sEUlRKNS2_10TranscriptEE_NS_9allocatorISA_EEFvS9_EEE",
|
|
61
62
|
"__ZTIN28qvac_lib_inference_addon_cpp6Output5ErrorE",
|
|
62
63
|
"__ZTSNSt3__120__shared_ptr_emplaceIN28qvac_lib_inference_addon_cpp6logger8JsLogger5StateENS_9allocatorIS4_EEEE",
|
|
63
64
|
"__ZTIN32qvac_lib_inference_addon_whisper10TranscriptE",
|
|
@@ -142,6 +143,7 @@
|
|
|
142
143
|
"__ZTSNSt3__111__end_stateIcEE",
|
|
143
144
|
"__ZTSN8js_blobs15FinalizedStreamIcEE",
|
|
144
145
|
"__ZTSNSt3__120__shared_ptr_emplaceIN28qvac_lib_inference_addon_cpp9out_handl21JsLogMsgOutputHandlerENS_9allocatorIS3_EEEE",
|
|
146
|
+
"__ZTSZN32qvac_lib_inference_addon_whisper6runJobEP8js_env_sP18js_callback_info_sEUlRKNS_10TranscriptEE_",
|
|
145
147
|
"__ZTINSt3__110__function6__funcIZN32qvac_lib_inference_addon_whisper30JsTranscriptArrayOutputHandlerC1EvEUlRKNS_6vectorINS2_10TranscriptENS_9allocatorIS5_EEEEE_NS6_ISB_EEFP10js_value_sSA_EEE",
|
|
146
148
|
"__ZTIN28qvac_lib_inference_addon_cpp5model12IModelCancelE",
|
|
147
149
|
"__ZTSN28qvac_lib_inference_addon_cpp9out_handl17BaseOutputHandlerIP10js_value_sN32qvac_lib_inference_addon_whisper10TranscriptEEE",
|
|
@@ -155,6 +157,8 @@
|
|
|
155
157
|
"__ZTIN28qvac_lib_inference_addon_cpp9out_handl17BaseOutputHandlerIP10js_value_sNS_6Output6LogMsgEEE",
|
|
156
158
|
"__ZTSNSt3__111__match_anyIcEE",
|
|
157
159
|
"__ZTINSt3__121__empty_non_own_stateIcEE",
|
|
160
|
+
"__ZTSNSt3__110__function6__baseIFvRKN32qvac_lib_inference_addon_whisper10TranscriptEEEE",
|
|
161
|
+
"__ZTIZN32qvac_lib_inference_addon_whisper6runJobEP8js_env_sP18js_callback_info_sEUlRKNS_10TranscriptEE_",
|
|
158
162
|
"__ZTSNSt3__120__shared_ptr_pointerIPNS_13__empty_stateIcEENS_10shared_ptrIS2_E27__shared_ptr_default_deleteIS2_S2_EENS_9allocatorIS2_EEEE",
|
|
159
163
|
"__ZN32qvac_lib_inference_addon_whisper19g_streamingSessionsE",
|
|
160
164
|
"__ZTSN4ggml3cpu6repack13tensor_traitsI10block_q8_0Lx8ELx4EL9ggml_type8EEE",
|
|
@@ -268,11 +272,13 @@
|
|
|
268
272
|
"__ZTSNSt3__110__function6__baseIFP10js_value_sRKNS_6vectorINS_4pairINS_12basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEEENS_7variantIJdxEEEEENS9_ISE_EEEEEEE",
|
|
269
273
|
"__ZTSN28qvac_lib_inference_addon_cpp9out_handl19JsBaseOutputHandlerINSt3__16vectorIN32qvac_lib_inference_addon_whisper10TranscriptENS2_9allocatorIS5_EEEEEE",
|
|
270
274
|
"__ZTSNSt3__16vectorINS_4pairINS_12basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEEENS_7variantIJdxEEEEENS5_ISA_EEEE",
|
|
275
|
+
"__ZTINSt3__110__function6__funcIZN32qvac_lib_inference_addon_whisper6runJobEP8js_env_sP18js_callback_info_sEUlRKNS2_10TranscriptEE_NS_9allocatorISA_EEFvS9_EEE",
|
|
271
276
|
"__ZTIN28qvac_lib_inference_addon_cpp9out_handl27JsRuntimeStatsOutputHandlerE",
|
|
272
277
|
"__ZTSN4ggml3cpu6repack18tensor_traits_baseE",
|
|
273
278
|
"__ZTIN28qvac_lib_inference_addon_cpp9out_handl22OutputHandlerInterfaceIP10js_value_sEE",
|
|
274
279
|
"__ZTINSt3__120__match_char_collateIcNS_12regex_traitsIcEEEE",
|
|
275
280
|
"__ZTSN28qvac_lib_inference_addon_cpp2js16UniqueRefDeleterE",
|
|
281
|
+
"__ZTINSt3__110__function6__baseIFvRKN32qvac_lib_inference_addon_whisper10TranscriptEEEE",
|
|
276
282
|
"__ZTIN28qvac_lib_inference_addon_cpp16OutputCallBackJsE",
|
|
277
283
|
"__ZTIN4ggml3cpu6repack13tensor_traitsI10block_q8_0Lx4ELx4EL9ggml_type8EEE",
|
|
278
284
|
"__ZTINSt3__110__function6__baseIFP11ggml_cgraphvEEE",
|
|
@@ -912,16 +918,16 @@
|
|
|
912
918
|
"_ggml_metal_pipeline_init",
|
|
913
919
|
"__ZN4ggml3cpu6repack4gemvI10block_q6_KLx4ELx8EL9ggml_type15EEEviPfmPKvS7_ii",
|
|
914
920
|
"__ZN4ggml3cpu6repack4gemvI12block_iq4_nlLx4ELx4EL9ggml_type8EEEviPfmPKvS7_ii",
|
|
915
|
-
"_ggml_new_tensor_1d",
|
|
916
921
|
"_ggml_op_name",
|
|
922
|
+
"_ggml_vec_dot_iq2_s_q8_K",
|
|
917
923
|
"_dequantize_row_iq3_s",
|
|
918
924
|
"__ZN4ggml3cpu6repack4gemmI10block_q2_KLx8ELx8EL9ggml_type15EEEviPfmPKvS7_ii",
|
|
919
925
|
"_ggml_add_cast",
|
|
920
926
|
"_ggml_metal_graph_compute",
|
|
921
927
|
"_ggml_backend_buffer_get_alignment",
|
|
922
|
-
"
|
|
928
|
+
"_ggml_new_tensor_1d",
|
|
923
929
|
"_ggml_sqr",
|
|
924
|
-
"
|
|
930
|
+
"_whisper_vad_free_segments",
|
|
925
931
|
"_ggml_compute_forward_timestep_embedding",
|
|
926
932
|
"_ggml_metal_cv_set_int16",
|
|
927
933
|
"_ggml_set_i32_nd",
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
@@ -7,7 +7,7 @@
|
|
|
7
7
|
],
|
|
8
8
|
"current_versions": [
|
|
9
9
|
{
|
|
10
|
-
"version": "0.6.
|
|
10
|
+
"version": "0.6.2"
|
|
11
11
|
}
|
|
12
12
|
],
|
|
13
13
|
"exported_symbols": [
|
|
@@ -59,6 +59,7 @@
|
|
|
59
59
|
"__ZTSNSt3__120__shared_ptr_emplaceIN32qvac_lib_inference_addon_whisper25JsTranscriptOutputHandlerENS_9allocatorIS2_EEEE",
|
|
60
60
|
"__ZTSN28qvac_lib_inference_addon_cpp16OutputCallBackJsE",
|
|
61
61
|
"__ZTINSt3__111__end_stateIcEE",
|
|
62
|
+
"__ZTSNSt3__110__function6__funcIZN32qvac_lib_inference_addon_whisper6runJobEP8js_env_sP18js_callback_info_sEUlRKNS2_10TranscriptEE_NS_9allocatorISA_EEFvS9_EEE",
|
|
62
63
|
"__ZTIN28qvac_lib_inference_addon_cpp6Output5ErrorE",
|
|
63
64
|
"__ZTSNSt3__120__shared_ptr_emplaceIN28qvac_lib_inference_addon_cpp6logger8JsLogger5StateENS_9allocatorIS4_EEEE",
|
|
64
65
|
"__ZTIN32qvac_lib_inference_addon_whisper10TranscriptE",
|
|
@@ -145,6 +146,7 @@
|
|
|
145
146
|
"__ZTSNSt3__111__end_stateIcEE",
|
|
146
147
|
"__ZTSN8js_blobs15FinalizedStreamIcEE",
|
|
147
148
|
"__ZTSNSt3__120__shared_ptr_emplaceIN28qvac_lib_inference_addon_cpp9out_handl21JsLogMsgOutputHandlerENS_9allocatorIS3_EEEE",
|
|
149
|
+
"__ZTSZN32qvac_lib_inference_addon_whisper6runJobEP8js_env_sP18js_callback_info_sEUlRKNS_10TranscriptEE_",
|
|
148
150
|
"__ZTINSt3__110__function6__funcIZN32qvac_lib_inference_addon_whisper30JsTranscriptArrayOutputHandlerC1EvEUlRKNS_6vectorINS2_10TranscriptENS_9allocatorIS5_EEEEE_NS6_ISB_EEFP10js_value_sSA_EEE",
|
|
149
151
|
"__ZTIN28qvac_lib_inference_addon_cpp5model12IModelCancelE",
|
|
150
152
|
"__ZTSN28qvac_lib_inference_addon_cpp9out_handl17BaseOutputHandlerIP10js_value_sN32qvac_lib_inference_addon_whisper10TranscriptEEE",
|
|
@@ -158,6 +160,8 @@
|
|
|
158
160
|
"__ZTIN28qvac_lib_inference_addon_cpp9out_handl17BaseOutputHandlerIP10js_value_sNS_6Output6LogMsgEEE",
|
|
159
161
|
"__ZTSNSt3__111__match_anyIcEE",
|
|
160
162
|
"__ZTINSt3__121__empty_non_own_stateIcEE",
|
|
163
|
+
"__ZTSNSt3__110__function6__baseIFvRKN32qvac_lib_inference_addon_whisper10TranscriptEEEE",
|
|
164
|
+
"__ZTIZN32qvac_lib_inference_addon_whisper6runJobEP8js_env_sP18js_callback_info_sEUlRKNS_10TranscriptEE_",
|
|
161
165
|
"__ZTSNSt3__120__shared_ptr_pointerIPNS_13__empty_stateIcEENS_10shared_ptrIS2_E27__shared_ptr_default_deleteIS2_S2_EENS_9allocatorIS2_EEEE",
|
|
162
166
|
"__ZN32qvac_lib_inference_addon_whisper19g_streamingSessionsE",
|
|
163
167
|
"__ZTSN4ggml3cpu6repack13tensor_traitsI10block_q8_0Lx8ELx4EL9ggml_type8EEE",
|
|
@@ -272,11 +276,13 @@
|
|
|
272
276
|
"__ZTSNSt3__110__function6__baseIFP10js_value_sRKNS_6vectorINS_4pairINS_12basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEEENS_7variantIJdxEEEEENS9_ISE_EEEEEEE",
|
|
273
277
|
"__ZTSN28qvac_lib_inference_addon_cpp9out_handl19JsBaseOutputHandlerINSt3__16vectorIN32qvac_lib_inference_addon_whisper10TranscriptENS2_9allocatorIS5_EEEEEE",
|
|
274
278
|
"__ZTSNSt3__16vectorINS_4pairINS_12basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEEENS_7variantIJdxEEEEENS5_ISA_EEEE",
|
|
279
|
+
"__ZTINSt3__110__function6__funcIZN32qvac_lib_inference_addon_whisper6runJobEP8js_env_sP18js_callback_info_sEUlRKNS2_10TranscriptEE_NS_9allocatorISA_EEFvS9_EEE",
|
|
275
280
|
"__ZTIN28qvac_lib_inference_addon_cpp9out_handl27JsRuntimeStatsOutputHandlerE",
|
|
276
281
|
"__ZTSN4ggml3cpu6repack18tensor_traits_baseE",
|
|
277
282
|
"__ZTIN28qvac_lib_inference_addon_cpp9out_handl22OutputHandlerInterfaceIP10js_value_sEE",
|
|
278
283
|
"__ZTINSt3__120__match_char_collateIcNS_12regex_traitsIcEEEE",
|
|
279
284
|
"__ZTSN28qvac_lib_inference_addon_cpp2js16UniqueRefDeleterE",
|
|
285
|
+
"__ZTINSt3__110__function6__baseIFvRKN32qvac_lib_inference_addon_whisper10TranscriptEEEE",
|
|
280
286
|
"__ZTIN28qvac_lib_inference_addon_cpp16OutputCallBackJsE",
|
|
281
287
|
"__ZTIN4ggml3cpu6repack13tensor_traitsI10block_q8_0Lx4ELx4EL9ggml_type8EEE",
|
|
282
288
|
"__ZTINSt3__110__function6__baseIFP11ggml_cgraphvEEE",
|
|
@@ -916,16 +922,16 @@
|
|
|
916
922
|
"_ggml_metal_pipeline_init",
|
|
917
923
|
"__ZN4ggml3cpu6repack4gemvI10block_q6_KLx4ELx8EL9ggml_type15EEEviPfmPKvS7_ii",
|
|
918
924
|
"__ZN4ggml3cpu6repack4gemvI12block_iq4_nlLx4ELx4EL9ggml_type8EEEviPfmPKvS7_ii",
|
|
919
|
-
"_ggml_new_tensor_1d",
|
|
920
925
|
"_ggml_op_name",
|
|
926
|
+
"_ggml_vec_dot_iq2_s_q8_K",
|
|
921
927
|
"_dequantize_row_iq3_s",
|
|
922
928
|
"__ZN4ggml3cpu6repack4gemmI10block_q2_KLx8ELx8EL9ggml_type15EEEviPfmPKvS7_ii",
|
|
923
929
|
"_ggml_add_cast",
|
|
924
930
|
"_ggml_metal_graph_compute",
|
|
925
931
|
"_ggml_backend_buffer_get_alignment",
|
|
926
|
-
"
|
|
932
|
+
"_ggml_new_tensor_1d",
|
|
927
933
|
"_ggml_sqr",
|
|
928
|
-
"
|
|
934
|
+
"_whisper_vad_free_segments",
|
|
929
935
|
"_ggml_compute_forward_timestep_embedding",
|
|
930
936
|
"_ggml_metal_cv_set_int16",
|
|
931
937
|
"_ggml_set_i32_nd",
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
package/whisper.js
CHANGED
|
@@ -90,6 +90,22 @@ class WhisperInterface {
|
|
|
90
90
|
|
|
91
91
|
if (mappedEvent === 'Output') {
|
|
92
92
|
this._setState(state.PROCESSING)
|
|
93
|
+
if (this._outputCb != null) {
|
|
94
|
+
const isTranscriptArray = Array.isArray(data) && data.length > 0 &&
|
|
95
|
+
typeof data[0]?.text === 'string'
|
|
96
|
+
const isSingleTranscript = !Array.isArray(data) &&
|
|
97
|
+
data && typeof data === 'object' && typeof data.text === 'string'
|
|
98
|
+
if (isTranscriptArray) {
|
|
99
|
+
for (const segment of data) {
|
|
100
|
+
this._outputCb(addon, 'Output', jobId, [segment], null)
|
|
101
|
+
}
|
|
102
|
+
} else if (isSingleTranscript) {
|
|
103
|
+
this._outputCb(addon, 'Output', jobId, [data], null)
|
|
104
|
+
} else {
|
|
105
|
+
this._outputCb(addon, 'Output', jobId, data, null)
|
|
106
|
+
}
|
|
107
|
+
}
|
|
108
|
+
return
|
|
93
109
|
}
|
|
94
110
|
|
|
95
111
|
if (this._outputCb != null) {
|