react-native-nobodywho 2.5.0 → 3.0.0
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/generated/cpp/nobodywho.cpp +829 -315
- package/generated/cpp/nobodywho.hpp +99 -27
- package/generated/ts/nobodywho-ffi.ts +44 -27
- package/generated/ts/nobodywho.ts +547 -160
- package/package.json +1 -1
- package/src/encoder.ts +5 -0
- package/src/{stt.ts → speech_to_text.ts} +17 -9
- package/src/{tts.ts → text_to_speech.ts} +20 -20
- package/src/vad.ts +104 -0
- package/src/wrapper.ts +8 -5
|
@@ -127,6 +127,9 @@ protected:
|
|
|
127
127
|
jsi::Value cpp_uniffi_nobodywho_uniffi_fn_method_rustencoder_encode(
|
|
128
128
|
jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args,
|
|
129
129
|
size_t count);
|
|
130
|
+
jsi::Value cpp_uniffi_nobodywho_uniffi_fn_method_rustencoder_encode_batch(
|
|
131
|
+
jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args,
|
|
132
|
+
size_t count);
|
|
130
133
|
jsi::Value cpp_uniffi_nobodywho_uniffi_fn_clone_rustmodel(
|
|
131
134
|
jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args,
|
|
132
135
|
size_t count);
|
|
@@ -136,31 +139,51 @@ protected:
|
|
|
136
139
|
jsi::Value cpp_uniffi_nobodywho_uniffi_fn_method_rustmodel_max_ctx(
|
|
137
140
|
jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args,
|
|
138
141
|
size_t count);
|
|
139
|
-
jsi::Value
|
|
142
|
+
jsi::Value cpp_uniffi_nobodywho_uniffi_fn_clone_rustspeechtotext(
|
|
143
|
+
jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args,
|
|
144
|
+
size_t count);
|
|
145
|
+
jsi::Value cpp_uniffi_nobodywho_uniffi_fn_free_rustspeechtotext(
|
|
146
|
+
jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args,
|
|
147
|
+
size_t count);
|
|
148
|
+
jsi::Value cpp_uniffi_nobodywho_uniffi_fn_constructor_rustspeechtotext_new(
|
|
149
|
+
jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args,
|
|
150
|
+
size_t count);
|
|
151
|
+
jsi::Value
|
|
152
|
+
cpp_uniffi_nobodywho_uniffi_fn_method_rustspeechtotext_transcribe_file(
|
|
153
|
+
jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args,
|
|
154
|
+
size_t count);
|
|
155
|
+
jsi::Value
|
|
156
|
+
cpp_uniffi_nobodywho_uniffi_fn_method_rustspeechtotext_transcribe_pcm(
|
|
157
|
+
jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args,
|
|
158
|
+
size_t count);
|
|
159
|
+
jsi::Value cpp_uniffi_nobodywho_uniffi_fn_clone_rustspeechtotextstream(
|
|
140
160
|
jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args,
|
|
141
161
|
size_t count);
|
|
142
|
-
jsi::Value
|
|
162
|
+
jsi::Value cpp_uniffi_nobodywho_uniffi_fn_free_rustspeechtotextstream(
|
|
143
163
|
jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args,
|
|
144
164
|
size_t count);
|
|
145
|
-
jsi::Value
|
|
165
|
+
jsi::Value
|
|
166
|
+
cpp_uniffi_nobodywho_uniffi_fn_method_rustspeechtotextstream_completed(
|
|
146
167
|
jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args,
|
|
147
168
|
size_t count);
|
|
148
|
-
jsi::Value
|
|
169
|
+
jsi::Value
|
|
170
|
+
cpp_uniffi_nobodywho_uniffi_fn_method_rustspeechtotextstream_next_token(
|
|
149
171
|
jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args,
|
|
150
172
|
size_t count);
|
|
151
|
-
jsi::Value
|
|
173
|
+
jsi::Value cpp_uniffi_nobodywho_uniffi_fn_clone_rusttexttospeech(
|
|
152
174
|
jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args,
|
|
153
175
|
size_t count);
|
|
154
|
-
jsi::Value
|
|
176
|
+
jsi::Value cpp_uniffi_nobodywho_uniffi_fn_free_rusttexttospeech(
|
|
155
177
|
jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args,
|
|
156
178
|
size_t count);
|
|
157
|
-
jsi::Value
|
|
179
|
+
jsi::Value cpp_uniffi_nobodywho_uniffi_fn_constructor_rusttexttospeech_new(
|
|
158
180
|
jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args,
|
|
159
181
|
size_t count);
|
|
160
|
-
jsi::Value
|
|
182
|
+
jsi::Value cpp_uniffi_nobodywho_uniffi_fn_method_rusttexttospeech_synthesize(
|
|
161
183
|
jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args,
|
|
162
184
|
size_t count);
|
|
163
|
-
jsi::Value
|
|
185
|
+
jsi::Value
|
|
186
|
+
cpp_uniffi_nobodywho_uniffi_fn_method_rusttexttospeech_synthesize_async(
|
|
164
187
|
jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args,
|
|
165
188
|
size_t count);
|
|
166
189
|
jsi::Value cpp_uniffi_nobodywho_uniffi_fn_clone_rusttokenstream(
|
|
@@ -197,19 +220,26 @@ protected:
|
|
|
197
220
|
cpp_uniffi_nobodywho_uniffi_fn_method_rusttool_resolve_pending_call(
|
|
198
221
|
jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args,
|
|
199
222
|
size_t count);
|
|
200
|
-
jsi::Value
|
|
223
|
+
jsi::Value cpp_uniffi_nobodywho_uniffi_fn_clone_rustvoiceactivitydetection(
|
|
201
224
|
jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args,
|
|
202
225
|
size_t count);
|
|
203
|
-
jsi::Value
|
|
226
|
+
jsi::Value cpp_uniffi_nobodywho_uniffi_fn_free_rustvoiceactivitydetection(
|
|
204
227
|
jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args,
|
|
205
228
|
size_t count);
|
|
206
|
-
jsi::Value
|
|
229
|
+
jsi::Value
|
|
230
|
+
cpp_uniffi_nobodywho_uniffi_fn_constructor_rustvoiceactivitydetection_new(
|
|
231
|
+
jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args,
|
|
232
|
+
size_t count);
|
|
233
|
+
jsi::Value
|
|
234
|
+
cpp_uniffi_nobodywho_uniffi_fn_method_rustvoiceactivitydetection_finish(
|
|
207
235
|
jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args,
|
|
208
236
|
size_t count);
|
|
209
|
-
jsi::Value
|
|
237
|
+
jsi::Value
|
|
238
|
+
cpp_uniffi_nobodywho_uniffi_fn_method_rustvoiceactivitydetection_push(
|
|
210
239
|
jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args,
|
|
211
240
|
size_t count);
|
|
212
|
-
jsi::Value
|
|
241
|
+
jsi::Value
|
|
242
|
+
cpp_uniffi_nobodywho_uniffi_fn_method_rustvoiceactivitydetection_segment(
|
|
213
243
|
jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args,
|
|
214
244
|
size_t count);
|
|
215
245
|
jsi::Value cpp_uniffi_nobodywho_uniffi_fn_clone_samplerbuilder(
|
|
@@ -295,7 +325,13 @@ protected:
|
|
|
295
325
|
jsi::Value cpp_uniffi_nobodywho_uniffi_fn_func_load_model(
|
|
296
326
|
jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args,
|
|
297
327
|
size_t count);
|
|
298
|
-
jsi::Value
|
|
328
|
+
jsi::Value cpp_uniffi_nobodywho_uniffi_fn_func_load_speech_to_text(
|
|
329
|
+
jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args,
|
|
330
|
+
size_t count);
|
|
331
|
+
jsi::Value cpp_uniffi_nobodywho_uniffi_fn_func_load_text_to_speech(
|
|
332
|
+
jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args,
|
|
333
|
+
size_t count);
|
|
334
|
+
jsi::Value cpp_uniffi_nobodywho_uniffi_fn_func_load_voice_activity_detection(
|
|
299
335
|
jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args,
|
|
300
336
|
size_t count);
|
|
301
337
|
jsi::Value
|
|
@@ -490,7 +526,14 @@ protected:
|
|
|
490
526
|
jsi::Value cpp_uniffi_nobodywho_uniffi_checksum_func_load_model(
|
|
491
527
|
jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args,
|
|
492
528
|
size_t count);
|
|
493
|
-
jsi::Value
|
|
529
|
+
jsi::Value cpp_uniffi_nobodywho_uniffi_checksum_func_load_speech_to_text(
|
|
530
|
+
jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args,
|
|
531
|
+
size_t count);
|
|
532
|
+
jsi::Value cpp_uniffi_nobodywho_uniffi_checksum_func_load_text_to_speech(
|
|
533
|
+
jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args,
|
|
534
|
+
size_t count);
|
|
535
|
+
jsi::Value
|
|
536
|
+
cpp_uniffi_nobodywho_uniffi_checksum_func_load_voice_activity_detection(
|
|
494
537
|
jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args,
|
|
495
538
|
size_t count);
|
|
496
539
|
jsi::Value
|
|
@@ -610,22 +653,35 @@ protected:
|
|
|
610
653
|
jsi::Value cpp_uniffi_nobodywho_uniffi_checksum_method_rustencoder_encode(
|
|
611
654
|
jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args,
|
|
612
655
|
size_t count);
|
|
656
|
+
jsi::Value
|
|
657
|
+
cpp_uniffi_nobodywho_uniffi_checksum_method_rustencoder_encode_batch(
|
|
658
|
+
jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args,
|
|
659
|
+
size_t count);
|
|
613
660
|
jsi::Value cpp_uniffi_nobodywho_uniffi_checksum_method_rustmodel_max_ctx(
|
|
614
661
|
jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args,
|
|
615
662
|
size_t count);
|
|
616
663
|
jsi::Value
|
|
617
|
-
|
|
664
|
+
cpp_uniffi_nobodywho_uniffi_checksum_method_rustspeechtotext_transcribe_file(
|
|
618
665
|
jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args,
|
|
619
666
|
size_t count);
|
|
620
|
-
jsi::Value
|
|
667
|
+
jsi::Value
|
|
668
|
+
cpp_uniffi_nobodywho_uniffi_checksum_method_rustspeechtotext_transcribe_pcm(
|
|
669
|
+
jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args,
|
|
670
|
+
size_t count);
|
|
671
|
+
jsi::Value
|
|
672
|
+
cpp_uniffi_nobodywho_uniffi_checksum_method_rustspeechtotextstream_completed(
|
|
673
|
+
jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args,
|
|
674
|
+
size_t count);
|
|
675
|
+
jsi::Value
|
|
676
|
+
cpp_uniffi_nobodywho_uniffi_checksum_method_rustspeechtotextstream_next_token(
|
|
621
677
|
jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args,
|
|
622
678
|
size_t count);
|
|
623
679
|
jsi::Value
|
|
624
|
-
|
|
680
|
+
cpp_uniffi_nobodywho_uniffi_checksum_method_rusttexttospeech_synthesize(
|
|
625
681
|
jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args,
|
|
626
682
|
size_t count);
|
|
627
683
|
jsi::Value
|
|
628
|
-
|
|
684
|
+
cpp_uniffi_nobodywho_uniffi_checksum_method_rusttexttospeech_synthesize_async(
|
|
629
685
|
jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args,
|
|
630
686
|
size_t count);
|
|
631
687
|
jsi::Value
|
|
@@ -648,11 +704,16 @@ protected:
|
|
|
648
704
|
cpp_uniffi_nobodywho_uniffi_checksum_method_rusttool_resolve_pending_call(
|
|
649
705
|
jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args,
|
|
650
706
|
size_t count);
|
|
651
|
-
jsi::Value
|
|
707
|
+
jsi::Value
|
|
708
|
+
cpp_uniffi_nobodywho_uniffi_checksum_method_rustvoiceactivitydetection_finish(
|
|
709
|
+
jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args,
|
|
710
|
+
size_t count);
|
|
711
|
+
jsi::Value
|
|
712
|
+
cpp_uniffi_nobodywho_uniffi_checksum_method_rustvoiceactivitydetection_push(
|
|
652
713
|
jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args,
|
|
653
714
|
size_t count);
|
|
654
715
|
jsi::Value
|
|
655
|
-
|
|
716
|
+
cpp_uniffi_nobodywho_uniffi_checksum_method_rustvoiceactivitydetection_segment(
|
|
656
717
|
jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args,
|
|
657
718
|
size_t count);
|
|
658
719
|
jsi::Value cpp_uniffi_nobodywho_uniffi_checksum_method_samplerbuilder_dist(
|
|
@@ -715,7 +776,12 @@ protected:
|
|
|
715
776
|
jsi::Value cpp_uniffi_nobodywho_uniffi_checksum_constructor_rustencoder_new(
|
|
716
777
|
jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args,
|
|
717
778
|
size_t count);
|
|
718
|
-
jsi::Value
|
|
779
|
+
jsi::Value
|
|
780
|
+
cpp_uniffi_nobodywho_uniffi_checksum_constructor_rustspeechtotext_new(
|
|
781
|
+
jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args,
|
|
782
|
+
size_t count);
|
|
783
|
+
jsi::Value
|
|
784
|
+
cpp_uniffi_nobodywho_uniffi_checksum_constructor_rusttexttospeech_new(
|
|
719
785
|
jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args,
|
|
720
786
|
size_t count);
|
|
721
787
|
jsi::Value cpp_uniffi_nobodywho_uniffi_checksum_constructor_rusttool_new(
|
|
@@ -725,7 +791,8 @@ protected:
|
|
|
725
791
|
cpp_uniffi_nobodywho_uniffi_checksum_constructor_rusttool_new_async(
|
|
726
792
|
jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args,
|
|
727
793
|
size_t count);
|
|
728
|
-
jsi::Value
|
|
794
|
+
jsi::Value
|
|
795
|
+
cpp_uniffi_nobodywho_uniffi_checksum_constructor_rustvoiceactivitydetection_new(
|
|
729
796
|
jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args,
|
|
730
797
|
size_t count);
|
|
731
798
|
jsi::Value
|
|
@@ -758,10 +825,14 @@ protected:
|
|
|
758
825
|
jsi::Value cpp_uniffi_internal_fn_method_rustmodel_ffi__bless_pointer(
|
|
759
826
|
jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args,
|
|
760
827
|
size_t count);
|
|
761
|
-
jsi::Value
|
|
828
|
+
jsi::Value cpp_uniffi_internal_fn_method_rustspeechtotext_ffi__bless_pointer(
|
|
829
|
+
jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args,
|
|
830
|
+
size_t count);
|
|
831
|
+
jsi::Value
|
|
832
|
+
cpp_uniffi_internal_fn_method_rustspeechtotextstream_ffi__bless_pointer(
|
|
762
833
|
jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args,
|
|
763
834
|
size_t count);
|
|
764
|
-
jsi::Value
|
|
835
|
+
jsi::Value cpp_uniffi_internal_fn_method_rusttexttospeech_ffi__bless_pointer(
|
|
765
836
|
jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args,
|
|
766
837
|
size_t count);
|
|
767
838
|
jsi::Value cpp_uniffi_internal_fn_method_rusttokenstream_ffi__bless_pointer(
|
|
@@ -770,7 +841,8 @@ protected:
|
|
|
770
841
|
jsi::Value cpp_uniffi_internal_fn_method_rusttool_ffi__bless_pointer(
|
|
771
842
|
jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args,
|
|
772
843
|
size_t count);
|
|
773
|
-
jsi::Value
|
|
844
|
+
jsi::Value
|
|
845
|
+
cpp_uniffi_internal_fn_method_rustvoiceactivitydetection_ffi__bless_pointer(
|
|
774
846
|
jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args,
|
|
775
847
|
size_t count);
|
|
776
848
|
jsi::Value cpp_uniffi_internal_fn_method_samplerbuilder_ffi__bless_pointer(
|
|
@@ -49,18 +49,24 @@ interface NativeModuleInterface {
|
|
|
49
49
|
ubrn_uniffi_nobodywho_uniffi_fn_free_rustencoder(handle: bigint, uniffi_out_err: UniffiRustCallStatus): void;
|
|
50
50
|
ubrn_uniffi_nobodywho_uniffi_fn_constructor_rustencoder_new(model: bigint, contextSize: Uint8Array, uniffi_out_err: UniffiRustCallStatus): bigint;
|
|
51
51
|
ubrn_uniffi_nobodywho_uniffi_fn_method_rustencoder_encode(ptr: bigint, text: Uint8Array): bigint;
|
|
52
|
+
ubrn_uniffi_nobodywho_uniffi_fn_method_rustencoder_encode_batch(ptr: bigint, texts: Uint8Array): bigint;
|
|
52
53
|
ubrn_uniffi_nobodywho_uniffi_fn_clone_rustmodel(handle: bigint, uniffi_out_err: UniffiRustCallStatus): bigint;
|
|
53
54
|
ubrn_uniffi_nobodywho_uniffi_fn_free_rustmodel(handle: bigint, uniffi_out_err: UniffiRustCallStatus): void;
|
|
54
55
|
ubrn_uniffi_nobodywho_uniffi_fn_method_rustmodel_max_ctx(ptr: bigint, uniffi_out_err: UniffiRustCallStatus): number;
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
56
|
+
ubrn_uniffi_nobodywho_uniffi_fn_clone_rustspeechtotext(handle: bigint, uniffi_out_err: UniffiRustCallStatus): bigint;
|
|
57
|
+
ubrn_uniffi_nobodywho_uniffi_fn_free_rustspeechtotext(handle: bigint, uniffi_out_err: UniffiRustCallStatus): void;
|
|
58
|
+
ubrn_uniffi_nobodywho_uniffi_fn_constructor_rustspeechtotext_new(source: Uint8Array, language: Uint8Array, quantization: Uint8Array, uniffi_out_err: UniffiRustCallStatus): bigint;
|
|
59
|
+
ubrn_uniffi_nobodywho_uniffi_fn_method_rustspeechtotext_transcribe_file(ptr: bigint, path: Uint8Array, uniffi_out_err: UniffiRustCallStatus): bigint;
|
|
60
|
+
ubrn_uniffi_nobodywho_uniffi_fn_method_rustspeechtotext_transcribe_pcm(ptr: bigint, samples: Uint8Array, sampleRate: number, uniffi_out_err: UniffiRustCallStatus): bigint;
|
|
61
|
+
ubrn_uniffi_nobodywho_uniffi_fn_clone_rustspeechtotextstream(handle: bigint, uniffi_out_err: UniffiRustCallStatus): bigint;
|
|
62
|
+
ubrn_uniffi_nobodywho_uniffi_fn_free_rustspeechtotextstream(handle: bigint, uniffi_out_err: UniffiRustCallStatus): void;
|
|
63
|
+
ubrn_uniffi_nobodywho_uniffi_fn_method_rustspeechtotextstream_completed(ptr: bigint): bigint;
|
|
64
|
+
ubrn_uniffi_nobodywho_uniffi_fn_method_rustspeechtotextstream_next_token(ptr: bigint): bigint;
|
|
65
|
+
ubrn_uniffi_nobodywho_uniffi_fn_clone_rusttexttospeech(handle: bigint, uniffi_out_err: UniffiRustCallStatus): bigint;
|
|
66
|
+
ubrn_uniffi_nobodywho_uniffi_fn_free_rusttexttospeech(handle: bigint, uniffi_out_err: UniffiRustCallStatus): void;
|
|
67
|
+
ubrn_uniffi_nobodywho_uniffi_fn_constructor_rusttexttospeech_new(source: Uint8Array, architecture: Uint8Array, voice: Uint8Array, language: Uint8Array, speed: Uint8Array, steps: Uint8Array, silenceDuration: Uint8Array, precision: Uint8Array, temperature: Uint8Array, huggingfaceToken: Uint8Array, device: Uint8Array, uniffi_out_err: UniffiRustCallStatus): bigint;
|
|
68
|
+
ubrn_uniffi_nobodywho_uniffi_fn_method_rusttexttospeech_synthesize(ptr: bigint, text: Uint8Array, uniffi_out_err: UniffiRustCallStatus): Uint8Array;
|
|
69
|
+
ubrn_uniffi_nobodywho_uniffi_fn_method_rusttexttospeech_synthesize_async(ptr: bigint, text: Uint8Array): bigint;
|
|
64
70
|
ubrn_uniffi_nobodywho_uniffi_fn_clone_rusttokenstream(handle: bigint, uniffi_out_err: UniffiRustCallStatus): bigint;
|
|
65
71
|
ubrn_uniffi_nobodywho_uniffi_fn_free_rusttokenstream(handle: bigint, uniffi_out_err: UniffiRustCallStatus): void;
|
|
66
72
|
ubrn_uniffi_nobodywho_uniffi_fn_method_rusttokenstream_completed(ptr: bigint): bigint;
|
|
@@ -72,11 +78,12 @@ interface NativeModuleInterface {
|
|
|
72
78
|
ubrn_uniffi_nobodywho_uniffi_fn_method_rusttool_get_schema_json(ptr: bigint, uniffi_out_err: UniffiRustCallStatus): Uint8Array;
|
|
73
79
|
ubrn_uniffi_nobodywho_uniffi_fn_method_rusttool_next_pending_call(ptr: bigint): bigint;
|
|
74
80
|
ubrn_uniffi_nobodywho_uniffi_fn_method_rusttool_resolve_pending_call(ptr: bigint, callId: Uint8Array, result: Uint8Array, uniffi_out_err: UniffiRustCallStatus): void;
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
81
|
+
ubrn_uniffi_nobodywho_uniffi_fn_clone_rustvoiceactivitydetection(handle: bigint, uniffi_out_err: UniffiRustCallStatus): bigint;
|
|
82
|
+
ubrn_uniffi_nobodywho_uniffi_fn_free_rustvoiceactivitydetection(handle: bigint, uniffi_out_err: UniffiRustCallStatus): void;
|
|
83
|
+
ubrn_uniffi_nobodywho_uniffi_fn_constructor_rustvoiceactivitydetection_new(source: Uint8Array, sampleRate: number, threshold: Uint8Array, minSilenceDurationMs: Uint8Array, minSpeechDurationMs: Uint8Array, prerollDurationMs: Uint8Array, device: Uint8Array, uniffi_out_err: UniffiRustCallStatus): bigint;
|
|
84
|
+
ubrn_uniffi_nobodywho_uniffi_fn_method_rustvoiceactivitydetection_finish(ptr: bigint, uniffi_out_err: UniffiRustCallStatus): Uint8Array;
|
|
85
|
+
ubrn_uniffi_nobodywho_uniffi_fn_method_rustvoiceactivitydetection_push(ptr: bigint, chunk: Uint8Array, uniffi_out_err: UniffiRustCallStatus): Uint8Array;
|
|
86
|
+
ubrn_uniffi_nobodywho_uniffi_fn_method_rustvoiceactivitydetection_segment(ptr: bigint, samples: Uint8Array, uniffi_out_err: UniffiRustCallStatus): Uint8Array;
|
|
80
87
|
ubrn_uniffi_nobodywho_uniffi_fn_clone_samplerbuilder(handle: bigint, uniffi_out_err: UniffiRustCallStatus): bigint;
|
|
81
88
|
ubrn_uniffi_nobodywho_uniffi_fn_free_samplerbuilder(handle: bigint, uniffi_out_err: UniffiRustCallStatus): void;
|
|
82
89
|
ubrn_uniffi_nobodywho_uniffi_fn_constructor_samplerbuilder_new(uniffi_out_err: UniffiRustCallStatus): bigint;
|
|
@@ -104,7 +111,9 @@ interface NativeModuleInterface {
|
|
|
104
111
|
ubrn_uniffi_nobodywho_uniffi_fn_func_download_model(modelPath: Uint8Array, headers: Uint8Array, onDownloadProgress: Uint8Array): bigint;
|
|
105
112
|
ubrn_uniffi_nobodywho_uniffi_fn_func_get_cached_models(uniffi_out_err: UniffiRustCallStatus): Uint8Array;
|
|
106
113
|
ubrn_uniffi_nobodywho_uniffi_fn_func_load_model(modelPath: Uint8Array, useGpu: number, projectionModelPath: Uint8Array, draftModelPath: Uint8Array, onDownloadProgress: Uint8Array): bigint;
|
|
107
|
-
|
|
114
|
+
ubrn_uniffi_nobodywho_uniffi_fn_func_load_speech_to_text(source: Uint8Array, language: Uint8Array, quantization: Uint8Array): bigint;
|
|
115
|
+
ubrn_uniffi_nobodywho_uniffi_fn_func_load_text_to_speech(source: Uint8Array, architecture: Uint8Array, voice: Uint8Array, language: Uint8Array, speed: Uint8Array, steps: Uint8Array, silenceDuration: Uint8Array, precision: Uint8Array, temperature: Uint8Array, huggingfaceToken: Uint8Array, device: Uint8Array): bigint;
|
|
116
|
+
ubrn_uniffi_nobodywho_uniffi_fn_func_load_voice_activity_detection(source: Uint8Array, sampleRate: number, threshold: Uint8Array, minSilenceDurationMs: Uint8Array, minSpeechDurationMs: Uint8Array, prerollDurationMs: Uint8Array, device: Uint8Array): bigint;
|
|
108
117
|
ubrn_uniffi_nobodywho_uniffi_fn_func_sampler_preset_constrain_with_grammar(grammar: Uint8Array, uniffi_out_err: UniffiRustCallStatus): bigint;
|
|
109
118
|
ubrn_uniffi_nobodywho_uniffi_fn_func_sampler_preset_constrain_with_json_schema(schema: Uint8Array, uniffi_out_err: UniffiRustCallStatus): bigint;
|
|
110
119
|
ubrn_uniffi_nobodywho_uniffi_fn_func_sampler_preset_constrain_with_regex(pattern: Uint8Array, uniffi_out_err: UniffiRustCallStatus): bigint;
|
|
@@ -168,7 +177,9 @@ interface NativeModuleInterface {
|
|
|
168
177
|
ubrn_uniffi_nobodywho_uniffi_checksum_func_download_model(): number;
|
|
169
178
|
ubrn_uniffi_nobodywho_uniffi_checksum_func_get_cached_models(): number;
|
|
170
179
|
ubrn_uniffi_nobodywho_uniffi_checksum_func_load_model(): number;
|
|
171
|
-
|
|
180
|
+
ubrn_uniffi_nobodywho_uniffi_checksum_func_load_speech_to_text(): number;
|
|
181
|
+
ubrn_uniffi_nobodywho_uniffi_checksum_func_load_text_to_speech(): number;
|
|
182
|
+
ubrn_uniffi_nobodywho_uniffi_checksum_func_load_voice_activity_detection(): number;
|
|
172
183
|
ubrn_uniffi_nobodywho_uniffi_checksum_func_sampler_preset_constrain_with_grammar(): number;
|
|
173
184
|
ubrn_uniffi_nobodywho_uniffi_checksum_func_sampler_preset_constrain_with_json_schema(): number;
|
|
174
185
|
ubrn_uniffi_nobodywho_uniffi_checksum_func_sampler_preset_constrain_with_regex(): number;
|
|
@@ -202,18 +213,22 @@ interface NativeModuleInterface {
|
|
|
202
213
|
ubrn_uniffi_nobodywho_uniffi_checksum_method_rustcrossencoder_rank(): number;
|
|
203
214
|
ubrn_uniffi_nobodywho_uniffi_checksum_method_rustcrossencoder_rank_and_sort_json(): number;
|
|
204
215
|
ubrn_uniffi_nobodywho_uniffi_checksum_method_rustencoder_encode(): number;
|
|
216
|
+
ubrn_uniffi_nobodywho_uniffi_checksum_method_rustencoder_encode_batch(): number;
|
|
205
217
|
ubrn_uniffi_nobodywho_uniffi_checksum_method_rustmodel_max_ctx(): number;
|
|
206
|
-
|
|
207
|
-
|
|
208
|
-
|
|
209
|
-
|
|
218
|
+
ubrn_uniffi_nobodywho_uniffi_checksum_method_rustspeechtotext_transcribe_file(): number;
|
|
219
|
+
ubrn_uniffi_nobodywho_uniffi_checksum_method_rustspeechtotext_transcribe_pcm(): number;
|
|
220
|
+
ubrn_uniffi_nobodywho_uniffi_checksum_method_rustspeechtotextstream_completed(): number;
|
|
221
|
+
ubrn_uniffi_nobodywho_uniffi_checksum_method_rustspeechtotextstream_next_token(): number;
|
|
222
|
+
ubrn_uniffi_nobodywho_uniffi_checksum_method_rusttexttospeech_synthesize(): number;
|
|
223
|
+
ubrn_uniffi_nobodywho_uniffi_checksum_method_rusttexttospeech_synthesize_async(): number;
|
|
210
224
|
ubrn_uniffi_nobodywho_uniffi_checksum_method_rusttokenstream_completed(): number;
|
|
211
225
|
ubrn_uniffi_nobodywho_uniffi_checksum_method_rusttokenstream_next_token(): number;
|
|
212
226
|
ubrn_uniffi_nobodywho_uniffi_checksum_method_rusttool_get_schema_json(): number;
|
|
213
227
|
ubrn_uniffi_nobodywho_uniffi_checksum_method_rusttool_next_pending_call(): number;
|
|
214
228
|
ubrn_uniffi_nobodywho_uniffi_checksum_method_rusttool_resolve_pending_call(): number;
|
|
215
|
-
|
|
216
|
-
|
|
229
|
+
ubrn_uniffi_nobodywho_uniffi_checksum_method_rustvoiceactivitydetection_finish(): number;
|
|
230
|
+
ubrn_uniffi_nobodywho_uniffi_checksum_method_rustvoiceactivitydetection_push(): number;
|
|
231
|
+
ubrn_uniffi_nobodywho_uniffi_checksum_method_rustvoiceactivitydetection_segment(): number;
|
|
217
232
|
ubrn_uniffi_nobodywho_uniffi_checksum_method_samplerbuilder_dist(): number;
|
|
218
233
|
ubrn_uniffi_nobodywho_uniffi_checksum_method_samplerbuilder_dry(): number;
|
|
219
234
|
ubrn_uniffi_nobodywho_uniffi_checksum_method_samplerbuilder_grammar(): number;
|
|
@@ -232,10 +247,11 @@ interface NativeModuleInterface {
|
|
|
232
247
|
ubrn_uniffi_nobodywho_uniffi_checksum_constructor_rustchat_new(): number;
|
|
233
248
|
ubrn_uniffi_nobodywho_uniffi_checksum_constructor_rustcrossencoder_new(): number;
|
|
234
249
|
ubrn_uniffi_nobodywho_uniffi_checksum_constructor_rustencoder_new(): number;
|
|
235
|
-
|
|
250
|
+
ubrn_uniffi_nobodywho_uniffi_checksum_constructor_rustspeechtotext_new(): number;
|
|
251
|
+
ubrn_uniffi_nobodywho_uniffi_checksum_constructor_rusttexttospeech_new(): number;
|
|
236
252
|
ubrn_uniffi_nobodywho_uniffi_checksum_constructor_rusttool_new(): number;
|
|
237
253
|
ubrn_uniffi_nobodywho_uniffi_checksum_constructor_rusttool_new_async(): number;
|
|
238
|
-
|
|
254
|
+
ubrn_uniffi_nobodywho_uniffi_checksum_constructor_rustvoiceactivitydetection_new(): number;
|
|
239
255
|
ubrn_uniffi_nobodywho_uniffi_checksum_constructor_samplerbuilder_new(): number;
|
|
240
256
|
ubrn_uniffi_nobodywho_uniffi_checksum_constructor_samplerconfig_from_json(): number;
|
|
241
257
|
ubrn_uniffi_nobodywho_uniffi_checksum_method_rustdownloadprogresscallback_on_download_progress(): number;
|
|
@@ -245,11 +261,12 @@ interface NativeModuleInterface {
|
|
|
245
261
|
ubrn_uniffi_internal_fn_method_rustcrossencoder_ffi__bless_pointer(pointer: bigint, uniffi_out_err: UniffiRustCallStatus): UniffiGcObject;
|
|
246
262
|
ubrn_uniffi_internal_fn_method_rustencoder_ffi__bless_pointer(pointer: bigint, uniffi_out_err: UniffiRustCallStatus): UniffiGcObject;
|
|
247
263
|
ubrn_uniffi_internal_fn_method_rustmodel_ffi__bless_pointer(pointer: bigint, uniffi_out_err: UniffiRustCallStatus): UniffiGcObject;
|
|
248
|
-
|
|
249
|
-
|
|
264
|
+
ubrn_uniffi_internal_fn_method_rustspeechtotext_ffi__bless_pointer(pointer: bigint, uniffi_out_err: UniffiRustCallStatus): UniffiGcObject;
|
|
265
|
+
ubrn_uniffi_internal_fn_method_rustspeechtotextstream_ffi__bless_pointer(pointer: bigint, uniffi_out_err: UniffiRustCallStatus): UniffiGcObject;
|
|
266
|
+
ubrn_uniffi_internal_fn_method_rusttexttospeech_ffi__bless_pointer(pointer: bigint, uniffi_out_err: UniffiRustCallStatus): UniffiGcObject;
|
|
250
267
|
ubrn_uniffi_internal_fn_method_rusttokenstream_ffi__bless_pointer(pointer: bigint, uniffi_out_err: UniffiRustCallStatus): UniffiGcObject;
|
|
251
268
|
ubrn_uniffi_internal_fn_method_rusttool_ffi__bless_pointer(pointer: bigint, uniffi_out_err: UniffiRustCallStatus): UniffiGcObject;
|
|
252
|
-
|
|
269
|
+
ubrn_uniffi_internal_fn_method_rustvoiceactivitydetection_ffi__bless_pointer(pointer: bigint, uniffi_out_err: UniffiRustCallStatus): UniffiGcObject;
|
|
253
270
|
ubrn_uniffi_internal_fn_method_samplerbuilder_ffi__bless_pointer(pointer: bigint, uniffi_out_err: UniffiRustCallStatus): UniffiGcObject;
|
|
254
271
|
ubrn_uniffi_internal_fn_method_samplerconfig_ffi__bless_pointer(pointer: bigint, uniffi_out_err: UniffiRustCallStatus): UniffiGcObject;
|
|
255
272
|
}
|