@volley/recognition-client-sdk 0.1.707 → 0.1.767
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/dist/browser.bundled.d.ts +90 -1
- package/dist/config-builder.d.ts +6 -1
- package/dist/config-builder.d.ts.map +1 -1
- package/dist/index.bundled.d.ts +145 -48
- package/dist/index.d.ts +1 -1
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +40 -4
- package/dist/index.js.map +3 -3
- package/dist/recog-client-sdk.browser.js +30 -4
- package/dist/recog-client-sdk.browser.js.map +3 -3
- package/dist/recognition-client.d.ts.map +1 -1
- package/dist/recognition-client.types.d.ts +7 -1
- package/dist/recognition-client.types.d.ts.map +1 -1
- package/dist/utils/message-handler.d.ts +2 -1
- package/dist/utils/message-handler.d.ts.map +1 -1
- package/package.json +4 -4
- package/src/config-builder.ts +11 -0
- package/src/index.ts +2 -0
- package/src/recognition-client.ts +9 -0
- package/src/recognition-client.types.ts +9 -0
- package/src/utils/message-handler.ts +14 -3
- package/src/utils/url-builder.spec.ts +43 -0
package/dist/index.bundled.d.ts
CHANGED
|
@@ -22,6 +22,8 @@ declare enum RecognitionProvider {
|
|
|
22
22
|
CARTESIA = "cartesia",
|
|
23
23
|
DASHSCOPE = "dashscope",
|
|
24
24
|
BEDROCK = "bedrock",
|
|
25
|
+
INWORLD_STT = "inworld-stt",
|
|
26
|
+
AWS_TRANSCRIBE = "aws-transcribe",
|
|
25
27
|
TEST_ASR_PROVIDER_QUOTA = "test-asr-provider-quota",
|
|
26
28
|
TEST_ASR_STREAMING = "test-asr-streaming"
|
|
27
29
|
}
|
|
@@ -129,6 +131,21 @@ declare enum BedrockModel {
|
|
|
129
131
|
VOXTRAL_MINI_3B_2507 = "mistral.voxtral-mini-3b-2507",
|
|
130
132
|
VOXTRAL_SMALL_24B_2507 = "mistral.voxtral-small-24b-2507"
|
|
131
133
|
}
|
|
134
|
+
/**
|
|
135
|
+
* Inworld AI STT models
|
|
136
|
+
* @see https://docs.inworld.ai/stt/overview
|
|
137
|
+
*/
|
|
138
|
+
declare enum InworldSttModel {
|
|
139
|
+
INWORLD_STT_1 = "inworld/inworld-stt-1"
|
|
140
|
+
}
|
|
141
|
+
/**
|
|
142
|
+
* AWS Transcribe streaming model
|
|
143
|
+
* AWS Transcribe uses a single default streaming model
|
|
144
|
+
* @see https://docs.aws.amazon.com/transcribe/latest/dg/streaming.html
|
|
145
|
+
*/
|
|
146
|
+
declare enum AwsTranscribeModel {
|
|
147
|
+
DEFAULT = "default"
|
|
148
|
+
}
|
|
132
149
|
/**
|
|
133
150
|
* Self-serve vLLM batch transcription models
|
|
134
151
|
* Backed by recognition-inference / RunPod `/transcribe`
|
|
@@ -139,7 +156,7 @@ declare enum SelfServeVllmModel {
|
|
|
139
156
|
/**
|
|
140
157
|
* Type alias for any model from any provider
|
|
141
158
|
*/
|
|
142
|
-
type RecognitionModel = DeepgramModel | GoogleModel | FireworksModel | GladiaModel | ElevenLabsModel | OpenAIRealtimeModel | MistralVoxtralModel | CartesiaModel | DashScopeModel | SelfServeVllmModel | BedrockModel | string;
|
|
159
|
+
type RecognitionModel = DeepgramModel | GoogleModel | FireworksModel | GladiaModel | ElevenLabsModel | OpenAIRealtimeModel | MistralVoxtralModel | CartesiaModel | DashScopeModel | InworldSttModel | SelfServeVllmModel | BedrockModel | AwsTranscribeModel | string;
|
|
143
160
|
|
|
144
161
|
/**
|
|
145
162
|
* Audio encoding types
|
|
@@ -603,6 +620,61 @@ declare const SessionConfiguredSchemaV1: z.ZodObject<{
|
|
|
603
620
|
providerConfig?: string | undefined;
|
|
604
621
|
}>;
|
|
605
622
|
type SessionConfiguredV1 = z.infer<typeof SessionConfiguredSchemaV1>;
|
|
623
|
+
/**
|
|
624
|
+
* Audio metrics result V1 - contains audio quality metrics
|
|
625
|
+
* Extracted from raw PCM audio without AI/ML, pure signal analysis
|
|
626
|
+
* Used to detect mic issues (muted, low gain, clipping) and audio quality
|
|
627
|
+
*/
|
|
628
|
+
declare const AudioMetricsResultSchemaV1: z.ZodObject<{
|
|
629
|
+
type: z.ZodLiteral<RecognitionResultTypeV1.AUDIO_METRICS>;
|
|
630
|
+
valid: z.ZodBoolean;
|
|
631
|
+
audioBeginMs: z.ZodNumber;
|
|
632
|
+
audioEndMs: z.ZodNumber;
|
|
633
|
+
maxVolume: z.ZodNumber;
|
|
634
|
+
minVolume: z.ZodNumber;
|
|
635
|
+
avgVolume: z.ZodNumber;
|
|
636
|
+
peakVolumeDb: z.ZodNullable<z.ZodNumber>;
|
|
637
|
+
avgVolumeDb: z.ZodNullable<z.ZodNumber>;
|
|
638
|
+
silenceRatio: z.ZodNumber;
|
|
639
|
+
clippingRatio: z.ZodNumber;
|
|
640
|
+
snrEstimate: z.ZodNullable<z.ZodNumber>;
|
|
641
|
+
lastNonSilenceMs: z.ZodNumber;
|
|
642
|
+
timestamp: z.ZodString;
|
|
643
|
+
isFinal: z.ZodOptional<z.ZodBoolean>;
|
|
644
|
+
}, "strip", z.ZodTypeAny, {
|
|
645
|
+
valid: boolean;
|
|
646
|
+
type: RecognitionResultTypeV1.AUDIO_METRICS;
|
|
647
|
+
audioBeginMs: number;
|
|
648
|
+
audioEndMs: number;
|
|
649
|
+
maxVolume: number;
|
|
650
|
+
minVolume: number;
|
|
651
|
+
avgVolume: number;
|
|
652
|
+
silenceRatio: number;
|
|
653
|
+
clippingRatio: number;
|
|
654
|
+
snrEstimate: number | null;
|
|
655
|
+
lastNonSilenceMs: number;
|
|
656
|
+
timestamp: string;
|
|
657
|
+
peakVolumeDb: number | null;
|
|
658
|
+
avgVolumeDb: number | null;
|
|
659
|
+
isFinal?: boolean | undefined;
|
|
660
|
+
}, {
|
|
661
|
+
valid: boolean;
|
|
662
|
+
type: RecognitionResultTypeV1.AUDIO_METRICS;
|
|
663
|
+
audioBeginMs: number;
|
|
664
|
+
audioEndMs: number;
|
|
665
|
+
maxVolume: number;
|
|
666
|
+
minVolume: number;
|
|
667
|
+
avgVolume: number;
|
|
668
|
+
silenceRatio: number;
|
|
669
|
+
clippingRatio: number;
|
|
670
|
+
snrEstimate: number | null;
|
|
671
|
+
lastNonSilenceMs: number;
|
|
672
|
+
timestamp: string;
|
|
673
|
+
peakVolumeDb: number | null;
|
|
674
|
+
avgVolumeDb: number | null;
|
|
675
|
+
isFinal?: boolean | undefined;
|
|
676
|
+
}>;
|
|
677
|
+
type AudioMetricsResultV1 = z.infer<typeof AudioMetricsResultSchemaV1>;
|
|
606
678
|
|
|
607
679
|
/**
|
|
608
680
|
* Error Exception Types
|
|
@@ -621,9 +693,9 @@ declare const AuthenticationExceptionSchema: z.ZodObject<{
|
|
|
621
693
|
code: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodNumber]>>;
|
|
622
694
|
message: z.ZodString;
|
|
623
695
|
provider: z.ZodOptional<z.ZodNativeEnum<typeof RecognitionProvider>>;
|
|
624
|
-
description: z.ZodOptional<z.ZodString>;
|
|
625
696
|
audioUtteranceId: z.ZodOptional<z.ZodString>;
|
|
626
697
|
timestamp: z.ZodOptional<z.ZodNumber>;
|
|
698
|
+
description: z.ZodOptional<z.ZodString>;
|
|
627
699
|
errorType: z.ZodLiteral<ErrorTypeV1.AUTHENTICATION_ERROR>;
|
|
628
700
|
isImmediatelyAvailable: z.ZodLiteral<false>;
|
|
629
701
|
service: z.ZodOptional<z.ZodString>;
|
|
@@ -634,9 +706,9 @@ declare const AuthenticationExceptionSchema: z.ZodObject<{
|
|
|
634
706
|
isImmediatelyAvailable: false;
|
|
635
707
|
code?: string | number | undefined;
|
|
636
708
|
provider?: RecognitionProvider | undefined;
|
|
637
|
-
description?: string | undefined;
|
|
638
709
|
audioUtteranceId?: string | undefined;
|
|
639
710
|
timestamp?: number | undefined;
|
|
711
|
+
description?: string | undefined;
|
|
640
712
|
service?: string | undefined;
|
|
641
713
|
authMethod?: string | undefined;
|
|
642
714
|
}, {
|
|
@@ -645,9 +717,9 @@ declare const AuthenticationExceptionSchema: z.ZodObject<{
|
|
|
645
717
|
isImmediatelyAvailable: false;
|
|
646
718
|
code?: string | number | undefined;
|
|
647
719
|
provider?: RecognitionProvider | undefined;
|
|
648
|
-
description?: string | undefined;
|
|
649
720
|
audioUtteranceId?: string | undefined;
|
|
650
721
|
timestamp?: number | undefined;
|
|
722
|
+
description?: string | undefined;
|
|
651
723
|
service?: string | undefined;
|
|
652
724
|
authMethod?: string | undefined;
|
|
653
725
|
}>;
|
|
@@ -661,9 +733,9 @@ declare const ValidationExceptionSchema: z.ZodObject<{
|
|
|
661
733
|
code: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodNumber]>>;
|
|
662
734
|
message: z.ZodString;
|
|
663
735
|
provider: z.ZodOptional<z.ZodNativeEnum<typeof RecognitionProvider>>;
|
|
664
|
-
description: z.ZodOptional<z.ZodString>;
|
|
665
736
|
audioUtteranceId: z.ZodOptional<z.ZodString>;
|
|
666
737
|
timestamp: z.ZodOptional<z.ZodNumber>;
|
|
738
|
+
description: z.ZodOptional<z.ZodString>;
|
|
667
739
|
errorType: z.ZodLiteral<ErrorTypeV1.VALIDATION_ERROR>;
|
|
668
740
|
isImmediatelyAvailable: z.ZodLiteral<true>;
|
|
669
741
|
field: z.ZodOptional<z.ZodString>;
|
|
@@ -675,9 +747,9 @@ declare const ValidationExceptionSchema: z.ZodObject<{
|
|
|
675
747
|
isImmediatelyAvailable: true;
|
|
676
748
|
code?: string | number | undefined;
|
|
677
749
|
provider?: RecognitionProvider | undefined;
|
|
678
|
-
description?: string | undefined;
|
|
679
750
|
audioUtteranceId?: string | undefined;
|
|
680
751
|
timestamp?: number | undefined;
|
|
752
|
+
description?: string | undefined;
|
|
681
753
|
field?: string | undefined;
|
|
682
754
|
expected?: string | undefined;
|
|
683
755
|
received?: string | undefined;
|
|
@@ -687,9 +759,9 @@ declare const ValidationExceptionSchema: z.ZodObject<{
|
|
|
687
759
|
isImmediatelyAvailable: true;
|
|
688
760
|
code?: string | number | undefined;
|
|
689
761
|
provider?: RecognitionProvider | undefined;
|
|
690
|
-
description?: string | undefined;
|
|
691
762
|
audioUtteranceId?: string | undefined;
|
|
692
763
|
timestamp?: number | undefined;
|
|
764
|
+
description?: string | undefined;
|
|
693
765
|
field?: string | undefined;
|
|
694
766
|
expected?: string | undefined;
|
|
695
767
|
received?: string | undefined;
|
|
@@ -703,9 +775,9 @@ type ValidationException = z.infer<typeof ValidationExceptionSchema>;
|
|
|
703
775
|
declare const ProviderExceptionSchema: z.ZodObject<{
|
|
704
776
|
code: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodNumber]>>;
|
|
705
777
|
message: z.ZodString;
|
|
706
|
-
description: z.ZodOptional<z.ZodString>;
|
|
707
778
|
audioUtteranceId: z.ZodOptional<z.ZodString>;
|
|
708
779
|
timestamp: z.ZodOptional<z.ZodNumber>;
|
|
780
|
+
description: z.ZodOptional<z.ZodString>;
|
|
709
781
|
errorType: z.ZodLiteral<ErrorTypeV1.PROVIDER_ERROR>;
|
|
710
782
|
isImmediatelyAvailable: z.ZodLiteral<false>;
|
|
711
783
|
provider: z.ZodOptional<z.ZodString>;
|
|
@@ -716,9 +788,9 @@ declare const ProviderExceptionSchema: z.ZodObject<{
|
|
|
716
788
|
errorType: ErrorTypeV1.PROVIDER_ERROR;
|
|
717
789
|
isImmediatelyAvailable: false;
|
|
718
790
|
code?: string | number | undefined;
|
|
719
|
-
description?: string | undefined;
|
|
720
791
|
audioUtteranceId?: string | undefined;
|
|
721
792
|
timestamp?: number | undefined;
|
|
793
|
+
description?: string | undefined;
|
|
722
794
|
provider?: string | undefined;
|
|
723
795
|
providerErrorCode?: string | number | undefined;
|
|
724
796
|
isTransient?: boolean | undefined;
|
|
@@ -727,9 +799,9 @@ declare const ProviderExceptionSchema: z.ZodObject<{
|
|
|
727
799
|
errorType: ErrorTypeV1.PROVIDER_ERROR;
|
|
728
800
|
isImmediatelyAvailable: false;
|
|
729
801
|
code?: string | number | undefined;
|
|
730
|
-
description?: string | undefined;
|
|
731
802
|
audioUtteranceId?: string | undefined;
|
|
732
803
|
timestamp?: number | undefined;
|
|
804
|
+
description?: string | undefined;
|
|
733
805
|
provider?: string | undefined;
|
|
734
806
|
providerErrorCode?: string | number | undefined;
|
|
735
807
|
isTransient?: boolean | undefined;
|
|
@@ -744,9 +816,9 @@ declare const TimeoutExceptionSchema: z.ZodObject<{
|
|
|
744
816
|
code: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodNumber]>>;
|
|
745
817
|
message: z.ZodString;
|
|
746
818
|
provider: z.ZodOptional<z.ZodNativeEnum<typeof RecognitionProvider>>;
|
|
747
|
-
description: z.ZodOptional<z.ZodString>;
|
|
748
819
|
audioUtteranceId: z.ZodOptional<z.ZodString>;
|
|
749
820
|
timestamp: z.ZodOptional<z.ZodNumber>;
|
|
821
|
+
description: z.ZodOptional<z.ZodString>;
|
|
750
822
|
errorType: z.ZodLiteral<ErrorTypeV1.TIMEOUT_ERROR>;
|
|
751
823
|
isImmediatelyAvailable: z.ZodLiteral<true>;
|
|
752
824
|
timeoutMs: z.ZodOptional<z.ZodNumber>;
|
|
@@ -757,9 +829,9 @@ declare const TimeoutExceptionSchema: z.ZodObject<{
|
|
|
757
829
|
isImmediatelyAvailable: true;
|
|
758
830
|
code?: string | number | undefined;
|
|
759
831
|
provider?: RecognitionProvider | undefined;
|
|
760
|
-
description?: string | undefined;
|
|
761
832
|
audioUtteranceId?: string | undefined;
|
|
762
833
|
timestamp?: number | undefined;
|
|
834
|
+
description?: string | undefined;
|
|
763
835
|
timeoutMs?: number | undefined;
|
|
764
836
|
operation?: string | undefined;
|
|
765
837
|
}, {
|
|
@@ -768,9 +840,9 @@ declare const TimeoutExceptionSchema: z.ZodObject<{
|
|
|
768
840
|
isImmediatelyAvailable: true;
|
|
769
841
|
code?: string | number | undefined;
|
|
770
842
|
provider?: RecognitionProvider | undefined;
|
|
771
|
-
description?: string | undefined;
|
|
772
843
|
audioUtteranceId?: string | undefined;
|
|
773
844
|
timestamp?: number | undefined;
|
|
845
|
+
description?: string | undefined;
|
|
774
846
|
timeoutMs?: number | undefined;
|
|
775
847
|
operation?: string | undefined;
|
|
776
848
|
}>;
|
|
@@ -784,9 +856,9 @@ declare const QuotaExceededExceptionSchema: z.ZodObject<{
|
|
|
784
856
|
code: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodNumber]>>;
|
|
785
857
|
message: z.ZodString;
|
|
786
858
|
provider: z.ZodOptional<z.ZodNativeEnum<typeof RecognitionProvider>>;
|
|
787
|
-
description: z.ZodOptional<z.ZodString>;
|
|
788
859
|
audioUtteranceId: z.ZodOptional<z.ZodString>;
|
|
789
860
|
timestamp: z.ZodOptional<z.ZodNumber>;
|
|
861
|
+
description: z.ZodOptional<z.ZodString>;
|
|
790
862
|
errorType: z.ZodLiteral<ErrorTypeV1.QUOTA_EXCEEDED>;
|
|
791
863
|
isImmediatelyAvailable: z.ZodLiteral<true>;
|
|
792
864
|
quotaType: z.ZodOptional<z.ZodString>;
|
|
@@ -798,9 +870,9 @@ declare const QuotaExceededExceptionSchema: z.ZodObject<{
|
|
|
798
870
|
isImmediatelyAvailable: true;
|
|
799
871
|
code?: string | number | undefined;
|
|
800
872
|
provider?: RecognitionProvider | undefined;
|
|
801
|
-
description?: string | undefined;
|
|
802
873
|
audioUtteranceId?: string | undefined;
|
|
803
874
|
timestamp?: number | undefined;
|
|
875
|
+
description?: string | undefined;
|
|
804
876
|
quotaType?: string | undefined;
|
|
805
877
|
resetAt?: number | undefined;
|
|
806
878
|
retryAfterSeconds?: number | undefined;
|
|
@@ -810,9 +882,9 @@ declare const QuotaExceededExceptionSchema: z.ZodObject<{
|
|
|
810
882
|
isImmediatelyAvailable: true;
|
|
811
883
|
code?: string | number | undefined;
|
|
812
884
|
provider?: RecognitionProvider | undefined;
|
|
813
|
-
description?: string | undefined;
|
|
814
885
|
audioUtteranceId?: string | undefined;
|
|
815
886
|
timestamp?: number | undefined;
|
|
887
|
+
description?: string | undefined;
|
|
816
888
|
quotaType?: string | undefined;
|
|
817
889
|
resetAt?: number | undefined;
|
|
818
890
|
retryAfterSeconds?: number | undefined;
|
|
@@ -827,9 +899,9 @@ declare const ConnectionExceptionSchema: z.ZodObject<{
|
|
|
827
899
|
code: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodNumber]>>;
|
|
828
900
|
message: z.ZodString;
|
|
829
901
|
provider: z.ZodOptional<z.ZodNativeEnum<typeof RecognitionProvider>>;
|
|
830
|
-
description: z.ZodOptional<z.ZodString>;
|
|
831
902
|
audioUtteranceId: z.ZodOptional<z.ZodString>;
|
|
832
903
|
timestamp: z.ZodOptional<z.ZodNumber>;
|
|
904
|
+
description: z.ZodOptional<z.ZodString>;
|
|
833
905
|
errorType: z.ZodLiteral<ErrorTypeV1.CONNECTION_ERROR>;
|
|
834
906
|
isImmediatelyAvailable: z.ZodLiteral<true>;
|
|
835
907
|
attempts: z.ZodOptional<z.ZodNumber>;
|
|
@@ -841,9 +913,9 @@ declare const ConnectionExceptionSchema: z.ZodObject<{
|
|
|
841
913
|
isImmediatelyAvailable: true;
|
|
842
914
|
code?: string | number | undefined;
|
|
843
915
|
provider?: RecognitionProvider | undefined;
|
|
844
|
-
description?: string | undefined;
|
|
845
916
|
audioUtteranceId?: string | undefined;
|
|
846
917
|
timestamp?: number | undefined;
|
|
918
|
+
description?: string | undefined;
|
|
847
919
|
attempts?: number | undefined;
|
|
848
920
|
url?: string | undefined;
|
|
849
921
|
underlyingError?: string | undefined;
|
|
@@ -853,9 +925,9 @@ declare const ConnectionExceptionSchema: z.ZodObject<{
|
|
|
853
925
|
isImmediatelyAvailable: true;
|
|
854
926
|
code?: string | number | undefined;
|
|
855
927
|
provider?: RecognitionProvider | undefined;
|
|
856
|
-
description?: string | undefined;
|
|
857
928
|
audioUtteranceId?: string | undefined;
|
|
858
929
|
timestamp?: number | undefined;
|
|
930
|
+
description?: string | undefined;
|
|
859
931
|
attempts?: number | undefined;
|
|
860
932
|
url?: string | undefined;
|
|
861
933
|
underlyingError?: string | undefined;
|
|
@@ -870,9 +942,9 @@ declare const UnknownExceptionSchema: z.ZodObject<{
|
|
|
870
942
|
code: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodNumber]>>;
|
|
871
943
|
message: z.ZodString;
|
|
872
944
|
provider: z.ZodOptional<z.ZodNativeEnum<typeof RecognitionProvider>>;
|
|
873
|
-
description: z.ZodOptional<z.ZodString>;
|
|
874
945
|
audioUtteranceId: z.ZodOptional<z.ZodString>;
|
|
875
946
|
timestamp: z.ZodOptional<z.ZodNumber>;
|
|
947
|
+
description: z.ZodOptional<z.ZodString>;
|
|
876
948
|
errorType: z.ZodLiteral<ErrorTypeV1.UNKNOWN_ERROR>;
|
|
877
949
|
isImmediatelyAvailable: z.ZodLiteral<false>;
|
|
878
950
|
stack: z.ZodOptional<z.ZodString>;
|
|
@@ -883,9 +955,9 @@ declare const UnknownExceptionSchema: z.ZodObject<{
|
|
|
883
955
|
isImmediatelyAvailable: false;
|
|
884
956
|
code?: string | number | undefined;
|
|
885
957
|
provider?: RecognitionProvider | undefined;
|
|
886
|
-
description?: string | undefined;
|
|
887
958
|
audioUtteranceId?: string | undefined;
|
|
888
959
|
timestamp?: number | undefined;
|
|
960
|
+
description?: string | undefined;
|
|
889
961
|
stack?: string | undefined;
|
|
890
962
|
context?: Record<string, unknown> | undefined;
|
|
891
963
|
}, {
|
|
@@ -894,9 +966,9 @@ declare const UnknownExceptionSchema: z.ZodObject<{
|
|
|
894
966
|
isImmediatelyAvailable: false;
|
|
895
967
|
code?: string | number | undefined;
|
|
896
968
|
provider?: RecognitionProvider | undefined;
|
|
897
|
-
description?: string | undefined;
|
|
898
969
|
audioUtteranceId?: string | undefined;
|
|
899
970
|
timestamp?: number | undefined;
|
|
971
|
+
description?: string | undefined;
|
|
900
972
|
stack?: string | undefined;
|
|
901
973
|
context?: Record<string, unknown> | undefined;
|
|
902
974
|
}>;
|
|
@@ -909,9 +981,9 @@ declare const RecognitionExceptionSchema: z.ZodDiscriminatedUnion<"errorType", [
|
|
|
909
981
|
code: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodNumber]>>;
|
|
910
982
|
message: z.ZodString;
|
|
911
983
|
provider: z.ZodOptional<z.ZodNativeEnum<typeof RecognitionProvider>>;
|
|
912
|
-
description: z.ZodOptional<z.ZodString>;
|
|
913
984
|
audioUtteranceId: z.ZodOptional<z.ZodString>;
|
|
914
985
|
timestamp: z.ZodOptional<z.ZodNumber>;
|
|
986
|
+
description: z.ZodOptional<z.ZodString>;
|
|
915
987
|
errorType: z.ZodLiteral<ErrorTypeV1.AUTHENTICATION_ERROR>;
|
|
916
988
|
isImmediatelyAvailable: z.ZodLiteral<false>;
|
|
917
989
|
service: z.ZodOptional<z.ZodString>;
|
|
@@ -922,9 +994,9 @@ declare const RecognitionExceptionSchema: z.ZodDiscriminatedUnion<"errorType", [
|
|
|
922
994
|
isImmediatelyAvailable: false;
|
|
923
995
|
code?: string | number | undefined;
|
|
924
996
|
provider?: RecognitionProvider | undefined;
|
|
925
|
-
description?: string | undefined;
|
|
926
997
|
audioUtteranceId?: string | undefined;
|
|
927
998
|
timestamp?: number | undefined;
|
|
999
|
+
description?: string | undefined;
|
|
928
1000
|
service?: string | undefined;
|
|
929
1001
|
authMethod?: string | undefined;
|
|
930
1002
|
}, {
|
|
@@ -933,18 +1005,18 @@ declare const RecognitionExceptionSchema: z.ZodDiscriminatedUnion<"errorType", [
|
|
|
933
1005
|
isImmediatelyAvailable: false;
|
|
934
1006
|
code?: string | number | undefined;
|
|
935
1007
|
provider?: RecognitionProvider | undefined;
|
|
936
|
-
description?: string | undefined;
|
|
937
1008
|
audioUtteranceId?: string | undefined;
|
|
938
1009
|
timestamp?: number | undefined;
|
|
1010
|
+
description?: string | undefined;
|
|
939
1011
|
service?: string | undefined;
|
|
940
1012
|
authMethod?: string | undefined;
|
|
941
1013
|
}>, z.ZodObject<{
|
|
942
1014
|
code: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodNumber]>>;
|
|
943
1015
|
message: z.ZodString;
|
|
944
1016
|
provider: z.ZodOptional<z.ZodNativeEnum<typeof RecognitionProvider>>;
|
|
945
|
-
description: z.ZodOptional<z.ZodString>;
|
|
946
1017
|
audioUtteranceId: z.ZodOptional<z.ZodString>;
|
|
947
1018
|
timestamp: z.ZodOptional<z.ZodNumber>;
|
|
1019
|
+
description: z.ZodOptional<z.ZodString>;
|
|
948
1020
|
errorType: z.ZodLiteral<ErrorTypeV1.VALIDATION_ERROR>;
|
|
949
1021
|
isImmediatelyAvailable: z.ZodLiteral<true>;
|
|
950
1022
|
field: z.ZodOptional<z.ZodString>;
|
|
@@ -956,9 +1028,9 @@ declare const RecognitionExceptionSchema: z.ZodDiscriminatedUnion<"errorType", [
|
|
|
956
1028
|
isImmediatelyAvailable: true;
|
|
957
1029
|
code?: string | number | undefined;
|
|
958
1030
|
provider?: RecognitionProvider | undefined;
|
|
959
|
-
description?: string | undefined;
|
|
960
1031
|
audioUtteranceId?: string | undefined;
|
|
961
1032
|
timestamp?: number | undefined;
|
|
1033
|
+
description?: string | undefined;
|
|
962
1034
|
field?: string | undefined;
|
|
963
1035
|
expected?: string | undefined;
|
|
964
1036
|
received?: string | undefined;
|
|
@@ -968,18 +1040,18 @@ declare const RecognitionExceptionSchema: z.ZodDiscriminatedUnion<"errorType", [
|
|
|
968
1040
|
isImmediatelyAvailable: true;
|
|
969
1041
|
code?: string | number | undefined;
|
|
970
1042
|
provider?: RecognitionProvider | undefined;
|
|
971
|
-
description?: string | undefined;
|
|
972
1043
|
audioUtteranceId?: string | undefined;
|
|
973
1044
|
timestamp?: number | undefined;
|
|
1045
|
+
description?: string | undefined;
|
|
974
1046
|
field?: string | undefined;
|
|
975
1047
|
expected?: string | undefined;
|
|
976
1048
|
received?: string | undefined;
|
|
977
1049
|
}>, z.ZodObject<{
|
|
978
1050
|
code: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodNumber]>>;
|
|
979
1051
|
message: z.ZodString;
|
|
980
|
-
description: z.ZodOptional<z.ZodString>;
|
|
981
1052
|
audioUtteranceId: z.ZodOptional<z.ZodString>;
|
|
982
1053
|
timestamp: z.ZodOptional<z.ZodNumber>;
|
|
1054
|
+
description: z.ZodOptional<z.ZodString>;
|
|
983
1055
|
errorType: z.ZodLiteral<ErrorTypeV1.PROVIDER_ERROR>;
|
|
984
1056
|
isImmediatelyAvailable: z.ZodLiteral<false>;
|
|
985
1057
|
provider: z.ZodOptional<z.ZodString>;
|
|
@@ -990,9 +1062,9 @@ declare const RecognitionExceptionSchema: z.ZodDiscriminatedUnion<"errorType", [
|
|
|
990
1062
|
errorType: ErrorTypeV1.PROVIDER_ERROR;
|
|
991
1063
|
isImmediatelyAvailable: false;
|
|
992
1064
|
code?: string | number | undefined;
|
|
993
|
-
description?: string | undefined;
|
|
994
1065
|
audioUtteranceId?: string | undefined;
|
|
995
1066
|
timestamp?: number | undefined;
|
|
1067
|
+
description?: string | undefined;
|
|
996
1068
|
provider?: string | undefined;
|
|
997
1069
|
providerErrorCode?: string | number | undefined;
|
|
998
1070
|
isTransient?: boolean | undefined;
|
|
@@ -1001,9 +1073,9 @@ declare const RecognitionExceptionSchema: z.ZodDiscriminatedUnion<"errorType", [
|
|
|
1001
1073
|
errorType: ErrorTypeV1.PROVIDER_ERROR;
|
|
1002
1074
|
isImmediatelyAvailable: false;
|
|
1003
1075
|
code?: string | number | undefined;
|
|
1004
|
-
description?: string | undefined;
|
|
1005
1076
|
audioUtteranceId?: string | undefined;
|
|
1006
1077
|
timestamp?: number | undefined;
|
|
1078
|
+
description?: string | undefined;
|
|
1007
1079
|
provider?: string | undefined;
|
|
1008
1080
|
providerErrorCode?: string | number | undefined;
|
|
1009
1081
|
isTransient?: boolean | undefined;
|
|
@@ -1011,9 +1083,9 @@ declare const RecognitionExceptionSchema: z.ZodDiscriminatedUnion<"errorType", [
|
|
|
1011
1083
|
code: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodNumber]>>;
|
|
1012
1084
|
message: z.ZodString;
|
|
1013
1085
|
provider: z.ZodOptional<z.ZodNativeEnum<typeof RecognitionProvider>>;
|
|
1014
|
-
description: z.ZodOptional<z.ZodString>;
|
|
1015
1086
|
audioUtteranceId: z.ZodOptional<z.ZodString>;
|
|
1016
1087
|
timestamp: z.ZodOptional<z.ZodNumber>;
|
|
1088
|
+
description: z.ZodOptional<z.ZodString>;
|
|
1017
1089
|
errorType: z.ZodLiteral<ErrorTypeV1.TIMEOUT_ERROR>;
|
|
1018
1090
|
isImmediatelyAvailable: z.ZodLiteral<true>;
|
|
1019
1091
|
timeoutMs: z.ZodOptional<z.ZodNumber>;
|
|
@@ -1024,9 +1096,9 @@ declare const RecognitionExceptionSchema: z.ZodDiscriminatedUnion<"errorType", [
|
|
|
1024
1096
|
isImmediatelyAvailable: true;
|
|
1025
1097
|
code?: string | number | undefined;
|
|
1026
1098
|
provider?: RecognitionProvider | undefined;
|
|
1027
|
-
description?: string | undefined;
|
|
1028
1099
|
audioUtteranceId?: string | undefined;
|
|
1029
1100
|
timestamp?: number | undefined;
|
|
1101
|
+
description?: string | undefined;
|
|
1030
1102
|
timeoutMs?: number | undefined;
|
|
1031
1103
|
operation?: string | undefined;
|
|
1032
1104
|
}, {
|
|
@@ -1035,18 +1107,18 @@ declare const RecognitionExceptionSchema: z.ZodDiscriminatedUnion<"errorType", [
|
|
|
1035
1107
|
isImmediatelyAvailable: true;
|
|
1036
1108
|
code?: string | number | undefined;
|
|
1037
1109
|
provider?: RecognitionProvider | undefined;
|
|
1038
|
-
description?: string | undefined;
|
|
1039
1110
|
audioUtteranceId?: string | undefined;
|
|
1040
1111
|
timestamp?: number | undefined;
|
|
1112
|
+
description?: string | undefined;
|
|
1041
1113
|
timeoutMs?: number | undefined;
|
|
1042
1114
|
operation?: string | undefined;
|
|
1043
1115
|
}>, z.ZodObject<{
|
|
1044
1116
|
code: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodNumber]>>;
|
|
1045
1117
|
message: z.ZodString;
|
|
1046
1118
|
provider: z.ZodOptional<z.ZodNativeEnum<typeof RecognitionProvider>>;
|
|
1047
|
-
description: z.ZodOptional<z.ZodString>;
|
|
1048
1119
|
audioUtteranceId: z.ZodOptional<z.ZodString>;
|
|
1049
1120
|
timestamp: z.ZodOptional<z.ZodNumber>;
|
|
1121
|
+
description: z.ZodOptional<z.ZodString>;
|
|
1050
1122
|
errorType: z.ZodLiteral<ErrorTypeV1.QUOTA_EXCEEDED>;
|
|
1051
1123
|
isImmediatelyAvailable: z.ZodLiteral<true>;
|
|
1052
1124
|
quotaType: z.ZodOptional<z.ZodString>;
|
|
@@ -1058,9 +1130,9 @@ declare const RecognitionExceptionSchema: z.ZodDiscriminatedUnion<"errorType", [
|
|
|
1058
1130
|
isImmediatelyAvailable: true;
|
|
1059
1131
|
code?: string | number | undefined;
|
|
1060
1132
|
provider?: RecognitionProvider | undefined;
|
|
1061
|
-
description?: string | undefined;
|
|
1062
1133
|
audioUtteranceId?: string | undefined;
|
|
1063
1134
|
timestamp?: number | undefined;
|
|
1135
|
+
description?: string | undefined;
|
|
1064
1136
|
quotaType?: string | undefined;
|
|
1065
1137
|
resetAt?: number | undefined;
|
|
1066
1138
|
retryAfterSeconds?: number | undefined;
|
|
@@ -1070,9 +1142,9 @@ declare const RecognitionExceptionSchema: z.ZodDiscriminatedUnion<"errorType", [
|
|
|
1070
1142
|
isImmediatelyAvailable: true;
|
|
1071
1143
|
code?: string | number | undefined;
|
|
1072
1144
|
provider?: RecognitionProvider | undefined;
|
|
1073
|
-
description?: string | undefined;
|
|
1074
1145
|
audioUtteranceId?: string | undefined;
|
|
1075
1146
|
timestamp?: number | undefined;
|
|
1147
|
+
description?: string | undefined;
|
|
1076
1148
|
quotaType?: string | undefined;
|
|
1077
1149
|
resetAt?: number | undefined;
|
|
1078
1150
|
retryAfterSeconds?: number | undefined;
|
|
@@ -1080,9 +1152,9 @@ declare const RecognitionExceptionSchema: z.ZodDiscriminatedUnion<"errorType", [
|
|
|
1080
1152
|
code: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodNumber]>>;
|
|
1081
1153
|
message: z.ZodString;
|
|
1082
1154
|
provider: z.ZodOptional<z.ZodNativeEnum<typeof RecognitionProvider>>;
|
|
1083
|
-
description: z.ZodOptional<z.ZodString>;
|
|
1084
1155
|
audioUtteranceId: z.ZodOptional<z.ZodString>;
|
|
1085
1156
|
timestamp: z.ZodOptional<z.ZodNumber>;
|
|
1157
|
+
description: z.ZodOptional<z.ZodString>;
|
|
1086
1158
|
errorType: z.ZodLiteral<ErrorTypeV1.CONNECTION_ERROR>;
|
|
1087
1159
|
isImmediatelyAvailable: z.ZodLiteral<true>;
|
|
1088
1160
|
attempts: z.ZodOptional<z.ZodNumber>;
|
|
@@ -1094,9 +1166,9 @@ declare const RecognitionExceptionSchema: z.ZodDiscriminatedUnion<"errorType", [
|
|
|
1094
1166
|
isImmediatelyAvailable: true;
|
|
1095
1167
|
code?: string | number | undefined;
|
|
1096
1168
|
provider?: RecognitionProvider | undefined;
|
|
1097
|
-
description?: string | undefined;
|
|
1098
1169
|
audioUtteranceId?: string | undefined;
|
|
1099
1170
|
timestamp?: number | undefined;
|
|
1171
|
+
description?: string | undefined;
|
|
1100
1172
|
attempts?: number | undefined;
|
|
1101
1173
|
url?: string | undefined;
|
|
1102
1174
|
underlyingError?: string | undefined;
|
|
@@ -1106,18 +1178,18 @@ declare const RecognitionExceptionSchema: z.ZodDiscriminatedUnion<"errorType", [
|
|
|
1106
1178
|
isImmediatelyAvailable: true;
|
|
1107
1179
|
code?: string | number | undefined;
|
|
1108
1180
|
provider?: RecognitionProvider | undefined;
|
|
1109
|
-
description?: string | undefined;
|
|
1110
1181
|
audioUtteranceId?: string | undefined;
|
|
1111
1182
|
timestamp?: number | undefined;
|
|
1183
|
+
description?: string | undefined;
|
|
1112
1184
|
attempts?: number | undefined;
|
|
1113
1185
|
url?: string | undefined;
|
|
1114
1186
|
underlyingError?: string | undefined;
|
|
1115
1187
|
}>, z.ZodObject<{
|
|
1116
1188
|
code: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodNumber]>>;
|
|
1117
1189
|
message: z.ZodString;
|
|
1118
|
-
description: z.ZodOptional<z.ZodString>;
|
|
1119
1190
|
audioUtteranceId: z.ZodOptional<z.ZodString>;
|
|
1120
1191
|
timestamp: z.ZodOptional<z.ZodNumber>;
|
|
1192
|
+
description: z.ZodOptional<z.ZodString>;
|
|
1121
1193
|
errorType: z.ZodLiteral<ErrorTypeV1.CIRCUIT_BREAKER_OPEN>;
|
|
1122
1194
|
isImmediatelyAvailable: z.ZodLiteral<true>;
|
|
1123
1195
|
provider: z.ZodOptional<z.ZodNativeEnum<typeof RecognitionProvider>>;
|
|
@@ -1127,9 +1199,9 @@ declare const RecognitionExceptionSchema: z.ZodDiscriminatedUnion<"errorType", [
|
|
|
1127
1199
|
errorType: ErrorTypeV1.CIRCUIT_BREAKER_OPEN;
|
|
1128
1200
|
isImmediatelyAvailable: true;
|
|
1129
1201
|
code?: string | number | undefined;
|
|
1130
|
-
description?: string | undefined;
|
|
1131
1202
|
audioUtteranceId?: string | undefined;
|
|
1132
1203
|
timestamp?: number | undefined;
|
|
1204
|
+
description?: string | undefined;
|
|
1133
1205
|
provider?: RecognitionProvider | undefined;
|
|
1134
1206
|
model?: string | undefined;
|
|
1135
1207
|
}, {
|
|
@@ -1137,18 +1209,18 @@ declare const RecognitionExceptionSchema: z.ZodDiscriminatedUnion<"errorType", [
|
|
|
1137
1209
|
errorType: ErrorTypeV1.CIRCUIT_BREAKER_OPEN;
|
|
1138
1210
|
isImmediatelyAvailable: true;
|
|
1139
1211
|
code?: string | number | undefined;
|
|
1140
|
-
description?: string | undefined;
|
|
1141
1212
|
audioUtteranceId?: string | undefined;
|
|
1142
1213
|
timestamp?: number | undefined;
|
|
1214
|
+
description?: string | undefined;
|
|
1143
1215
|
provider?: RecognitionProvider | undefined;
|
|
1144
1216
|
model?: string | undefined;
|
|
1145
1217
|
}>, z.ZodObject<{
|
|
1146
1218
|
code: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodNumber]>>;
|
|
1147
1219
|
message: z.ZodString;
|
|
1148
1220
|
provider: z.ZodOptional<z.ZodNativeEnum<typeof RecognitionProvider>>;
|
|
1149
|
-
description: z.ZodOptional<z.ZodString>;
|
|
1150
1221
|
audioUtteranceId: z.ZodOptional<z.ZodString>;
|
|
1151
1222
|
timestamp: z.ZodOptional<z.ZodNumber>;
|
|
1223
|
+
description: z.ZodOptional<z.ZodString>;
|
|
1152
1224
|
errorType: z.ZodLiteral<ErrorTypeV1.UNKNOWN_ERROR>;
|
|
1153
1225
|
isImmediatelyAvailable: z.ZodLiteral<false>;
|
|
1154
1226
|
stack: z.ZodOptional<z.ZodString>;
|
|
@@ -1159,9 +1231,9 @@ declare const RecognitionExceptionSchema: z.ZodDiscriminatedUnion<"errorType", [
|
|
|
1159
1231
|
isImmediatelyAvailable: false;
|
|
1160
1232
|
code?: string | number | undefined;
|
|
1161
1233
|
provider?: RecognitionProvider | undefined;
|
|
1162
|
-
description?: string | undefined;
|
|
1163
1234
|
audioUtteranceId?: string | undefined;
|
|
1164
1235
|
timestamp?: number | undefined;
|
|
1236
|
+
description?: string | undefined;
|
|
1165
1237
|
stack?: string | undefined;
|
|
1166
1238
|
context?: Record<string, unknown> | undefined;
|
|
1167
1239
|
}, {
|
|
@@ -1170,9 +1242,9 @@ declare const RecognitionExceptionSchema: z.ZodDiscriminatedUnion<"errorType", [
|
|
|
1170
1242
|
isImmediatelyAvailable: false;
|
|
1171
1243
|
code?: string | number | undefined;
|
|
1172
1244
|
provider?: RecognitionProvider | undefined;
|
|
1173
|
-
description?: string | undefined;
|
|
1174
1245
|
audioUtteranceId?: string | undefined;
|
|
1175
1246
|
timestamp?: number | undefined;
|
|
1247
|
+
description?: string | undefined;
|
|
1176
1248
|
stack?: string | undefined;
|
|
1177
1249
|
context?: Record<string, unknown> | undefined;
|
|
1178
1250
|
}>]>;
|
|
@@ -1298,6 +1370,7 @@ declare const ASRRequestSchemaV1: z.ZodObject<{
|
|
|
1298
1370
|
prefixMode: z.ZodDefault<z.ZodOptional<z.ZodNativeEnum<typeof PrefixMode>>>;
|
|
1299
1371
|
prefixId: z.ZodOptional<z.ZodString>;
|
|
1300
1372
|
prefixTextToRemove: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
1373
|
+
audioMetricsIntervalMs: z.ZodOptional<z.ZodNumber>;
|
|
1301
1374
|
debugCommand: z.ZodOptional<z.ZodObject<{
|
|
1302
1375
|
enableDebugLog: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
|
|
1303
1376
|
enableAudioStorage: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
|
|
@@ -1339,6 +1412,7 @@ declare const ASRRequestSchemaV1: z.ZodObject<{
|
|
|
1339
1412
|
}[] | undefined;
|
|
1340
1413
|
prefixId?: string | undefined;
|
|
1341
1414
|
prefixTextToRemove?: string[] | undefined;
|
|
1415
|
+
audioMetricsIntervalMs?: number | undefined;
|
|
1342
1416
|
debugCommand?: {
|
|
1343
1417
|
enableDebugLog: boolean;
|
|
1344
1418
|
enableAudioStorage: boolean;
|
|
@@ -1370,6 +1444,7 @@ declare const ASRRequestSchemaV1: z.ZodObject<{
|
|
|
1370
1444
|
prefixMode?: PrefixMode | undefined;
|
|
1371
1445
|
prefixId?: string | undefined;
|
|
1372
1446
|
prefixTextToRemove?: string[] | undefined;
|
|
1447
|
+
audioMetricsIntervalMs?: number | undefined;
|
|
1373
1448
|
debugCommand?: {
|
|
1374
1449
|
enableDebugLog?: boolean | undefined;
|
|
1375
1450
|
enableAudioStorage?: boolean | undefined;
|
|
@@ -1590,6 +1665,17 @@ interface ASRRequestConfig {
|
|
|
1590
1665
|
* ```
|
|
1591
1666
|
*/
|
|
1592
1667
|
providerOptions?: Record<string, any>;
|
|
1668
|
+
/**
|
|
1669
|
+
* Streaming audio metrics opt-in interval (ms).
|
|
1670
|
+
*
|
|
1671
|
+
* When set to a positive number, server forwards AudioMetrics results to the
|
|
1672
|
+
* client over the WebSocket, throttled so at most one result is sent per
|
|
1673
|
+
* `audioMetricsIntervalMs`. Undefined / 0 disables streaming audio metrics
|
|
1674
|
+
* (final metrics still embedded in the Metadata result).
|
|
1675
|
+
*
|
|
1676
|
+
* @example 500
|
|
1677
|
+
*/
|
|
1678
|
+
audioMetricsIntervalMs?: number;
|
|
1593
1679
|
/**
|
|
1594
1680
|
* Optional fallback ASR configurations
|
|
1595
1681
|
*
|
|
@@ -1926,6 +2012,12 @@ interface IRecognitionClientConfig {
|
|
|
1926
2012
|
onFunctionCall?: (result: FunctionCallResultV1) => void;
|
|
1927
2013
|
/** Callback when metadata is received. Only once after transcription is complete.*/
|
|
1928
2014
|
onMetadata?: (metadata: MetadataResultV1) => void;
|
|
2015
|
+
/**
|
|
2016
|
+
* Callback when streaming audio metrics arrive (volume, silence ratio, clipping, SNR, etc.).
|
|
2017
|
+
* Only fires when `asrRequestConfig.audioMetricsIntervalMs > 0`.
|
|
2018
|
+
* Final metrics still arrive embedded in `onMetadata.audioMetrics`.
|
|
2019
|
+
*/
|
|
2020
|
+
onAudioMetrics?: (metrics: AudioMetricsResultV1) => void;
|
|
1929
2021
|
/** Callback when session is configured with actual ASR provider/model (optional) */
|
|
1930
2022
|
onSessionConfigured?: (config: SessionConfiguredV1) => void;
|
|
1931
2023
|
/** Callback when error occurs */
|
|
@@ -2375,6 +2467,11 @@ declare class ConfigBuilder {
|
|
|
2375
2467
|
* Set session configured callback (optional)
|
|
2376
2468
|
*/
|
|
2377
2469
|
onSessionConfigured(callback: (config: SessionConfiguredV1) => void): this;
|
|
2470
|
+
/**
|
|
2471
|
+
* Set streaming audio metrics callback (optional).
|
|
2472
|
+
* Only fires when `asrRequestConfig.audioMetricsIntervalMs > 0`.
|
|
2473
|
+
*/
|
|
2474
|
+
onAudioMetrics(callback: (metrics: AudioMetricsResultV1) => void): this;
|
|
2378
2475
|
/**
|
|
2379
2476
|
* Set error callback
|
|
2380
2477
|
*/
|
|
@@ -2837,5 +2934,5 @@ declare function getRecognitionConductorHttpBase(stage?: Stage | string | null |
|
|
|
2837
2934
|
declare function getRecognitionConductorWsBase(stage?: Stage | string | null | undefined): string;
|
|
2838
2935
|
declare function getRecognitionConductorHost(stage?: Stage | string | null | undefined): string;
|
|
2839
2936
|
|
|
2840
|
-
export { AudioEncoding, BedrockModel, CartesiaModel, ClientControlActionV1, ClientState, ConfigBuilder, ConnectionError, ControlSignalTypeV1 as ControlSignal, ControlSignalTypeV1, DashScopeModel, DeepgramModel, ElevenLabsModel, ErrorTypeV1, FinalTranscriptStability, FireworksModel, GeminiModel, GladiaModel, GoogleModel, Language, MistralVoxtralModel, OpenAIModel, OpenAIRealtimeModel, RECOGNITION_CONDUCTOR_BASES, RECOGNITION_SERVICE_BASES, RealTimeTwoWayWebSocketRecognitionClient, RecognitionContextTypeV1, RecognitionError, RecognitionProvider, RecognitionResultTypeV1, RecognitionVGFStateSchema, RecordingStatus, STAGES, SampleRate, SelfServeVllmModel, SimplifiedVGFRecognitionClient, TimeoutError, TranscriptionStatus, ValidationError, createClient, createClientWithBuilder, createDefaultASRConfig, createInitialRecognitionState, createSimplifiedVGFClient, getRecognitionConductorBase, getRecognitionConductorHost, getRecognitionConductorHttpBase, getRecognitionConductorWsBase, getRecognitionServiceBase, getRecognitionServiceHost, getRecognitionServiceHttpBase, getRecognitionServiceWsBase, getUserFriendlyMessage, isExceptionImmediatelyAvailable, isNormalDisconnection, isValidRecordingStatusTransition, normalizeStage, resetRecognitionVGFState };
|
|
2841
|
-
export type { ASRRequestConfig, ASRRequestV1, AuthenticationException, ConnectionException, ErrorResultV1, FunctionCallResultV1, GameContextV1, IRecognitionClient, IRecognitionClientConfig, IRecognitionClientStats, ISimplifiedVGFRecognitionClient, MetadataResultV1, ProviderException, QuotaExceededException, RealTimeTwoWayWebSocketRecognitionClientConfig, RecognitionCallbackUrl, RecognitionException, RecognitionState, RecordingStatusType, SimplifiedVGFClientConfig, SlotMap, Stage, TimeoutException, TranscriptionResult, TranscriptionResultV1, TranscriptionStatusType, UnknownException, ValidationException };
|
|
2937
|
+
export { AudioEncoding, AwsTranscribeModel, BedrockModel, CartesiaModel, ClientControlActionV1, ClientState, ConfigBuilder, ConnectionError, ControlSignalTypeV1 as ControlSignal, ControlSignalTypeV1, DashScopeModel, DeepgramModel, ElevenLabsModel, ErrorTypeV1, FinalTranscriptStability, FireworksModel, GeminiModel, GladiaModel, GoogleModel, Language, MistralVoxtralModel, OpenAIModel, OpenAIRealtimeModel, RECOGNITION_CONDUCTOR_BASES, RECOGNITION_SERVICE_BASES, RealTimeTwoWayWebSocketRecognitionClient, RecognitionContextTypeV1, RecognitionError, RecognitionProvider, RecognitionResultTypeV1, RecognitionVGFStateSchema, RecordingStatus, STAGES, SampleRate, SelfServeVllmModel, SimplifiedVGFRecognitionClient, TimeoutError, TranscriptionStatus, ValidationError, createClient, createClientWithBuilder, createDefaultASRConfig, createInitialRecognitionState, createSimplifiedVGFClient, getRecognitionConductorBase, getRecognitionConductorHost, getRecognitionConductorHttpBase, getRecognitionConductorWsBase, getRecognitionServiceBase, getRecognitionServiceHost, getRecognitionServiceHttpBase, getRecognitionServiceWsBase, getUserFriendlyMessage, isExceptionImmediatelyAvailable, isNormalDisconnection, isValidRecordingStatusTransition, normalizeStage, resetRecognitionVGFState };
|
|
2938
|
+
export type { ASRRequestConfig, ASRRequestV1, AudioMetricsResultV1, AuthenticationException, ConnectionException, ErrorResultV1, FunctionCallResultV1, GameContextV1, IRecognitionClient, IRecognitionClientConfig, IRecognitionClientStats, ISimplifiedVGFRecognitionClient, MetadataResultV1, ProviderException, QuotaExceededException, RealTimeTwoWayWebSocketRecognitionClientConfig, RecognitionCallbackUrl, RecognitionException, RecognitionState, RecordingStatusType, SimplifiedVGFClientConfig, SlotMap, Stage, TimeoutException, TranscriptionResult, TranscriptionResultV1, TranscriptionStatusType, UnknownException, ValidationException };
|
package/dist/index.d.ts
CHANGED
|
@@ -11,6 +11,6 @@ export { type RecognitionState, RecognitionVGFStateSchema, RecordingStatus, Tran
|
|
|
11
11
|
export { resetRecognitionVGFState } from './vgf-recognition-mapper.js';
|
|
12
12
|
export { AudioEncoding } from '@recog/websocket';
|
|
13
13
|
export { type GameContextV1, type SlotMap, RecognitionContextTypeV1, ControlSignalTypeV1, ControlSignalTypeV1 as ControlSignal, // Alias for backward compatibility
|
|
14
|
-
type TranscriptionResultV1, type FunctionCallResultV1, type MetadataResultV1, type ErrorResultV1, RecognitionResultTypeV1, ClientControlActionV1, type ASRRequestConfig, type ASRRequestV1, FinalTranscriptStability, createDefaultASRConfig, RecognitionProvider, DeepgramModel, ElevenLabsModel, FireworksModel, GladiaModel, GoogleModel, GeminiModel, OpenAIModel, SelfServeVllmModel, OpenAIRealtimeModel, MistralVoxtralModel, CartesiaModel, DashScopeModel, BedrockModel, Language, SampleRate, STAGES, type Stage } from '@recog/shared-types';
|
|
14
|
+
type TranscriptionResultV1, type FunctionCallResultV1, type MetadataResultV1, type AudioMetricsResultV1, type ErrorResultV1, RecognitionResultTypeV1, ClientControlActionV1, type ASRRequestConfig, type ASRRequestV1, FinalTranscriptStability, createDefaultASRConfig, RecognitionProvider, DeepgramModel, ElevenLabsModel, FireworksModel, GladiaModel, GoogleModel, GeminiModel, OpenAIModel, SelfServeVllmModel, OpenAIRealtimeModel, MistralVoxtralModel, CartesiaModel, DashScopeModel, BedrockModel, AwsTranscribeModel, Language, SampleRate, STAGES, type Stage } from '@recog/shared-types';
|
|
15
15
|
export { getRecognitionServiceBase, getRecognitionServiceHttpBase, getRecognitionServiceWsBase, getRecognitionServiceHost, getRecognitionConductorBase, getRecognitionConductorHttpBase, getRecognitionConductorWsBase, getRecognitionConductorHost, normalizeStage, RECOGNITION_SERVICE_BASES, RECOGNITION_CONDUCTOR_BASES } from '@recog/shared-config';
|
|
16
16
|
//# sourceMappingURL=index.d.ts.map
|
package/dist/index.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","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