voice-router-dev 0.1.6 → 0.1.7
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/index.d.mts +370 -202
- package/dist/index.d.ts +370 -202
- package/dist/index.js +1 -33
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +1 -33
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
package/dist/index.d.mts
CHANGED
|
@@ -458,6 +458,318 @@ declare abstract class BaseAdapter implements TranscriptionAdapter {
|
|
|
458
458
|
protected validateConfig(): void;
|
|
459
459
|
}
|
|
460
460
|
|
|
461
|
+
/**
|
|
462
|
+
* Generated by orval v7.9.0 🍺
|
|
463
|
+
* Do not edit manually.
|
|
464
|
+
* Gladia Control API
|
|
465
|
+
* OpenAPI spec version: 1.0
|
|
466
|
+
*/
|
|
467
|
+
/**
|
|
468
|
+
* The encoding format of the audio stream. Supported formats:
|
|
469
|
+
- PCM: 8, 16, 24, and 32 bits
|
|
470
|
+
- A-law: 8 bits
|
|
471
|
+
- μ-law: 8 bits
|
|
472
|
+
|
|
473
|
+
Note: No need to add WAV headers to raw audio as the API supports both formats.
|
|
474
|
+
*/
|
|
475
|
+
type StreamingSupportedEncodingEnum = (typeof StreamingSupportedEncodingEnum)[keyof typeof StreamingSupportedEncodingEnum];
|
|
476
|
+
declare const StreamingSupportedEncodingEnum: {
|
|
477
|
+
readonly "wav/pcm": "wav/pcm";
|
|
478
|
+
readonly "wav/alaw": "wav/alaw";
|
|
479
|
+
readonly "wav/ulaw": "wav/ulaw";
|
|
480
|
+
};
|
|
481
|
+
|
|
482
|
+
/**
|
|
483
|
+
* Generated by orval v7.9.0 🍺
|
|
484
|
+
* Do not edit manually.
|
|
485
|
+
* Gladia Control API
|
|
486
|
+
* OpenAPI spec version: 1.0
|
|
487
|
+
*/
|
|
488
|
+
/**
|
|
489
|
+
* The sample rate of the audio stream
|
|
490
|
+
*/
|
|
491
|
+
type StreamingSupportedSampleRateEnum = (typeof StreamingSupportedSampleRateEnum)[keyof typeof StreamingSupportedSampleRateEnum];
|
|
492
|
+
declare const StreamingSupportedSampleRateEnum: {
|
|
493
|
+
readonly NUMBER_8000: 8000;
|
|
494
|
+
readonly NUMBER_16000: 16000;
|
|
495
|
+
readonly NUMBER_32000: 32000;
|
|
496
|
+
readonly NUMBER_44100: 44100;
|
|
497
|
+
readonly NUMBER_48000: 48000;
|
|
498
|
+
};
|
|
499
|
+
|
|
500
|
+
/**
|
|
501
|
+
* Generated by orval v7.9.0 🍺
|
|
502
|
+
* Do not edit manually.
|
|
503
|
+
* Gladia Control API
|
|
504
|
+
* OpenAPI spec version: 1.0
|
|
505
|
+
*/
|
|
506
|
+
/**
|
|
507
|
+
* The bit depth of the audio stream
|
|
508
|
+
*/
|
|
509
|
+
type StreamingSupportedBitDepthEnum = (typeof StreamingSupportedBitDepthEnum)[keyof typeof StreamingSupportedBitDepthEnum];
|
|
510
|
+
declare const StreamingSupportedBitDepthEnum: {
|
|
511
|
+
readonly NUMBER_8: 8;
|
|
512
|
+
readonly NUMBER_16: 16;
|
|
513
|
+
readonly NUMBER_24: 24;
|
|
514
|
+
readonly NUMBER_32: 32;
|
|
515
|
+
};
|
|
516
|
+
|
|
517
|
+
/**
|
|
518
|
+
* Generated by orval v7.9.0 🍺
|
|
519
|
+
* Do not edit manually.
|
|
520
|
+
* Gladia Control API
|
|
521
|
+
* OpenAPI spec version: 1.0
|
|
522
|
+
*/
|
|
523
|
+
/**
|
|
524
|
+
* Specify the language in which it will be pronounced when sound comparison occurs. Default to transcription language.
|
|
525
|
+
*/
|
|
526
|
+
type TranscriptionLanguageCodeEnum = (typeof TranscriptionLanguageCodeEnum)[keyof typeof TranscriptionLanguageCodeEnum];
|
|
527
|
+
declare const TranscriptionLanguageCodeEnum: {
|
|
528
|
+
readonly af: "af";
|
|
529
|
+
readonly am: "am";
|
|
530
|
+
readonly ar: "ar";
|
|
531
|
+
readonly as: "as";
|
|
532
|
+
readonly az: "az";
|
|
533
|
+
readonly ba: "ba";
|
|
534
|
+
readonly be: "be";
|
|
535
|
+
readonly bg: "bg";
|
|
536
|
+
readonly bn: "bn";
|
|
537
|
+
readonly bo: "bo";
|
|
538
|
+
readonly br: "br";
|
|
539
|
+
readonly bs: "bs";
|
|
540
|
+
readonly ca: "ca";
|
|
541
|
+
readonly cs: "cs";
|
|
542
|
+
readonly cy: "cy";
|
|
543
|
+
readonly da: "da";
|
|
544
|
+
readonly de: "de";
|
|
545
|
+
readonly el: "el";
|
|
546
|
+
readonly en: "en";
|
|
547
|
+
readonly es: "es";
|
|
548
|
+
readonly et: "et";
|
|
549
|
+
readonly eu: "eu";
|
|
550
|
+
readonly fa: "fa";
|
|
551
|
+
readonly fi: "fi";
|
|
552
|
+
readonly fo: "fo";
|
|
553
|
+
readonly fr: "fr";
|
|
554
|
+
readonly gl: "gl";
|
|
555
|
+
readonly gu: "gu";
|
|
556
|
+
readonly ha: "ha";
|
|
557
|
+
readonly haw: "haw";
|
|
558
|
+
readonly he: "he";
|
|
559
|
+
readonly hi: "hi";
|
|
560
|
+
readonly hr: "hr";
|
|
561
|
+
readonly ht: "ht";
|
|
562
|
+
readonly hu: "hu";
|
|
563
|
+
readonly hy: "hy";
|
|
564
|
+
readonly id: "id";
|
|
565
|
+
readonly is: "is";
|
|
566
|
+
readonly it: "it";
|
|
567
|
+
readonly ja: "ja";
|
|
568
|
+
readonly jw: "jw";
|
|
569
|
+
readonly ka: "ka";
|
|
570
|
+
readonly kk: "kk";
|
|
571
|
+
readonly km: "km";
|
|
572
|
+
readonly kn: "kn";
|
|
573
|
+
readonly ko: "ko";
|
|
574
|
+
readonly la: "la";
|
|
575
|
+
readonly lb: "lb";
|
|
576
|
+
readonly ln: "ln";
|
|
577
|
+
readonly lo: "lo";
|
|
578
|
+
readonly lt: "lt";
|
|
579
|
+
readonly lv: "lv";
|
|
580
|
+
readonly mg: "mg";
|
|
581
|
+
readonly mi: "mi";
|
|
582
|
+
readonly mk: "mk";
|
|
583
|
+
readonly ml: "ml";
|
|
584
|
+
readonly mn: "mn";
|
|
585
|
+
readonly mr: "mr";
|
|
586
|
+
readonly ms: "ms";
|
|
587
|
+
readonly mt: "mt";
|
|
588
|
+
readonly my: "my";
|
|
589
|
+
readonly ne: "ne";
|
|
590
|
+
readonly nl: "nl";
|
|
591
|
+
readonly nn: "nn";
|
|
592
|
+
readonly no: "no";
|
|
593
|
+
readonly oc: "oc";
|
|
594
|
+
readonly pa: "pa";
|
|
595
|
+
readonly pl: "pl";
|
|
596
|
+
readonly ps: "ps";
|
|
597
|
+
readonly pt: "pt";
|
|
598
|
+
readonly ro: "ro";
|
|
599
|
+
readonly ru: "ru";
|
|
600
|
+
readonly sa: "sa";
|
|
601
|
+
readonly sd: "sd";
|
|
602
|
+
readonly si: "si";
|
|
603
|
+
readonly sk: "sk";
|
|
604
|
+
readonly sl: "sl";
|
|
605
|
+
readonly sn: "sn";
|
|
606
|
+
readonly so: "so";
|
|
607
|
+
readonly sq: "sq";
|
|
608
|
+
readonly sr: "sr";
|
|
609
|
+
readonly su: "su";
|
|
610
|
+
readonly sv: "sv";
|
|
611
|
+
readonly sw: "sw";
|
|
612
|
+
readonly ta: "ta";
|
|
613
|
+
readonly te: "te";
|
|
614
|
+
readonly tg: "tg";
|
|
615
|
+
readonly th: "th";
|
|
616
|
+
readonly tk: "tk";
|
|
617
|
+
readonly tl: "tl";
|
|
618
|
+
readonly tr: "tr";
|
|
619
|
+
readonly tt: "tt";
|
|
620
|
+
readonly uk: "uk";
|
|
621
|
+
readonly ur: "ur";
|
|
622
|
+
readonly uz: "uz";
|
|
623
|
+
readonly vi: "vi";
|
|
624
|
+
readonly yi: "yi";
|
|
625
|
+
readonly yo: "yo";
|
|
626
|
+
readonly zh: "zh";
|
|
627
|
+
};
|
|
628
|
+
|
|
629
|
+
/**
|
|
630
|
+
* Generated by orval v7.9.0 🍺
|
|
631
|
+
* Do not edit manually.
|
|
632
|
+
* Gladia Control API
|
|
633
|
+
* OpenAPI spec version: 1.0
|
|
634
|
+
*/
|
|
635
|
+
|
|
636
|
+
interface LanguageConfig {
|
|
637
|
+
/** If one language is set, it will be used for the transcription. Otherwise, language will be auto-detected by the model. */
|
|
638
|
+
languages?: TranscriptionLanguageCodeEnum[];
|
|
639
|
+
/** If true, language will be auto-detected on each utterance. Otherwise, language will be auto-detected on first utterance and then used for the rest of the transcription. If one language is set, this option will be ignored. */
|
|
640
|
+
code_switching?: boolean;
|
|
641
|
+
}
|
|
642
|
+
|
|
643
|
+
/**
|
|
644
|
+
* Generated by orval v7.9.0 🍺
|
|
645
|
+
* Do not edit manually.
|
|
646
|
+
* Deepgram API Specification
|
|
647
|
+
* APIs for speech-to-text transcription, text-to-speech synthesis, language understanding, and account management.
|
|
648
|
+
|
|
649
|
+
* OpenAPI spec version: 1.0.0
|
|
650
|
+
*/
|
|
651
|
+
type ListenV1EncodingParameter = (typeof ListenV1EncodingParameter)[keyof typeof ListenV1EncodingParameter];
|
|
652
|
+
declare const ListenV1EncodingParameter: {
|
|
653
|
+
readonly linear16: "linear16";
|
|
654
|
+
readonly flac: "flac";
|
|
655
|
+
readonly mulaw: "mulaw";
|
|
656
|
+
readonly "amr-nb": "amr-nb";
|
|
657
|
+
readonly "amr-wb": "amr-wb";
|
|
658
|
+
readonly opus: "opus";
|
|
659
|
+
readonly speex: "speex";
|
|
660
|
+
readonly g729: "g729";
|
|
661
|
+
};
|
|
662
|
+
|
|
663
|
+
/**
|
|
664
|
+
* Generated by orval v7.9.0 🍺
|
|
665
|
+
* Do not edit manually.
|
|
666
|
+
* Deepgram API Specification
|
|
667
|
+
* APIs for speech-to-text transcription, text-to-speech synthesis, language understanding, and account management.
|
|
668
|
+
|
|
669
|
+
* OpenAPI spec version: 1.0.0
|
|
670
|
+
*/
|
|
671
|
+
/**
|
|
672
|
+
* The [BCP-47 language tag](https://tools.ietf.org/html/bcp47) that hints at the primary spoken language. Depending on the Model and API endpoint you choose only certain languages are available
|
|
673
|
+
*/
|
|
674
|
+
type ListenV1LanguageParameter = string;
|
|
675
|
+
|
|
676
|
+
/**
|
|
677
|
+
* Provider-specific streaming option types using OpenAPI-generated schemas
|
|
678
|
+
*
|
|
679
|
+
* These types provide compile-time safety by restricting options to what
|
|
680
|
+
* each provider actually supports according to their OpenAPI specifications.
|
|
681
|
+
*/
|
|
682
|
+
|
|
683
|
+
/**
|
|
684
|
+
* Gladia streaming options (from OpenAPI spec)
|
|
685
|
+
*
|
|
686
|
+
* Based on the generated `StreamingRequest` type from Gladia's OpenAPI spec.
|
|
687
|
+
* All supported encodings, sample rates, and bit depths are from the spec.
|
|
688
|
+
*/
|
|
689
|
+
interface GladiaStreamingOptions {
|
|
690
|
+
/** Audio encoding format - only Gladia-supported formats */
|
|
691
|
+
encoding?: StreamingSupportedEncodingEnum;
|
|
692
|
+
/** Sample rate - only Gladia-supported rates */
|
|
693
|
+
sampleRate?: StreamingSupportedSampleRateEnum;
|
|
694
|
+
/** Bit depth - only Gladia-supported depths */
|
|
695
|
+
bitDepth?: StreamingSupportedBitDepthEnum;
|
|
696
|
+
/** Number of audio channels (1-8) */
|
|
697
|
+
channels?: number;
|
|
698
|
+
/** Endpointing duration in seconds (0.01-10) */
|
|
699
|
+
endpointing?: number;
|
|
700
|
+
/** Language configuration */
|
|
701
|
+
languageConfig?: LanguageConfig;
|
|
702
|
+
/** Interim/partial results */
|
|
703
|
+
interimResults?: boolean;
|
|
704
|
+
}
|
|
705
|
+
/**
|
|
706
|
+
* Deepgram streaming options (from OpenAPI spec)
|
|
707
|
+
*
|
|
708
|
+
* Based on the generated `ListenV1MediaTranscribeParams` type from Deepgram's OpenAPI spec.
|
|
709
|
+
* All supported options come directly from the spec.
|
|
710
|
+
*/
|
|
711
|
+
interface DeepgramStreamingOptions {
|
|
712
|
+
/** Audio encoding format - only Deepgram-supported formats */
|
|
713
|
+
encoding?: ListenV1EncodingParameter;
|
|
714
|
+
/** Sample rate in Hz */
|
|
715
|
+
sampleRate?: number;
|
|
716
|
+
/** Language code (BCP-47 format) */
|
|
717
|
+
language?: ListenV1LanguageParameter;
|
|
718
|
+
/** Enable speaker diarization */
|
|
719
|
+
diarization?: boolean;
|
|
720
|
+
/** Enable language detection */
|
|
721
|
+
languageDetection?: boolean;
|
|
722
|
+
/** Enable punctuation */
|
|
723
|
+
punctuate?: boolean;
|
|
724
|
+
/** Enable smart formatting */
|
|
725
|
+
smartFormat?: boolean;
|
|
726
|
+
/** Enable interim results */
|
|
727
|
+
interimResults?: boolean;
|
|
728
|
+
/** Callback URL for webhooks */
|
|
729
|
+
webhookUrl?: string;
|
|
730
|
+
/** Custom vocabulary/keywords */
|
|
731
|
+
keywords?: string | string[];
|
|
732
|
+
/** Number of audio channels */
|
|
733
|
+
channels?: number;
|
|
734
|
+
}
|
|
735
|
+
/**
|
|
736
|
+
* AssemblyAI streaming options
|
|
737
|
+
*
|
|
738
|
+
* AssemblyAI's streaming API is simpler - it only requires sample_rate.
|
|
739
|
+
* Note: AssemblyAI only supports PCM16 encoding for streaming.
|
|
740
|
+
*/
|
|
741
|
+
interface AssemblyAIStreamingOptions {
|
|
742
|
+
/** Sample rate in Hz (8000 or 16000 recommended) */
|
|
743
|
+
sampleRate?: 8000 | 16000 | 22050 | 44100 | 48000;
|
|
744
|
+
/** Enable word-level timestamps */
|
|
745
|
+
wordTimestamps?: boolean;
|
|
746
|
+
}
|
|
747
|
+
/**
|
|
748
|
+
* Union of all provider-specific streaming options
|
|
749
|
+
*/
|
|
750
|
+
type ProviderStreamingOptions = ({
|
|
751
|
+
provider: "gladia";
|
|
752
|
+
} & GladiaStreamingOptions) | ({
|
|
753
|
+
provider: "deepgram";
|
|
754
|
+
} & DeepgramStreamingOptions) | ({
|
|
755
|
+
provider: "assemblyai";
|
|
756
|
+
} & AssemblyAIStreamingOptions);
|
|
757
|
+
/**
|
|
758
|
+
* Type-safe streaming options for a specific provider
|
|
759
|
+
*/
|
|
760
|
+
type StreamingOptionsForProvider<P extends "gladia" | "deepgram" | "assemblyai"> = P extends "gladia" ? GladiaStreamingOptions : P extends "deepgram" ? DeepgramStreamingOptions : P extends "assemblyai" ? AssemblyAIStreamingOptions : never;
|
|
761
|
+
/**
|
|
762
|
+
* Type-safe transcribeStream parameters for a specific provider
|
|
763
|
+
*/
|
|
764
|
+
interface TranscribeStreamParams<P extends "gladia" | "deepgram" | "assemblyai"> {
|
|
765
|
+
/** Streaming options specific to this provider */
|
|
766
|
+
options?: StreamingOptionsForProvider<P> & {
|
|
767
|
+
provider: P;
|
|
768
|
+
};
|
|
769
|
+
/** Event callbacks */
|
|
770
|
+
callbacks?: StreamingCallbacks;
|
|
771
|
+
}
|
|
772
|
+
|
|
461
773
|
/**
|
|
462
774
|
* Configuration for VoiceRouter
|
|
463
775
|
*/
|
|
@@ -608,41 +920,79 @@ declare class VoiceRouter {
|
|
|
608
920
|
*/
|
|
609
921
|
getTranscript(transcriptId: string, provider: TranscriptionProvider): Promise<UnifiedTranscriptResponse>;
|
|
610
922
|
/**
|
|
611
|
-
* Stream audio for real-time transcription
|
|
612
|
-
* Only works with providers that support streaming
|
|
923
|
+
* Stream audio for real-time transcription with Gladia
|
|
613
924
|
*
|
|
614
|
-
* @param options -
|
|
925
|
+
* @param options - Gladia-specific streaming options (type-safe from OpenAPI spec)
|
|
615
926
|
* @param callbacks - Event callbacks for transcription results
|
|
616
927
|
* @returns Promise that resolves with a StreamingSession
|
|
617
928
|
*
|
|
618
|
-
* @example
|
|
929
|
+
* @example Gladia streaming (type-safe!)
|
|
619
930
|
* ```typescript
|
|
620
|
-
*
|
|
621
|
-
*
|
|
622
|
-
*
|
|
623
|
-
*
|
|
624
|
-
*
|
|
625
|
-
*
|
|
931
|
+
* const session = await router.transcribeStream({
|
|
932
|
+
* provider: 'gladia',
|
|
933
|
+
* encoding: 'wav/pcm', // ✅ Only Gladia encodings allowed
|
|
934
|
+
* sampleRate: 16000, // ✅ Only 8000, 16000, 32000, 44100, 48000
|
|
935
|
+
* channels: 1
|
|
936
|
+
* }, {
|
|
937
|
+
* onTranscript: (event) => console.log(event.text),
|
|
938
|
+
* onError: (error) => console.error(error)
|
|
626
939
|
* });
|
|
940
|
+
* ```
|
|
941
|
+
*/
|
|
942
|
+
transcribeStream(options: GladiaStreamingOptions & {
|
|
943
|
+
provider: "gladia";
|
|
944
|
+
}, callbacks?: StreamingCallbacks): Promise<StreamingSession>;
|
|
945
|
+
/**
|
|
946
|
+
* Stream audio for real-time transcription with Deepgram
|
|
627
947
|
*
|
|
948
|
+
* @param options - Deepgram-specific streaming options (type-safe from OpenAPI spec)
|
|
949
|
+
* @param callbacks - Event callbacks for transcription results
|
|
950
|
+
* @returns Promise that resolves with a StreamingSession
|
|
951
|
+
*
|
|
952
|
+
* @example Deepgram streaming (type-safe!)
|
|
953
|
+
* ```typescript
|
|
628
954
|
* const session = await router.transcribeStream({
|
|
629
955
|
* provider: 'deepgram',
|
|
630
|
-
* encoding: 'linear16',
|
|
956
|
+
* encoding: 'linear16', // ✅ Only Deepgram encodings allowed
|
|
631
957
|
* sampleRate: 16000,
|
|
632
|
-
* language: 'en'
|
|
958
|
+
* language: 'en',
|
|
959
|
+
* diarization: true
|
|
633
960
|
* }, {
|
|
634
|
-
* onTranscript: (event) => console.log(event.text)
|
|
635
|
-
* onError: (error) => console.error(error)
|
|
961
|
+
* onTranscript: (event) => console.log(event.text)
|
|
636
962
|
* });
|
|
963
|
+
* ```
|
|
964
|
+
*/
|
|
965
|
+
transcribeStream(options: DeepgramStreamingOptions & {
|
|
966
|
+
provider: "deepgram";
|
|
967
|
+
}, callbacks?: StreamingCallbacks): Promise<StreamingSession>;
|
|
968
|
+
/**
|
|
969
|
+
* Stream audio for real-time transcription with AssemblyAI
|
|
637
970
|
*
|
|
638
|
-
*
|
|
639
|
-
*
|
|
640
|
-
*
|
|
971
|
+
* @param options - AssemblyAI-specific streaming options (type-safe from OpenAPI spec)
|
|
972
|
+
* @param callbacks - Event callbacks for transcription results
|
|
973
|
+
* @returns Promise that resolves with a StreamingSession
|
|
974
|
+
*
|
|
975
|
+
* @example AssemblyAI streaming (type-safe!)
|
|
976
|
+
* ```typescript
|
|
977
|
+
* const session = await router.transcribeStream({
|
|
978
|
+
* provider: 'assemblyai',
|
|
979
|
+
* sampleRate: 16000 // ✅ Only supported sample rates
|
|
980
|
+
* }, {
|
|
981
|
+
* onTranscript: (event) => console.log(event.text)
|
|
982
|
+
* });
|
|
641
983
|
* ```
|
|
642
984
|
*/
|
|
643
|
-
transcribeStream(options
|
|
644
|
-
provider
|
|
985
|
+
transcribeStream(options: AssemblyAIStreamingOptions & {
|
|
986
|
+
provider: "assemblyai";
|
|
645
987
|
}, callbacks?: StreamingCallbacks): Promise<StreamingSession>;
|
|
988
|
+
/**
|
|
989
|
+
* Stream audio for real-time transcription (uses default provider)
|
|
990
|
+
*
|
|
991
|
+
* @param options - Generic streaming options
|
|
992
|
+
* @param callbacks - Event callbacks for transcription results
|
|
993
|
+
* @returns Promise that resolves with a StreamingSession
|
|
994
|
+
*/
|
|
995
|
+
transcribeStream(options?: StreamingOptions, callbacks?: StreamingCallbacks): Promise<StreamingSession>;
|
|
646
996
|
/**
|
|
647
997
|
* Delete a transcription
|
|
648
998
|
* Not all providers support this operation
|
|
@@ -3293,118 +3643,6 @@ interface NamedEntityRecognitionResult {
|
|
|
3293
3643
|
end: number;
|
|
3294
3644
|
}
|
|
3295
3645
|
|
|
3296
|
-
/**
|
|
3297
|
-
* Generated by orval v7.9.0 🍺
|
|
3298
|
-
* Do not edit manually.
|
|
3299
|
-
* Gladia Control API
|
|
3300
|
-
* OpenAPI spec version: 1.0
|
|
3301
|
-
*/
|
|
3302
|
-
/**
|
|
3303
|
-
* Specify the language in which it will be pronounced when sound comparison occurs. Default to transcription language.
|
|
3304
|
-
*/
|
|
3305
|
-
type TranscriptionLanguageCodeEnum = (typeof TranscriptionLanguageCodeEnum)[keyof typeof TranscriptionLanguageCodeEnum];
|
|
3306
|
-
declare const TranscriptionLanguageCodeEnum: {
|
|
3307
|
-
readonly af: "af";
|
|
3308
|
-
readonly am: "am";
|
|
3309
|
-
readonly ar: "ar";
|
|
3310
|
-
readonly as: "as";
|
|
3311
|
-
readonly az: "az";
|
|
3312
|
-
readonly ba: "ba";
|
|
3313
|
-
readonly be: "be";
|
|
3314
|
-
readonly bg: "bg";
|
|
3315
|
-
readonly bn: "bn";
|
|
3316
|
-
readonly bo: "bo";
|
|
3317
|
-
readonly br: "br";
|
|
3318
|
-
readonly bs: "bs";
|
|
3319
|
-
readonly ca: "ca";
|
|
3320
|
-
readonly cs: "cs";
|
|
3321
|
-
readonly cy: "cy";
|
|
3322
|
-
readonly da: "da";
|
|
3323
|
-
readonly de: "de";
|
|
3324
|
-
readonly el: "el";
|
|
3325
|
-
readonly en: "en";
|
|
3326
|
-
readonly es: "es";
|
|
3327
|
-
readonly et: "et";
|
|
3328
|
-
readonly eu: "eu";
|
|
3329
|
-
readonly fa: "fa";
|
|
3330
|
-
readonly fi: "fi";
|
|
3331
|
-
readonly fo: "fo";
|
|
3332
|
-
readonly fr: "fr";
|
|
3333
|
-
readonly gl: "gl";
|
|
3334
|
-
readonly gu: "gu";
|
|
3335
|
-
readonly ha: "ha";
|
|
3336
|
-
readonly haw: "haw";
|
|
3337
|
-
readonly he: "he";
|
|
3338
|
-
readonly hi: "hi";
|
|
3339
|
-
readonly hr: "hr";
|
|
3340
|
-
readonly ht: "ht";
|
|
3341
|
-
readonly hu: "hu";
|
|
3342
|
-
readonly hy: "hy";
|
|
3343
|
-
readonly id: "id";
|
|
3344
|
-
readonly is: "is";
|
|
3345
|
-
readonly it: "it";
|
|
3346
|
-
readonly ja: "ja";
|
|
3347
|
-
readonly jw: "jw";
|
|
3348
|
-
readonly ka: "ka";
|
|
3349
|
-
readonly kk: "kk";
|
|
3350
|
-
readonly km: "km";
|
|
3351
|
-
readonly kn: "kn";
|
|
3352
|
-
readonly ko: "ko";
|
|
3353
|
-
readonly la: "la";
|
|
3354
|
-
readonly lb: "lb";
|
|
3355
|
-
readonly ln: "ln";
|
|
3356
|
-
readonly lo: "lo";
|
|
3357
|
-
readonly lt: "lt";
|
|
3358
|
-
readonly lv: "lv";
|
|
3359
|
-
readonly mg: "mg";
|
|
3360
|
-
readonly mi: "mi";
|
|
3361
|
-
readonly mk: "mk";
|
|
3362
|
-
readonly ml: "ml";
|
|
3363
|
-
readonly mn: "mn";
|
|
3364
|
-
readonly mr: "mr";
|
|
3365
|
-
readonly ms: "ms";
|
|
3366
|
-
readonly mt: "mt";
|
|
3367
|
-
readonly my: "my";
|
|
3368
|
-
readonly ne: "ne";
|
|
3369
|
-
readonly nl: "nl";
|
|
3370
|
-
readonly nn: "nn";
|
|
3371
|
-
readonly no: "no";
|
|
3372
|
-
readonly oc: "oc";
|
|
3373
|
-
readonly pa: "pa";
|
|
3374
|
-
readonly pl: "pl";
|
|
3375
|
-
readonly ps: "ps";
|
|
3376
|
-
readonly pt: "pt";
|
|
3377
|
-
readonly ro: "ro";
|
|
3378
|
-
readonly ru: "ru";
|
|
3379
|
-
readonly sa: "sa";
|
|
3380
|
-
readonly sd: "sd";
|
|
3381
|
-
readonly si: "si";
|
|
3382
|
-
readonly sk: "sk";
|
|
3383
|
-
readonly sl: "sl";
|
|
3384
|
-
readonly sn: "sn";
|
|
3385
|
-
readonly so: "so";
|
|
3386
|
-
readonly sq: "sq";
|
|
3387
|
-
readonly sr: "sr";
|
|
3388
|
-
readonly su: "su";
|
|
3389
|
-
readonly sv: "sv";
|
|
3390
|
-
readonly sw: "sw";
|
|
3391
|
-
readonly ta: "ta";
|
|
3392
|
-
readonly te: "te";
|
|
3393
|
-
readonly tg: "tg";
|
|
3394
|
-
readonly th: "th";
|
|
3395
|
-
readonly tk: "tk";
|
|
3396
|
-
readonly tl: "tl";
|
|
3397
|
-
readonly tr: "tr";
|
|
3398
|
-
readonly tt: "tt";
|
|
3399
|
-
readonly uk: "uk";
|
|
3400
|
-
readonly ur: "ur";
|
|
3401
|
-
readonly uz: "uz";
|
|
3402
|
-
readonly vi: "vi";
|
|
3403
|
-
readonly yi: "yi";
|
|
3404
|
-
readonly yo: "yo";
|
|
3405
|
-
readonly zh: "zh";
|
|
3406
|
-
};
|
|
3407
|
-
|
|
3408
3646
|
/**
|
|
3409
3647
|
* Generated by orval v7.9.0 🍺
|
|
3410
3648
|
* Do not edit manually.
|
|
@@ -5662,20 +5900,6 @@ type InitTranscriptionRequestCustomMetadata = {
|
|
|
5662
5900
|
[key: string]: unknown;
|
|
5663
5901
|
};
|
|
5664
5902
|
|
|
5665
|
-
/**
|
|
5666
|
-
* Generated by orval v7.9.0 🍺
|
|
5667
|
-
* Do not edit manually.
|
|
5668
|
-
* Gladia Control API
|
|
5669
|
-
* OpenAPI spec version: 1.0
|
|
5670
|
-
*/
|
|
5671
|
-
|
|
5672
|
-
interface LanguageConfig {
|
|
5673
|
-
/** If one language is set, it will be used for the transcription. Otherwise, language will be auto-detected by the model. */
|
|
5674
|
-
languages?: TranscriptionLanguageCodeEnum[];
|
|
5675
|
-
/** If true, language will be auto-detected on each utterance. Otherwise, language will be auto-detected on first utterance and then used for the rest of the transcription. If one language is set, this option will be ignored. */
|
|
5676
|
-
code_switching?: boolean;
|
|
5677
|
-
}
|
|
5678
|
-
|
|
5679
5903
|
/**
|
|
5680
5904
|
* Generated by orval v7.9.0 🍺
|
|
5681
5905
|
* Do not edit manually.
|
|
@@ -6289,44 +6513,6 @@ interface RealtimeProcessingConfig {
|
|
|
6289
6513
|
sentiment_analysis?: boolean;
|
|
6290
6514
|
}
|
|
6291
6515
|
|
|
6292
|
-
/**
|
|
6293
|
-
* Generated by orval v7.9.0 🍺
|
|
6294
|
-
* Do not edit manually.
|
|
6295
|
-
* Gladia Control API
|
|
6296
|
-
* OpenAPI spec version: 1.0
|
|
6297
|
-
*/
|
|
6298
|
-
/**
|
|
6299
|
-
* The bit depth of the audio stream
|
|
6300
|
-
*/
|
|
6301
|
-
type StreamingSupportedBitDepthEnum = (typeof StreamingSupportedBitDepthEnum)[keyof typeof StreamingSupportedBitDepthEnum];
|
|
6302
|
-
declare const StreamingSupportedBitDepthEnum: {
|
|
6303
|
-
readonly NUMBER_8: 8;
|
|
6304
|
-
readonly NUMBER_16: 16;
|
|
6305
|
-
readonly NUMBER_24: 24;
|
|
6306
|
-
readonly NUMBER_32: 32;
|
|
6307
|
-
};
|
|
6308
|
-
|
|
6309
|
-
/**
|
|
6310
|
-
* Generated by orval v7.9.0 🍺
|
|
6311
|
-
* Do not edit manually.
|
|
6312
|
-
* Gladia Control API
|
|
6313
|
-
* OpenAPI spec version: 1.0
|
|
6314
|
-
*/
|
|
6315
|
-
/**
|
|
6316
|
-
* The encoding format of the audio stream. Supported formats:
|
|
6317
|
-
- PCM: 8, 16, 24, and 32 bits
|
|
6318
|
-
- A-law: 8 bits
|
|
6319
|
-
- μ-law: 8 bits
|
|
6320
|
-
|
|
6321
|
-
Note: No need to add WAV headers to raw audio as the API supports both formats.
|
|
6322
|
-
*/
|
|
6323
|
-
type StreamingSupportedEncodingEnum = (typeof StreamingSupportedEncodingEnum)[keyof typeof StreamingSupportedEncodingEnum];
|
|
6324
|
-
declare const StreamingSupportedEncodingEnum: {
|
|
6325
|
-
readonly "wav/pcm": "wav/pcm";
|
|
6326
|
-
readonly "wav/alaw": "wav/alaw";
|
|
6327
|
-
readonly "wav/ulaw": "wav/ulaw";
|
|
6328
|
-
};
|
|
6329
|
-
|
|
6330
6516
|
/**
|
|
6331
6517
|
* Generated by orval v7.9.0 🍺
|
|
6332
6518
|
* Do not edit manually.
|
|
@@ -6341,24 +6527,6 @@ declare const StreamingSupportedModels: {
|
|
|
6341
6527
|
readonly "solaria-1": "solaria-1";
|
|
6342
6528
|
};
|
|
6343
6529
|
|
|
6344
|
-
/**
|
|
6345
|
-
* Generated by orval v7.9.0 🍺
|
|
6346
|
-
* Do not edit manually.
|
|
6347
|
-
* Gladia Control API
|
|
6348
|
-
* OpenAPI spec version: 1.0
|
|
6349
|
-
*/
|
|
6350
|
-
/**
|
|
6351
|
-
* The sample rate of the audio stream
|
|
6352
|
-
*/
|
|
6353
|
-
type StreamingSupportedSampleRateEnum = (typeof StreamingSupportedSampleRateEnum)[keyof typeof StreamingSupportedSampleRateEnum];
|
|
6354
|
-
declare const StreamingSupportedSampleRateEnum: {
|
|
6355
|
-
readonly NUMBER_8000: 8000;
|
|
6356
|
-
readonly NUMBER_16000: 16000;
|
|
6357
|
-
readonly NUMBER_32000: 32000;
|
|
6358
|
-
readonly NUMBER_44100: 44100;
|
|
6359
|
-
readonly NUMBER_48000: 48000;
|
|
6360
|
-
};
|
|
6361
|
-
|
|
6362
6530
|
/**
|
|
6363
6531
|
* Generated by orval v7.9.0 🍺
|
|
6364
6532
|
* Do not edit manually.
|
|
@@ -10914,4 +11082,4 @@ declare namespace index {
|
|
|
10914
11082
|
export { index_AudioIntelligenceModelStatus as AudioIntelligenceModelStatus, type index_AutoHighlightResult as AutoHighlightResult, type index_AutoHighlightsResult as AutoHighlightsResult, type index_BadRequestResponse as BadRequestResponse, type index_CannotAccessUploadedFileResponse as CannotAccessUploadedFileResponse, type index_Chapter as Chapter, type index_ContentSafetyLabel as ContentSafetyLabel, type index_ContentSafetyLabelResult as ContentSafetyLabelResult, type index_ContentSafetyLabelsResult as ContentSafetyLabelsResult, type index_ContentSafetyLabelsResultSeverityScoreSummary as ContentSafetyLabelsResultSeverityScoreSummary, type index_ContentSafetyLabelsResultSummary as ContentSafetyLabelsResultSummary, type index_CreateRealtimeTemporaryTokenParams as CreateRealtimeTemporaryTokenParams, type index_Entity as Entity, index_EntityType as EntityType, type Error$1 as Error, type index_GatewayTimeoutResponse as GatewayTimeoutResponse, type index_GetSubtitlesParams as GetSubtitlesParams, type index_InternalServerErrorResponse as InternalServerErrorResponse, type index_LemurActionItemsParams as LemurActionItemsParams, type index_LemurActionItemsParamsAllOf as LemurActionItemsParamsAllOf, type index_LemurActionItemsResponse as LemurActionItemsResponse, type index_LemurBaseParams as LemurBaseParams, type index_LemurBaseParamsContext as LemurBaseParamsContext, type index_LemurBaseParamsContextOneOf as LemurBaseParamsContextOneOf, type index_LemurBaseParamsFinalModel as LemurBaseParamsFinalModel, type index_LemurBaseResponse as LemurBaseResponse, index_LemurModel as LemurModel, type index_LemurQuestion as LemurQuestion, type index_LemurQuestionAnswer as LemurQuestionAnswer, type index_LemurQuestionAnswerParams as LemurQuestionAnswerParams, type index_LemurQuestionAnswerParamsAllOf as LemurQuestionAnswerParamsAllOf, type index_LemurQuestionAnswerResponse as LemurQuestionAnswerResponse, type index_LemurQuestionAnswerResponseAllOf as LemurQuestionAnswerResponseAllOf, type index_LemurQuestionContext as LemurQuestionContext, type index_LemurQuestionContextOneOf as LemurQuestionContextOneOf, type index_LemurResponse as LemurResponse, type index_LemurStringResponse as LemurStringResponse, type index_LemurStringResponseAllOf as LemurStringResponseAllOf, type index_LemurSummaryParams as LemurSummaryParams, type index_LemurSummaryParamsAllOf as LemurSummaryParamsAllOf, type index_LemurSummaryResponse as LemurSummaryResponse, type index_LemurTaskParams as LemurTaskParams, type index_LemurTaskParamsAllOf as LemurTaskParamsAllOf, type index_LemurTaskResponse as LemurTaskResponse, type index_LemurUsage as LemurUsage, type index_ListTranscriptParams as ListTranscriptParams, type index_ListTranscriptsParams as ListTranscriptsParams, type index_NotFoundResponse as NotFoundResponse, type index_PageDetails as PageDetails, type index_PageDetailsNextUrl as PageDetailsNextUrl, type index_PageDetailsPrevUrl as PageDetailsPrevUrl, type index_ParagraphsResponse as ParagraphsResponse, index_PiiPolicy as PiiPolicy, type index_PurgeLemurRequestDataResponse as PurgeLemurRequestDataResponse, type index_RealtimeTemporaryTokenResponse as RealtimeTemporaryTokenResponse, index_RedactPiiAudioQuality as RedactPiiAudioQuality, type index_RedactedAudioNotification as RedactedAudioNotification, type index_RedactedAudioResponse as RedactedAudioResponse, index_RedactedAudioStatus as RedactedAudioStatus, type index_SentencesResponse as SentencesResponse, index_Sentiment as Sentiment, type index_SentimentAnalysisResult as SentimentAnalysisResult, type index_SentimentAnalysisResultChannel as SentimentAnalysisResultChannel, type index_SentimentAnalysisResultSpeaker as SentimentAnalysisResultSpeaker, type index_ServiceUnavailableResponse as ServiceUnavailableResponse, type index_SeverityScoreSummary as SeverityScoreSummary, index_SpeechModel as SpeechModel, index_SubstitutionPolicy as SubstitutionPolicy, index_SubtitleFormat as SubtitleFormat, index_SummaryModel as SummaryModel, index_SummaryType as SummaryType, type index_Timestamp as Timestamp, type index_TooManyRequestsResponse as TooManyRequestsResponse, type index_TopicDetectionModelResult as TopicDetectionModelResult, type index_TopicDetectionModelResultSummary as TopicDetectionModelResultSummary, type index_TopicDetectionResult as TopicDetectionResult, type index_TopicDetectionResultLabelsItem as TopicDetectionResultLabelsItem, type index_Transcript as Transcript, type index_TranscriptAudioDuration as TranscriptAudioDuration, type index_TranscriptAudioEndAt as TranscriptAudioEndAt, type index_TranscriptAudioStartFrom as TranscriptAudioStartFrom, type index_TranscriptAutoChapters as TranscriptAutoChapters, type index_TranscriptAutoHighlightsResult as TranscriptAutoHighlightsResult, index_TranscriptBoostParam as TranscriptBoostParam, type index_TranscriptBoostParamProperty as TranscriptBoostParamProperty, type index_TranscriptChapters as TranscriptChapters, type index_TranscriptConfidence as TranscriptConfidence, type index_TranscriptContentSafety as TranscriptContentSafety, type index_TranscriptContentSafetyLabels as TranscriptContentSafetyLabels, type index_TranscriptCustomSpelling as TranscriptCustomSpelling, type index_TranscriptCustomSpellingProperty as TranscriptCustomSpellingProperty, type index_TranscriptCustomTopics as TranscriptCustomTopics, type index_TranscriptDisfluencies as TranscriptDisfluencies, type index_TranscriptEntities as TranscriptEntities, type index_TranscriptEntityDetection as TranscriptEntityDetection, type index_TranscriptFilterProfanity as TranscriptFilterProfanity, type index_TranscriptFormatText as TranscriptFormatText, type index_TranscriptIabCategories as TranscriptIabCategories, type index_TranscriptIabCategoriesResult as TranscriptIabCategoriesResult, index_TranscriptLanguageCode as TranscriptLanguageCode, type index_TranscriptLanguageCodeProperty as TranscriptLanguageCodeProperty, type index_TranscriptLanguageConfidence as TranscriptLanguageConfidence, type index_TranscriptLanguageConfidenceThreshold as TranscriptLanguageConfidenceThreshold, type index_TranscriptLanguageDetection as TranscriptLanguageDetection, type index_TranscriptList as TranscriptList, type index_TranscriptListItem as TranscriptListItem, type index_TranscriptListItemCompleted as TranscriptListItemCompleted, type index_TranscriptListItemError as TranscriptListItemError, type index_TranscriptMultichannel as TranscriptMultichannel, type index_TranscriptOptionalParams as TranscriptOptionalParams, type index_TranscriptOptionalParamsLanguageCode as TranscriptOptionalParamsLanguageCode, type index_TranscriptOptionalParamsLanguageCodeOneOf as TranscriptOptionalParamsLanguageCodeOneOf, type index_TranscriptOptionalParamsRedactPiiSub as TranscriptOptionalParamsRedactPiiSub, type index_TranscriptOptionalParamsSpeakersExpected as TranscriptOptionalParamsSpeakersExpected, type index_TranscriptOptionalParamsSpeechModel as TranscriptOptionalParamsSpeechModel, type index_TranscriptOptionalParamsSpeechThreshold as TranscriptOptionalParamsSpeechThreshold, type index_TranscriptOptionalParamsWebhookAuthHeaderName as TranscriptOptionalParamsWebhookAuthHeaderName, type index_TranscriptOptionalParamsWebhookAuthHeaderValue as TranscriptOptionalParamsWebhookAuthHeaderValue, type index_TranscriptParagraph as TranscriptParagraph, type index_TranscriptParams as TranscriptParams, type index_TranscriptParamsAllOf as TranscriptParamsAllOf, type index_TranscriptPunctuate as TranscriptPunctuate, type index_TranscriptReadyNotification as TranscriptReadyNotification, index_TranscriptReadyStatus as TranscriptReadyStatus, type index_TranscriptRedactPiiAudio as TranscriptRedactPiiAudio, type index_TranscriptRedactPiiAudioQuality as TranscriptRedactPiiAudioQuality, type index_TranscriptRedactPiiPolicies as TranscriptRedactPiiPolicies, type index_TranscriptSentence as TranscriptSentence, type index_TranscriptSentenceChannel as TranscriptSentenceChannel, type index_TranscriptSentenceSpeaker as TranscriptSentenceSpeaker, type index_TranscriptSentimentAnalysis as TranscriptSentimentAnalysis, type index_TranscriptSentimentAnalysisResults as TranscriptSentimentAnalysisResults, type index_TranscriptSpeakerLabels as TranscriptSpeakerLabels, type index_TranscriptSpeakersExpected as TranscriptSpeakersExpected, type index_TranscriptSpeechModel as TranscriptSpeechModel, type index_TranscriptSpeechThreshold as TranscriptSpeechThreshold, type index_TranscriptSpeedBoost as TranscriptSpeedBoost, index_TranscriptStatus as TranscriptStatus, type index_TranscriptSummary as TranscriptSummary, type index_TranscriptSummaryModel as TranscriptSummaryModel, type index_TranscriptSummaryType as TranscriptSummaryType, type index_TranscriptText as TranscriptText, type index_TranscriptThrottled as TranscriptThrottled, type index_TranscriptUtterance as TranscriptUtterance, type index_TranscriptUtteranceChannel as TranscriptUtteranceChannel, type index_TranscriptUtterances as TranscriptUtterances, type index_TranscriptWebhookAuthHeaderName as TranscriptWebhookAuthHeaderName, type index_TranscriptWebhookNotification as TranscriptWebhookNotification, type index_TranscriptWebhookStatusCode as TranscriptWebhookStatusCode, type index_TranscriptWebhookUrl as TranscriptWebhookUrl, type index_TranscriptWord as TranscriptWord, type index_TranscriptWordChannel as TranscriptWordChannel, type index_TranscriptWordSpeaker as TranscriptWordSpeaker, type index_TranscriptWords as TranscriptWords, type index_UnauthorizedResponse as UnauthorizedResponse, type index_UploadedFile as UploadedFile, type index_WordSearchMatch as WordSearchMatch, type index_WordSearchParams as WordSearchParams, type index_WordSearchResponse as WordSearchResponse, type index_WordSearchTimestamp as WordSearchTimestamp };
|
|
10915
11083
|
}
|
|
10916
11084
|
|
|
10917
|
-
export { AssemblyAIAdapter, index as AssemblyAITypes, AssemblyAIWebhookHandler, type AudioChunk, type AudioInput, AzureSTTAdapter, AzureWebhookHandler, BaseAdapter, BaseWebhookHandler, DeepgramAdapter, DeepgramWebhookHandler, GladiaAdapter, index$1 as GladiaTypes, GladiaWebhookHandler, OpenAIWhisperAdapter, type ProviderCapabilities, type ProviderConfig, type Speaker, SpeechmaticsAdapter, SpeechmaticsWebhookHandler, type StreamEvent, type StreamEventType, type StreamingCallbacks, type StreamingOptions, type StreamingSession, type TranscribeOptions, type TranscriptionAdapter, type TranscriptionProvider, type TranscriptionStatus, type UnifiedTranscriptResponse, type UnifiedWebhookEvent, type Utterance, VoiceRouter, type VoiceRouterConfig, type WebhookEventType, WebhookRouter, type WebhookRouterOptions, type WebhookRouterResult, type WebhookValidation, type WebhookVerificationOptions, type Word, createAssemblyAIAdapter, createAssemblyAIWebhookHandler, createAzureSTTAdapter, createAzureWebhookHandler, createDeepgramAdapter, createDeepgramWebhookHandler, createGladiaAdapter, createGladiaWebhookHandler, createOpenAIWhisperAdapter, createSpeechmaticsAdapter, createVoiceRouter, createWebhookRouter };
|
|
11085
|
+
export { AssemblyAIAdapter, type AssemblyAIStreamingOptions, index as AssemblyAITypes, AssemblyAIWebhookHandler, type AudioChunk, type AudioInput, AzureSTTAdapter, AzureWebhookHandler, BaseAdapter, BaseWebhookHandler, DeepgramAdapter, type DeepgramStreamingOptions, DeepgramWebhookHandler, GladiaAdapter, type GladiaStreamingOptions, index$1 as GladiaTypes, GladiaWebhookHandler, OpenAIWhisperAdapter, type ProviderCapabilities, type ProviderConfig, type ProviderStreamingOptions, type Speaker, SpeechmaticsAdapter, SpeechmaticsWebhookHandler, type StreamEvent, type StreamEventType, type StreamingCallbacks, type StreamingOptions, type StreamingOptionsForProvider, type StreamingSession, type TranscribeOptions, type TranscribeStreamParams, type TranscriptionAdapter, type TranscriptionProvider, type TranscriptionStatus, type UnifiedTranscriptResponse, type UnifiedWebhookEvent, type Utterance, VoiceRouter, type VoiceRouterConfig, type WebhookEventType, WebhookRouter, type WebhookRouterOptions, type WebhookRouterResult, type WebhookValidation, type WebhookVerificationOptions, type Word, createAssemblyAIAdapter, createAssemblyAIWebhookHandler, createAzureSTTAdapter, createAzureWebhookHandler, createDeepgramAdapter, createDeepgramWebhookHandler, createGladiaAdapter, createGladiaWebhookHandler, createOpenAIWhisperAdapter, createSpeechmaticsAdapter, createVoiceRouter, createWebhookRouter };
|