react-native-nobodywho 2.4.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 +902 -328
- package/generated/cpp/nobodywho.hpp +106 -27
- package/generated/ts/nobodywho-ffi.ts +48 -29
- package/generated/ts/nobodywho.ts +693 -164
- package/package.json +1 -1
- package/src/chat.ts +19 -0
- package/src/encoder.ts +5 -0
- package/src/model.ts +6 -1
- package/src/{stt.ts → speech_to_text.ts} +17 -9
- package/src/text_to_speech.ts +87 -0
- package/src/vad.ts +104 -0
- package/src/wrapper.ts +8 -5
- package/src/tts.ts +0 -78
|
@@ -64,6 +64,9 @@ protected:
|
|
|
64
64
|
cpp_uniffi_nobodywho_uniffi_fn_method_rustchat_get_template_variables(
|
|
65
65
|
jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args,
|
|
66
66
|
size_t count);
|
|
67
|
+
jsi::Value cpp_uniffi_nobodywho_uniffi_fn_method_rustchat_mtp_acceptance_rate(
|
|
68
|
+
jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args,
|
|
69
|
+
size_t count);
|
|
67
70
|
jsi::Value cpp_uniffi_nobodywho_uniffi_fn_method_rustchat_reset_context(
|
|
68
71
|
jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args,
|
|
69
72
|
size_t count);
|
|
@@ -124,6 +127,9 @@ protected:
|
|
|
124
127
|
jsi::Value cpp_uniffi_nobodywho_uniffi_fn_method_rustencoder_encode(
|
|
125
128
|
jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args,
|
|
126
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);
|
|
127
133
|
jsi::Value cpp_uniffi_nobodywho_uniffi_fn_clone_rustmodel(
|
|
128
134
|
jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args,
|
|
129
135
|
size_t count);
|
|
@@ -133,31 +139,51 @@ protected:
|
|
|
133
139
|
jsi::Value cpp_uniffi_nobodywho_uniffi_fn_method_rustmodel_max_ctx(
|
|
134
140
|
jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args,
|
|
135
141
|
size_t count);
|
|
136
|
-
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(
|
|
137
160
|
jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args,
|
|
138
161
|
size_t count);
|
|
139
|
-
jsi::Value
|
|
162
|
+
jsi::Value cpp_uniffi_nobodywho_uniffi_fn_free_rustspeechtotextstream(
|
|
140
163
|
jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args,
|
|
141
164
|
size_t count);
|
|
142
|
-
jsi::Value
|
|
165
|
+
jsi::Value
|
|
166
|
+
cpp_uniffi_nobodywho_uniffi_fn_method_rustspeechtotextstream_completed(
|
|
143
167
|
jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args,
|
|
144
168
|
size_t count);
|
|
145
|
-
jsi::Value
|
|
169
|
+
jsi::Value
|
|
170
|
+
cpp_uniffi_nobodywho_uniffi_fn_method_rustspeechtotextstream_next_token(
|
|
146
171
|
jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args,
|
|
147
172
|
size_t count);
|
|
148
|
-
jsi::Value
|
|
173
|
+
jsi::Value cpp_uniffi_nobodywho_uniffi_fn_clone_rusttexttospeech(
|
|
149
174
|
jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args,
|
|
150
175
|
size_t count);
|
|
151
|
-
jsi::Value
|
|
176
|
+
jsi::Value cpp_uniffi_nobodywho_uniffi_fn_free_rusttexttospeech(
|
|
152
177
|
jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args,
|
|
153
178
|
size_t count);
|
|
154
|
-
jsi::Value
|
|
179
|
+
jsi::Value cpp_uniffi_nobodywho_uniffi_fn_constructor_rusttexttospeech_new(
|
|
155
180
|
jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args,
|
|
156
181
|
size_t count);
|
|
157
|
-
jsi::Value
|
|
182
|
+
jsi::Value cpp_uniffi_nobodywho_uniffi_fn_method_rusttexttospeech_synthesize(
|
|
158
183
|
jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args,
|
|
159
184
|
size_t count);
|
|
160
|
-
jsi::Value
|
|
185
|
+
jsi::Value
|
|
186
|
+
cpp_uniffi_nobodywho_uniffi_fn_method_rusttexttospeech_synthesize_async(
|
|
161
187
|
jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args,
|
|
162
188
|
size_t count);
|
|
163
189
|
jsi::Value cpp_uniffi_nobodywho_uniffi_fn_clone_rusttokenstream(
|
|
@@ -194,19 +220,26 @@ protected:
|
|
|
194
220
|
cpp_uniffi_nobodywho_uniffi_fn_method_rusttool_resolve_pending_call(
|
|
195
221
|
jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args,
|
|
196
222
|
size_t count);
|
|
197
|
-
jsi::Value
|
|
223
|
+
jsi::Value cpp_uniffi_nobodywho_uniffi_fn_clone_rustvoiceactivitydetection(
|
|
198
224
|
jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args,
|
|
199
225
|
size_t count);
|
|
200
|
-
jsi::Value
|
|
226
|
+
jsi::Value cpp_uniffi_nobodywho_uniffi_fn_free_rustvoiceactivitydetection(
|
|
201
227
|
jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args,
|
|
202
228
|
size_t count);
|
|
203
|
-
jsi::Value
|
|
229
|
+
jsi::Value
|
|
230
|
+
cpp_uniffi_nobodywho_uniffi_fn_constructor_rustvoiceactivitydetection_new(
|
|
204
231
|
jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args,
|
|
205
232
|
size_t count);
|
|
206
|
-
jsi::Value
|
|
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(
|
|
239
|
+
jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args,
|
|
240
|
+
size_t count);
|
|
241
|
+
jsi::Value
|
|
242
|
+
cpp_uniffi_nobodywho_uniffi_fn_method_rustvoiceactivitydetection_segment(
|
|
210
243
|
jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args,
|
|
211
244
|
size_t count);
|
|
212
245
|
jsi::Value cpp_uniffi_nobodywho_uniffi_fn_clone_samplerbuilder(
|
|
@@ -292,7 +325,13 @@ protected:
|
|
|
292
325
|
jsi::Value cpp_uniffi_nobodywho_uniffi_fn_func_load_model(
|
|
293
326
|
jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args,
|
|
294
327
|
size_t count);
|
|
295
|
-
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(
|
|
296
335
|
jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args,
|
|
297
336
|
size_t count);
|
|
298
337
|
jsi::Value
|
|
@@ -487,7 +526,14 @@ protected:
|
|
|
487
526
|
jsi::Value cpp_uniffi_nobodywho_uniffi_checksum_func_load_model(
|
|
488
527
|
jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args,
|
|
489
528
|
size_t count);
|
|
490
|
-
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(
|
|
491
537
|
jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args,
|
|
492
538
|
size_t count);
|
|
493
539
|
jsi::Value
|
|
@@ -557,6 +603,10 @@ protected:
|
|
|
557
603
|
cpp_uniffi_nobodywho_uniffi_checksum_method_rustchat_get_template_variables(
|
|
558
604
|
jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args,
|
|
559
605
|
size_t count);
|
|
606
|
+
jsi::Value
|
|
607
|
+
cpp_uniffi_nobodywho_uniffi_checksum_method_rustchat_mtp_acceptance_rate(
|
|
608
|
+
jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args,
|
|
609
|
+
size_t count);
|
|
560
610
|
jsi::Value cpp_uniffi_nobodywho_uniffi_checksum_method_rustchat_reset_context(
|
|
561
611
|
jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args,
|
|
562
612
|
size_t count);
|
|
@@ -603,22 +653,35 @@ protected:
|
|
|
603
653
|
jsi::Value cpp_uniffi_nobodywho_uniffi_checksum_method_rustencoder_encode(
|
|
604
654
|
jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args,
|
|
605
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);
|
|
606
660
|
jsi::Value cpp_uniffi_nobodywho_uniffi_checksum_method_rustmodel_max_ctx(
|
|
607
661
|
jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args,
|
|
608
662
|
size_t count);
|
|
609
663
|
jsi::Value
|
|
610
|
-
|
|
664
|
+
cpp_uniffi_nobodywho_uniffi_checksum_method_rustspeechtotext_transcribe_file(
|
|
665
|
+
jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args,
|
|
666
|
+
size_t count);
|
|
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(
|
|
611
673
|
jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args,
|
|
612
674
|
size_t count);
|
|
613
|
-
jsi::Value
|
|
675
|
+
jsi::Value
|
|
676
|
+
cpp_uniffi_nobodywho_uniffi_checksum_method_rustspeechtotextstream_next_token(
|
|
614
677
|
jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args,
|
|
615
678
|
size_t count);
|
|
616
679
|
jsi::Value
|
|
617
|
-
|
|
680
|
+
cpp_uniffi_nobodywho_uniffi_checksum_method_rusttexttospeech_synthesize(
|
|
618
681
|
jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args,
|
|
619
682
|
size_t count);
|
|
620
683
|
jsi::Value
|
|
621
|
-
|
|
684
|
+
cpp_uniffi_nobodywho_uniffi_checksum_method_rusttexttospeech_synthesize_async(
|
|
622
685
|
jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args,
|
|
623
686
|
size_t count);
|
|
624
687
|
jsi::Value
|
|
@@ -641,11 +704,16 @@ protected:
|
|
|
641
704
|
cpp_uniffi_nobodywho_uniffi_checksum_method_rusttool_resolve_pending_call(
|
|
642
705
|
jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args,
|
|
643
706
|
size_t count);
|
|
644
|
-
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(
|
|
645
713
|
jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args,
|
|
646
714
|
size_t count);
|
|
647
715
|
jsi::Value
|
|
648
|
-
|
|
716
|
+
cpp_uniffi_nobodywho_uniffi_checksum_method_rustvoiceactivitydetection_segment(
|
|
649
717
|
jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args,
|
|
650
718
|
size_t count);
|
|
651
719
|
jsi::Value cpp_uniffi_nobodywho_uniffi_checksum_method_samplerbuilder_dist(
|
|
@@ -708,7 +776,12 @@ protected:
|
|
|
708
776
|
jsi::Value cpp_uniffi_nobodywho_uniffi_checksum_constructor_rustencoder_new(
|
|
709
777
|
jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args,
|
|
710
778
|
size_t count);
|
|
711
|
-
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(
|
|
712
785
|
jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args,
|
|
713
786
|
size_t count);
|
|
714
787
|
jsi::Value cpp_uniffi_nobodywho_uniffi_checksum_constructor_rusttool_new(
|
|
@@ -718,7 +791,8 @@ protected:
|
|
|
718
791
|
cpp_uniffi_nobodywho_uniffi_checksum_constructor_rusttool_new_async(
|
|
719
792
|
jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args,
|
|
720
793
|
size_t count);
|
|
721
|
-
jsi::Value
|
|
794
|
+
jsi::Value
|
|
795
|
+
cpp_uniffi_nobodywho_uniffi_checksum_constructor_rustvoiceactivitydetection_new(
|
|
722
796
|
jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args,
|
|
723
797
|
size_t count);
|
|
724
798
|
jsi::Value
|
|
@@ -751,10 +825,14 @@ protected:
|
|
|
751
825
|
jsi::Value cpp_uniffi_internal_fn_method_rustmodel_ffi__bless_pointer(
|
|
752
826
|
jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args,
|
|
753
827
|
size_t count);
|
|
754
|
-
jsi::Value
|
|
828
|
+
jsi::Value cpp_uniffi_internal_fn_method_rustspeechtotext_ffi__bless_pointer(
|
|
755
829
|
jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args,
|
|
756
830
|
size_t count);
|
|
757
|
-
jsi::Value
|
|
831
|
+
jsi::Value
|
|
832
|
+
cpp_uniffi_internal_fn_method_rustspeechtotextstream_ffi__bless_pointer(
|
|
833
|
+
jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args,
|
|
834
|
+
size_t count);
|
|
835
|
+
jsi::Value cpp_uniffi_internal_fn_method_rusttexttospeech_ffi__bless_pointer(
|
|
758
836
|
jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args,
|
|
759
837
|
size_t count);
|
|
760
838
|
jsi::Value cpp_uniffi_internal_fn_method_rusttokenstream_ffi__bless_pointer(
|
|
@@ -763,7 +841,8 @@ protected:
|
|
|
763
841
|
jsi::Value cpp_uniffi_internal_fn_method_rusttool_ffi__bless_pointer(
|
|
764
842
|
jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args,
|
|
765
843
|
size_t count);
|
|
766
|
-
jsi::Value
|
|
844
|
+
jsi::Value
|
|
845
|
+
cpp_uniffi_internal_fn_method_rustvoiceactivitydetection_ffi__bless_pointer(
|
|
767
846
|
jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args,
|
|
768
847
|
size_t count);
|
|
769
848
|
jsi::Value cpp_uniffi_internal_fn_method_samplerbuilder_ffi__bless_pointer(
|
|
@@ -20,7 +20,7 @@ interface NativeModuleInterface {
|
|
|
20
20
|
ubrn_uniffi_internal_fn_func_ffi__arraybuffer_to_string(buffer: Uint8Array, uniffi_out_err: UniffiRustCallStatus): string;
|
|
21
21
|
ubrn_uniffi_nobodywho_uniffi_fn_clone_rustchat(handle: bigint, uniffi_out_err: UniffiRustCallStatus): bigint;
|
|
22
22
|
ubrn_uniffi_nobodywho_uniffi_fn_free_rustchat(handle: bigint, uniffi_out_err: UniffiRustCallStatus): void;
|
|
23
|
-
ubrn_uniffi_nobodywho_uniffi_fn_constructor_rustchat_new(model: bigint, systemPrompt: Uint8Array, contextSize: number, templateVariables: Uint8Array, tools: Uint8Array, sampler: Uint8Array, uniffi_out_err: UniffiRustCallStatus): bigint;
|
|
23
|
+
ubrn_uniffi_nobodywho_uniffi_fn_constructor_rustchat_new(model: bigint, systemPrompt: Uint8Array, contextSize: number, templateVariables: Uint8Array, tools: Uint8Array, sampler: Uint8Array, mtp: Uint8Array, threadCount: Uint8Array, uniffi_out_err: UniffiRustCallStatus): bigint;
|
|
24
24
|
ubrn_uniffi_nobodywho_uniffi_fn_method_rustchat_ask(ptr: bigint, message: Uint8Array, uniffi_out_err: UniffiRustCallStatus): bigint;
|
|
25
25
|
ubrn_uniffi_nobodywho_uniffi_fn_method_rustchat_ask_with_json_prompt(ptr: bigint, json: Uint8Array, uniffi_out_err: UniffiRustCallStatus): bigint;
|
|
26
26
|
ubrn_uniffi_nobodywho_uniffi_fn_method_rustchat_ask_with_prompt(ptr: bigint, parts: Uint8Array, uniffi_out_err: UniffiRustCallStatus): bigint;
|
|
@@ -29,6 +29,7 @@ interface NativeModuleInterface {
|
|
|
29
29
|
ubrn_uniffi_nobodywho_uniffi_fn_method_rustchat_get_stats(ptr: bigint): bigint;
|
|
30
30
|
ubrn_uniffi_nobodywho_uniffi_fn_method_rustchat_get_system_prompt(ptr: bigint): bigint;
|
|
31
31
|
ubrn_uniffi_nobodywho_uniffi_fn_method_rustchat_get_template_variables(ptr: bigint): bigint;
|
|
32
|
+
ubrn_uniffi_nobodywho_uniffi_fn_method_rustchat_mtp_acceptance_rate(ptr: bigint): bigint;
|
|
32
33
|
ubrn_uniffi_nobodywho_uniffi_fn_method_rustchat_reset_context(ptr: bigint, systemPrompt: Uint8Array, tools: Uint8Array): bigint;
|
|
33
34
|
ubrn_uniffi_nobodywho_uniffi_fn_method_rustchat_reset_history(ptr: bigint): bigint;
|
|
34
35
|
ubrn_uniffi_nobodywho_uniffi_fn_method_rustchat_set_chat_history(ptr: bigint, messages: Uint8Array): bigint;
|
|
@@ -48,18 +49,24 @@ interface NativeModuleInterface {
|
|
|
48
49
|
ubrn_uniffi_nobodywho_uniffi_fn_free_rustencoder(handle: bigint, uniffi_out_err: UniffiRustCallStatus): void;
|
|
49
50
|
ubrn_uniffi_nobodywho_uniffi_fn_constructor_rustencoder_new(model: bigint, contextSize: Uint8Array, uniffi_out_err: UniffiRustCallStatus): bigint;
|
|
50
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;
|
|
51
53
|
ubrn_uniffi_nobodywho_uniffi_fn_clone_rustmodel(handle: bigint, uniffi_out_err: UniffiRustCallStatus): bigint;
|
|
52
54
|
ubrn_uniffi_nobodywho_uniffi_fn_free_rustmodel(handle: bigint, uniffi_out_err: UniffiRustCallStatus): void;
|
|
53
55
|
ubrn_uniffi_nobodywho_uniffi_fn_method_rustmodel_max_ctx(ptr: bigint, uniffi_out_err: UniffiRustCallStatus): number;
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
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;
|
|
63
70
|
ubrn_uniffi_nobodywho_uniffi_fn_clone_rusttokenstream(handle: bigint, uniffi_out_err: UniffiRustCallStatus): bigint;
|
|
64
71
|
ubrn_uniffi_nobodywho_uniffi_fn_free_rusttokenstream(handle: bigint, uniffi_out_err: UniffiRustCallStatus): void;
|
|
65
72
|
ubrn_uniffi_nobodywho_uniffi_fn_method_rusttokenstream_completed(ptr: bigint): bigint;
|
|
@@ -71,11 +78,12 @@ interface NativeModuleInterface {
|
|
|
71
78
|
ubrn_uniffi_nobodywho_uniffi_fn_method_rusttool_get_schema_json(ptr: bigint, uniffi_out_err: UniffiRustCallStatus): Uint8Array;
|
|
72
79
|
ubrn_uniffi_nobodywho_uniffi_fn_method_rusttool_next_pending_call(ptr: bigint): bigint;
|
|
73
80
|
ubrn_uniffi_nobodywho_uniffi_fn_method_rusttool_resolve_pending_call(ptr: bigint, callId: Uint8Array, result: Uint8Array, uniffi_out_err: UniffiRustCallStatus): void;
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
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;
|
|
79
87
|
ubrn_uniffi_nobodywho_uniffi_fn_clone_samplerbuilder(handle: bigint, uniffi_out_err: UniffiRustCallStatus): bigint;
|
|
80
88
|
ubrn_uniffi_nobodywho_uniffi_fn_free_samplerbuilder(handle: bigint, uniffi_out_err: UniffiRustCallStatus): void;
|
|
81
89
|
ubrn_uniffi_nobodywho_uniffi_fn_constructor_samplerbuilder_new(uniffi_out_err: UniffiRustCallStatus): bigint;
|
|
@@ -102,8 +110,10 @@ interface NativeModuleInterface {
|
|
|
102
110
|
ubrn_uniffi_nobodywho_uniffi_fn_func_cosine_similarity(a: Uint8Array, b: Uint8Array, uniffi_out_err: UniffiRustCallStatus): number;
|
|
103
111
|
ubrn_uniffi_nobodywho_uniffi_fn_func_download_model(modelPath: Uint8Array, headers: Uint8Array, onDownloadProgress: Uint8Array): bigint;
|
|
104
112
|
ubrn_uniffi_nobodywho_uniffi_fn_func_get_cached_models(uniffi_out_err: UniffiRustCallStatus): Uint8Array;
|
|
105
|
-
ubrn_uniffi_nobodywho_uniffi_fn_func_load_model(modelPath: Uint8Array, useGpu: number, projectionModelPath: Uint8Array, onDownloadProgress: Uint8Array): bigint;
|
|
106
|
-
|
|
113
|
+
ubrn_uniffi_nobodywho_uniffi_fn_func_load_model(modelPath: Uint8Array, useGpu: number, projectionModelPath: Uint8Array, draftModelPath: Uint8Array, onDownloadProgress: Uint8Array): bigint;
|
|
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;
|
|
107
117
|
ubrn_uniffi_nobodywho_uniffi_fn_func_sampler_preset_constrain_with_grammar(grammar: Uint8Array, uniffi_out_err: UniffiRustCallStatus): bigint;
|
|
108
118
|
ubrn_uniffi_nobodywho_uniffi_fn_func_sampler_preset_constrain_with_json_schema(schema: Uint8Array, uniffi_out_err: UniffiRustCallStatus): bigint;
|
|
109
119
|
ubrn_uniffi_nobodywho_uniffi_fn_func_sampler_preset_constrain_with_regex(pattern: Uint8Array, uniffi_out_err: UniffiRustCallStatus): bigint;
|
|
@@ -167,7 +177,9 @@ interface NativeModuleInterface {
|
|
|
167
177
|
ubrn_uniffi_nobodywho_uniffi_checksum_func_download_model(): number;
|
|
168
178
|
ubrn_uniffi_nobodywho_uniffi_checksum_func_get_cached_models(): number;
|
|
169
179
|
ubrn_uniffi_nobodywho_uniffi_checksum_func_load_model(): number;
|
|
170
|
-
|
|
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;
|
|
171
183
|
ubrn_uniffi_nobodywho_uniffi_checksum_func_sampler_preset_constrain_with_grammar(): number;
|
|
172
184
|
ubrn_uniffi_nobodywho_uniffi_checksum_func_sampler_preset_constrain_with_json_schema(): number;
|
|
173
185
|
ubrn_uniffi_nobodywho_uniffi_checksum_func_sampler_preset_constrain_with_regex(): number;
|
|
@@ -187,6 +199,7 @@ interface NativeModuleInterface {
|
|
|
187
199
|
ubrn_uniffi_nobodywho_uniffi_checksum_method_rustchat_get_stats(): number;
|
|
188
200
|
ubrn_uniffi_nobodywho_uniffi_checksum_method_rustchat_get_system_prompt(): number;
|
|
189
201
|
ubrn_uniffi_nobodywho_uniffi_checksum_method_rustchat_get_template_variables(): number;
|
|
202
|
+
ubrn_uniffi_nobodywho_uniffi_checksum_method_rustchat_mtp_acceptance_rate(): number;
|
|
190
203
|
ubrn_uniffi_nobodywho_uniffi_checksum_method_rustchat_reset_context(): number;
|
|
191
204
|
ubrn_uniffi_nobodywho_uniffi_checksum_method_rustchat_reset_history(): number;
|
|
192
205
|
ubrn_uniffi_nobodywho_uniffi_checksum_method_rustchat_set_chat_history(): number;
|
|
@@ -200,18 +213,22 @@ interface NativeModuleInterface {
|
|
|
200
213
|
ubrn_uniffi_nobodywho_uniffi_checksum_method_rustcrossencoder_rank(): number;
|
|
201
214
|
ubrn_uniffi_nobodywho_uniffi_checksum_method_rustcrossencoder_rank_and_sort_json(): number;
|
|
202
215
|
ubrn_uniffi_nobodywho_uniffi_checksum_method_rustencoder_encode(): number;
|
|
216
|
+
ubrn_uniffi_nobodywho_uniffi_checksum_method_rustencoder_encode_batch(): number;
|
|
203
217
|
ubrn_uniffi_nobodywho_uniffi_checksum_method_rustmodel_max_ctx(): number;
|
|
204
|
-
|
|
205
|
-
|
|
206
|
-
|
|
207
|
-
|
|
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;
|
|
208
224
|
ubrn_uniffi_nobodywho_uniffi_checksum_method_rusttokenstream_completed(): number;
|
|
209
225
|
ubrn_uniffi_nobodywho_uniffi_checksum_method_rusttokenstream_next_token(): number;
|
|
210
226
|
ubrn_uniffi_nobodywho_uniffi_checksum_method_rusttool_get_schema_json(): number;
|
|
211
227
|
ubrn_uniffi_nobodywho_uniffi_checksum_method_rusttool_next_pending_call(): number;
|
|
212
228
|
ubrn_uniffi_nobodywho_uniffi_checksum_method_rusttool_resolve_pending_call(): number;
|
|
213
|
-
|
|
214
|
-
|
|
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;
|
|
215
232
|
ubrn_uniffi_nobodywho_uniffi_checksum_method_samplerbuilder_dist(): number;
|
|
216
233
|
ubrn_uniffi_nobodywho_uniffi_checksum_method_samplerbuilder_dry(): number;
|
|
217
234
|
ubrn_uniffi_nobodywho_uniffi_checksum_method_samplerbuilder_grammar(): number;
|
|
@@ -230,10 +247,11 @@ interface NativeModuleInterface {
|
|
|
230
247
|
ubrn_uniffi_nobodywho_uniffi_checksum_constructor_rustchat_new(): number;
|
|
231
248
|
ubrn_uniffi_nobodywho_uniffi_checksum_constructor_rustcrossencoder_new(): number;
|
|
232
249
|
ubrn_uniffi_nobodywho_uniffi_checksum_constructor_rustencoder_new(): number;
|
|
233
|
-
|
|
250
|
+
ubrn_uniffi_nobodywho_uniffi_checksum_constructor_rustspeechtotext_new(): number;
|
|
251
|
+
ubrn_uniffi_nobodywho_uniffi_checksum_constructor_rusttexttospeech_new(): number;
|
|
234
252
|
ubrn_uniffi_nobodywho_uniffi_checksum_constructor_rusttool_new(): number;
|
|
235
253
|
ubrn_uniffi_nobodywho_uniffi_checksum_constructor_rusttool_new_async(): number;
|
|
236
|
-
|
|
254
|
+
ubrn_uniffi_nobodywho_uniffi_checksum_constructor_rustvoiceactivitydetection_new(): number;
|
|
237
255
|
ubrn_uniffi_nobodywho_uniffi_checksum_constructor_samplerbuilder_new(): number;
|
|
238
256
|
ubrn_uniffi_nobodywho_uniffi_checksum_constructor_samplerconfig_from_json(): number;
|
|
239
257
|
ubrn_uniffi_nobodywho_uniffi_checksum_method_rustdownloadprogresscallback_on_download_progress(): number;
|
|
@@ -243,11 +261,12 @@ interface NativeModuleInterface {
|
|
|
243
261
|
ubrn_uniffi_internal_fn_method_rustcrossencoder_ffi__bless_pointer(pointer: bigint, uniffi_out_err: UniffiRustCallStatus): UniffiGcObject;
|
|
244
262
|
ubrn_uniffi_internal_fn_method_rustencoder_ffi__bless_pointer(pointer: bigint, uniffi_out_err: UniffiRustCallStatus): UniffiGcObject;
|
|
245
263
|
ubrn_uniffi_internal_fn_method_rustmodel_ffi__bless_pointer(pointer: bigint, uniffi_out_err: UniffiRustCallStatus): UniffiGcObject;
|
|
246
|
-
|
|
247
|
-
|
|
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;
|
|
248
267
|
ubrn_uniffi_internal_fn_method_rusttokenstream_ffi__bless_pointer(pointer: bigint, uniffi_out_err: UniffiRustCallStatus): UniffiGcObject;
|
|
249
268
|
ubrn_uniffi_internal_fn_method_rusttool_ffi__bless_pointer(pointer: bigint, uniffi_out_err: UniffiRustCallStatus): UniffiGcObject;
|
|
250
|
-
|
|
269
|
+
ubrn_uniffi_internal_fn_method_rustvoiceactivitydetection_ffi__bless_pointer(pointer: bigint, uniffi_out_err: UniffiRustCallStatus): UniffiGcObject;
|
|
251
270
|
ubrn_uniffi_internal_fn_method_samplerbuilder_ffi__bless_pointer(pointer: bigint, uniffi_out_err: UniffiRustCallStatus): UniffiGcObject;
|
|
252
271
|
ubrn_uniffi_internal_fn_method_samplerconfig_ffi__bless_pointer(pointer: bigint, uniffi_out_err: UniffiRustCallStatus): UniffiGcObject;
|
|
253
272
|
}
|