voice-router-dev 0.2.3 → 0.2.5
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 +177 -26
- package/dist/index.d.ts +177 -26
- package/dist/index.js +169 -3
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +169 -3
- package/dist/index.mjs.map +1 -1
- package/package.json +46 -49
package/dist/index.d.mts
CHANGED
|
@@ -4349,11 +4349,52 @@ interface Transcription {
|
|
|
4349
4349
|
readonly createdDateTime?: string;
|
|
4350
4350
|
}
|
|
4351
4351
|
|
|
4352
|
+
/**
|
|
4353
|
+
* Generated by orval v7.9.0 🍺
|
|
4354
|
+
* Do not edit manually.
|
|
4355
|
+
* Deepgram API Specification
|
|
4356
|
+
* APIs for speech-to-text transcription, text-to-speech synthesis, language understanding, and account management.
|
|
4357
|
+
|
|
4358
|
+
* OpenAPI spec version: 1.0.0
|
|
4359
|
+
*/
|
|
4360
|
+
type ListenV1ModelParameter = "nova-3" | "nova-3-general" | "nova-3-medical" | "nova-2" | "nova-2-general" | "nova-2-meeting" | "nova-2-finance" | "nova-2-conversationalai" | "nova-2-voicemail" | "nova-2-video" | "nova-2-medical" | "nova-2-drivethru" | "nova-2-automotive" | "nova" | "nova-general" | "nova-phonecall" | "nova-medical" | "enhanced" | "enhanced-general" | "enhanced-meeting" | "enhanced-phonecall" | "enhanced-finance" | "base" | "meeting" | "phonecall" | "finance" | "conversationalai" | "voicemail" | "video" | string;
|
|
4361
|
+
|
|
4362
|
+
/**
|
|
4363
|
+
* Generated by orval v7.9.0 🍺
|
|
4364
|
+
* Do not edit manually.
|
|
4365
|
+
* Gladia Control API
|
|
4366
|
+
* OpenAPI spec version: 1.0
|
|
4367
|
+
*/
|
|
4368
|
+
/**
|
|
4369
|
+
* The model used to process the audio. "solaria-1" is used by default.
|
|
4370
|
+
*/
|
|
4371
|
+
type StreamingSupportedModels = (typeof StreamingSupportedModels)[keyof typeof StreamingSupportedModels];
|
|
4372
|
+
declare const StreamingSupportedModels: {
|
|
4373
|
+
readonly "solaria-1": "solaria-1";
|
|
4374
|
+
};
|
|
4375
|
+
|
|
4352
4376
|
/**
|
|
4353
4377
|
* Unified types for the Voice Router SDK
|
|
4354
4378
|
* These types provide a provider-agnostic interface for transcription services
|
|
4355
4379
|
*/
|
|
4356
4380
|
|
|
4381
|
+
/**
|
|
4382
|
+
* Speechmatics operating point (model) type
|
|
4383
|
+
* Manually defined as Speechmatics OpenAPI spec doesn't export this cleanly
|
|
4384
|
+
*/
|
|
4385
|
+
type SpeechmaticsOperatingPoint = "standard" | "enhanced";
|
|
4386
|
+
/**
|
|
4387
|
+
* Unified transcription model type with autocomplete for all providers
|
|
4388
|
+
*
|
|
4389
|
+
* Includes all known models from:
|
|
4390
|
+
* - Deepgram: nova-3, nova-2, enhanced, base, whisper, etc.
|
|
4391
|
+
* - AssemblyAI: best, slam-1, universal
|
|
4392
|
+
* - Gladia: solaria-1
|
|
4393
|
+
* - Speechmatics: standard, enhanced
|
|
4394
|
+
*
|
|
4395
|
+
* Also accepts any string for future/custom models.
|
|
4396
|
+
*/
|
|
4397
|
+
type TranscriptionModel = ListenV1ModelParameter | StreamingSupportedModels | SpeechModel | SpeechmaticsOperatingPoint;
|
|
4357
4398
|
/**
|
|
4358
4399
|
* Supported transcription providers
|
|
4359
4400
|
*/
|
|
@@ -4411,6 +4452,18 @@ type AudioInput = {
|
|
|
4411
4452
|
* Common transcription options across all providers
|
|
4412
4453
|
*/
|
|
4413
4454
|
interface TranscribeOptions {
|
|
4455
|
+
/**
|
|
4456
|
+
* Model to use for transcription (provider-specific)
|
|
4457
|
+
*
|
|
4458
|
+
* Type-safe model selection derived from OpenAPI specs:
|
|
4459
|
+
* - Deepgram: 'nova-3', 'nova-2', 'enhanced', 'base', etc.
|
|
4460
|
+
* - AssemblyAI: 'best', 'slam-1', 'universal'
|
|
4461
|
+
* - Speechmatics: 'standard', 'enhanced' (operating point)
|
|
4462
|
+
* - Gladia: 'solaria-1' (streaming only)
|
|
4463
|
+
*
|
|
4464
|
+
* @see TranscriptionModel for full list of available models
|
|
4465
|
+
*/
|
|
4466
|
+
model?: TranscriptionModel;
|
|
4414
4467
|
/** Language code (e.g., 'en', 'en-US', 'es') */
|
|
4415
4468
|
language?: string;
|
|
4416
4469
|
/** Enable automatic language detection */
|
|
@@ -4656,6 +4709,19 @@ interface StreamingOptions extends Omit<TranscribeOptions, "webhookUrl"> {
|
|
|
4656
4709
|
endpointing?: number;
|
|
4657
4710
|
/** Maximum duration without endpointing in seconds */
|
|
4658
4711
|
maxSilence?: number;
|
|
4712
|
+
/**
|
|
4713
|
+
* Model to use for transcription (provider-specific)
|
|
4714
|
+
*
|
|
4715
|
+
* Type-safe with autocomplete for all known models:
|
|
4716
|
+
* - Deepgram: 'nova-2', 'nova-3', 'base', 'enhanced', 'whisper-large', etc.
|
|
4717
|
+
* - Gladia: 'solaria-1' (default)
|
|
4718
|
+
* - AssemblyAI: Not applicable (uses Universal-2 automatically)
|
|
4719
|
+
*
|
|
4720
|
+
* @example
|
|
4721
|
+
* // Use Nova-2 for better multilingual support
|
|
4722
|
+
* { model: 'nova-2', language: 'fr' }
|
|
4723
|
+
*/
|
|
4724
|
+
model?: TranscriptionModel;
|
|
4659
4725
|
}
|
|
4660
4726
|
/**
|
|
4661
4727
|
* Callback functions for streaming events
|
|
@@ -4978,6 +5044,9 @@ declare const StreamingSupportedBitDepthEnum: {
|
|
|
4978
5044
|
/**
|
|
4979
5045
|
* ListenV1EncodingParameter type definition
|
|
4980
5046
|
*/
|
|
5047
|
+
/**
|
|
5048
|
+
* ListenV1EncodingParameter type definition
|
|
5049
|
+
*/
|
|
4981
5050
|
type ListenV1EncodingParameter = typeof ListenV1EncodingParameter[keyof typeof ListenV1EncodingParameter];
|
|
4982
5051
|
declare const ListenV1EncodingParameter: {
|
|
4983
5052
|
readonly linear16: "linear16";
|
|
@@ -5001,16 +5070,6 @@ declare const ListenV1EncodingParameter: {
|
|
|
5001
5070
|
*/
|
|
5002
5071
|
type ListenV1LanguageParameter = string;
|
|
5003
5072
|
|
|
5004
|
-
/**
|
|
5005
|
-
* Generated by orval v7.9.0 🍺
|
|
5006
|
-
* Do not edit manually.
|
|
5007
|
-
* Deepgram API Specification
|
|
5008
|
-
* APIs for speech-to-text transcription, text-to-speech synthesis, language understanding, and account management.
|
|
5009
|
-
|
|
5010
|
-
* OpenAPI spec version: 1.0.0
|
|
5011
|
-
*/
|
|
5012
|
-
type ListenV1ModelParameter = "nova-3" | "nova-3-general" | "nova-3-medical" | "nova-2" | "nova-2-general" | "nova-2-meeting" | "nova-2-finance" | "nova-2-conversationalai" | "nova-2-voicemail" | "nova-2-video" | "nova-2-medical" | "nova-2-drivethru" | "nova-2-automotive" | "nova" | "nova-general" | "nova-phonecall" | "nova-medical" | "enhanced" | "enhanced-general" | "enhanced-meeting" | "enhanced-phonecall" | "enhanced-finance" | "base" | "meeting" | "phonecall" | "finance" | "conversationalai" | "voicemail" | "video" | string;
|
|
5013
|
-
|
|
5014
5073
|
/**
|
|
5015
5074
|
* Generated by orval v7.9.0 🍺
|
|
5016
5075
|
* Do not edit manually.
|
|
@@ -5409,6 +5468,9 @@ declare function createVoiceRouter(config: VoiceRouterConfig, adapters?: Transcr
|
|
|
5409
5468
|
/**
|
|
5410
5469
|
* SpeakV1EncodingParameter type definition
|
|
5411
5470
|
*/
|
|
5471
|
+
/**
|
|
5472
|
+
* SpeakV1EncodingParameter type definition
|
|
5473
|
+
*/
|
|
5412
5474
|
type SpeakV1EncodingParameter = typeof SpeakV1EncodingParameter[keyof typeof SpeakV1EncodingParameter];
|
|
5413
5475
|
declare const SpeakV1EncodingParameter: {
|
|
5414
5476
|
readonly linear16: "linear16";
|
|
@@ -5446,6 +5508,9 @@ declare const SpeakV1EncodingParameter: {
|
|
|
5446
5508
|
/**
|
|
5447
5509
|
* SpeakV1ContainerParameter type definition
|
|
5448
5510
|
*/
|
|
5511
|
+
/**
|
|
5512
|
+
* SpeakV1ContainerParameter type definition
|
|
5513
|
+
*/
|
|
5449
5514
|
type SpeakV1ContainerParameter = typeof SpeakV1ContainerParameter[keyof typeof SpeakV1ContainerParameter];
|
|
5450
5515
|
declare const SpeakV1ContainerParameter: {
|
|
5451
5516
|
readonly none: "none";
|
|
@@ -5482,6 +5547,9 @@ declare const SpeakV1ContainerParameter: {
|
|
|
5482
5547
|
/**
|
|
5483
5548
|
* SpeakV1SampleRateParameter type definition
|
|
5484
5549
|
*/
|
|
5550
|
+
/**
|
|
5551
|
+
* SpeakV1SampleRateParameter type definition
|
|
5552
|
+
*/
|
|
5485
5553
|
type SpeakV1SampleRateParameter = typeof SpeakV1SampleRateParameter[keyof typeof SpeakV1SampleRateParameter];
|
|
5486
5554
|
declare const SpeakV1SampleRateParameter: {
|
|
5487
5555
|
readonly NUMBER_16000: 16000;
|
|
@@ -5685,8 +5753,33 @@ declare class GladiaAdapter extends BaseAdapter {
|
|
|
5685
5753
|
*/
|
|
5686
5754
|
private extractUtterances;
|
|
5687
5755
|
/**
|
|
5688
|
-
*
|
|
5756
|
+
* Delete a transcription job and its associated data
|
|
5757
|
+
*
|
|
5758
|
+
* Removes the transcription data from Gladia's servers. This action is
|
|
5759
|
+
* irreversible. Supports both pre-recorded and streaming job IDs.
|
|
5760
|
+
*
|
|
5761
|
+
* @param transcriptId - The ID of the transcript/job to delete
|
|
5762
|
+
* @param jobType - Type of job: 'pre-recorded' or 'streaming' (defaults to 'pre-recorded')
|
|
5763
|
+
* @returns Promise with success status
|
|
5764
|
+
*
|
|
5765
|
+
* @example Delete a pre-recorded transcript
|
|
5766
|
+
* ```typescript
|
|
5767
|
+
* const result = await adapter.deleteTranscript('abc123');
|
|
5768
|
+
* if (result.success) {
|
|
5769
|
+
* console.log('Transcript deleted successfully');
|
|
5770
|
+
* }
|
|
5771
|
+
* ```
|
|
5772
|
+
*
|
|
5773
|
+
* @example Delete a streaming job
|
|
5774
|
+
* ```typescript
|
|
5775
|
+
* const result = await adapter.deleteTranscript('stream-456', 'streaming');
|
|
5776
|
+
* ```
|
|
5777
|
+
*
|
|
5778
|
+
* @see https://docs.gladia.io/
|
|
5689
5779
|
*/
|
|
5780
|
+
deleteTranscript(transcriptId: string, jobType?: "pre-recorded" | "streaming"): Promise<{
|
|
5781
|
+
success: boolean;
|
|
5782
|
+
}>;
|
|
5690
5783
|
/**
|
|
5691
5784
|
* Stream audio for real-time transcription
|
|
5692
5785
|
*
|
|
@@ -5875,6 +5968,29 @@ declare class AssemblyAIAdapter extends BaseAdapter {
|
|
|
5875
5968
|
* Get transcription result by ID
|
|
5876
5969
|
*/
|
|
5877
5970
|
getTranscript(transcriptId: string): Promise<UnifiedTranscriptResponse>;
|
|
5971
|
+
/**
|
|
5972
|
+
* Delete a transcription and its associated data
|
|
5973
|
+
*
|
|
5974
|
+
* Removes the transcription data from AssemblyAI's servers. This action
|
|
5975
|
+
* is irreversible. The transcript will be marked as deleted and its
|
|
5976
|
+
* content will no longer be accessible.
|
|
5977
|
+
*
|
|
5978
|
+
* @param transcriptId - The ID of the transcript to delete
|
|
5979
|
+
* @returns Promise with success status
|
|
5980
|
+
*
|
|
5981
|
+
* @example Delete a transcript
|
|
5982
|
+
* ```typescript
|
|
5983
|
+
* const result = await adapter.deleteTranscript('abc123');
|
|
5984
|
+
* if (result.success) {
|
|
5985
|
+
* console.log('Transcript deleted successfully');
|
|
5986
|
+
* }
|
|
5987
|
+
* ```
|
|
5988
|
+
*
|
|
5989
|
+
* @see https://www.assemblyai.com/docs/api-reference/transcripts/delete
|
|
5990
|
+
*/
|
|
5991
|
+
deleteTranscript(transcriptId: string): Promise<{
|
|
5992
|
+
success: boolean;
|
|
5993
|
+
}>;
|
|
5878
5994
|
/**
|
|
5879
5995
|
* Build AssemblyAI transcription request from unified options
|
|
5880
5996
|
*/
|
|
@@ -6245,6 +6361,27 @@ declare class AzureSTTAdapter extends BaseAdapter {
|
|
|
6245
6361
|
* @returns Transcription response with status and results
|
|
6246
6362
|
*/
|
|
6247
6363
|
getTranscript(transcriptId: string): Promise<UnifiedTranscriptResponse>;
|
|
6364
|
+
/**
|
|
6365
|
+
* Delete a transcription and its associated data
|
|
6366
|
+
*
|
|
6367
|
+
* Removes the transcription from Azure's servers. This action is irreversible.
|
|
6368
|
+
*
|
|
6369
|
+
* @param transcriptId - The ID of the transcription to delete
|
|
6370
|
+
* @returns Promise with success status
|
|
6371
|
+
*
|
|
6372
|
+
* @example Delete a transcription
|
|
6373
|
+
* ```typescript
|
|
6374
|
+
* const result = await adapter.deleteTranscript('abc123-def456');
|
|
6375
|
+
* if (result.success) {
|
|
6376
|
+
* console.log('Transcription deleted successfully');
|
|
6377
|
+
* }
|
|
6378
|
+
* ```
|
|
6379
|
+
*
|
|
6380
|
+
* @see https://learn.microsoft.com/azure/cognitive-services/speech-service/batch-transcription
|
|
6381
|
+
*/
|
|
6382
|
+
deleteTranscript(transcriptId: string): Promise<{
|
|
6383
|
+
success: boolean;
|
|
6384
|
+
}>;
|
|
6248
6385
|
/**
|
|
6249
6386
|
* Build Azure-specific transcription properties
|
|
6250
6387
|
*/
|
|
@@ -6514,6 +6651,34 @@ declare class SpeechmaticsAdapter extends BaseAdapter {
|
|
|
6514
6651
|
* @returns Transcription response with status and results
|
|
6515
6652
|
*/
|
|
6516
6653
|
getTranscript(transcriptId: string): Promise<UnifiedTranscriptResponse>;
|
|
6654
|
+
/**
|
|
6655
|
+
* Delete a transcription job and its associated data
|
|
6656
|
+
*
|
|
6657
|
+
* Removes the job and all associated resources from Speechmatics' servers.
|
|
6658
|
+
* This action is irreversible.
|
|
6659
|
+
*
|
|
6660
|
+
* @param transcriptId - The job ID to delete
|
|
6661
|
+
* @param force - Force delete even if job is still running (default: false)
|
|
6662
|
+
* @returns Promise with success status
|
|
6663
|
+
*
|
|
6664
|
+
* @example Delete a completed job
|
|
6665
|
+
* ```typescript
|
|
6666
|
+
* const result = await adapter.deleteTranscript('job-abc123');
|
|
6667
|
+
* if (result.success) {
|
|
6668
|
+
* console.log('Job deleted successfully');
|
|
6669
|
+
* }
|
|
6670
|
+
* ```
|
|
6671
|
+
*
|
|
6672
|
+
* @example Force delete a running job
|
|
6673
|
+
* ```typescript
|
|
6674
|
+
* const result = await adapter.deleteTranscript('job-abc123', true);
|
|
6675
|
+
* ```
|
|
6676
|
+
*
|
|
6677
|
+
* @see https://docs.speechmatics.com/
|
|
6678
|
+
*/
|
|
6679
|
+
deleteTranscript(transcriptId: string, force?: boolean): Promise<{
|
|
6680
|
+
success: boolean;
|
|
6681
|
+
}>;
|
|
6517
6682
|
/**
|
|
6518
6683
|
* Normalize Speechmatics status to unified status
|
|
6519
6684
|
*/
|
|
@@ -9584,20 +9749,6 @@ interface RealtimeProcessingConfig {
|
|
|
9584
9749
|
sentiment_analysis?: boolean;
|
|
9585
9750
|
}
|
|
9586
9751
|
|
|
9587
|
-
/**
|
|
9588
|
-
* Generated by orval v7.9.0 🍺
|
|
9589
|
-
* Do not edit manually.
|
|
9590
|
-
* Gladia Control API
|
|
9591
|
-
* OpenAPI spec version: 1.0
|
|
9592
|
-
*/
|
|
9593
|
-
/**
|
|
9594
|
-
* The model used to process the audio. "solaria-1" is used by default.
|
|
9595
|
-
*/
|
|
9596
|
-
type StreamingSupportedModels = (typeof StreamingSupportedModels)[keyof typeof StreamingSupportedModels];
|
|
9597
|
-
declare const StreamingSupportedModels: {
|
|
9598
|
-
readonly "solaria-1": "solaria-1";
|
|
9599
|
-
};
|
|
9600
|
-
|
|
9601
9752
|
/**
|
|
9602
9753
|
* Generated by orval v7.9.0 🍺
|
|
9603
9754
|
* Do not edit manually.
|
|
@@ -12558,4 +12709,4 @@ declare namespace index {
|
|
|
12558
12709
|
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 SentimentAnalysisResult$1 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 };
|
|
12559
12710
|
}
|
|
12560
12711
|
|
|
12561
|
-
export { AssemblyAIAdapter, type AssemblyAIStreamingOptions, index as AssemblyAITypes, AssemblyAIWebhookHandler, type AudioChunk, type AudioInput, AudioResponseFormat, AudioTranscriptionModel, AzureSTTAdapter, AzureWebhookHandler, BaseAdapter, BaseWebhookHandler, type BatchOnlyProvider, DeepgramAdapter, type DeepgramStreamingOptions, DeepgramWebhookHandler, GladiaAdapter, type GladiaStreamingOptions, index$1 as GladiaTypes, GladiaWebhookHandler, ListenV1EncodingParameter, type ListenV1LanguageParameter, type ListenV1ModelParameter, type ListenV1VersionParameter, OpenAIWhisperAdapter, type ProviderCapabilities, type ProviderConfig, type ProviderRawResponseMap, type ProviderStreamingOptions, type SessionStatus, SpeakV1ContainerParameter, SpeakV1EncodingParameter, SpeakV1SampleRateParameter, type Speaker, SpeechmaticsAdapter, SpeechmaticsWebhookHandler, type StreamEvent, type StreamEventType, type StreamingCallbacks, type StreamingOptions, type StreamingOptionsForProvider, type StreamingProvider, type StreamingSession, StreamingSupportedBitDepthEnum, StreamingSupportedEncodingEnum, StreamingSupportedSampleRateEnum, 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 };
|
|
12712
|
+
export { AssemblyAIAdapter, type AssemblyAIStreamingOptions, index as AssemblyAITypes, AssemblyAIWebhookHandler, type AudioChunk, type AudioInput, AudioResponseFormat, AudioTranscriptionModel, AzureSTTAdapter, AzureWebhookHandler, BaseAdapter, BaseWebhookHandler, type BatchOnlyProvider, DeepgramAdapter, type DeepgramStreamingOptions, DeepgramWebhookHandler, GladiaAdapter, type GladiaStreamingOptions, index$1 as GladiaTypes, GladiaWebhookHandler, ListenV1EncodingParameter, type ListenV1LanguageParameter, type ListenV1ModelParameter, type ListenV1VersionParameter, OpenAIWhisperAdapter, type ProviderCapabilities, type ProviderConfig, type ProviderRawResponseMap, type ProviderStreamingOptions, type SessionStatus, SpeakV1ContainerParameter, SpeakV1EncodingParameter, SpeakV1SampleRateParameter, type Speaker, SpeechmaticsAdapter, type SpeechmaticsOperatingPoint, SpeechmaticsWebhookHandler, type StreamEvent, type StreamEventType, type StreamingCallbacks, type StreamingOptions, type StreamingOptionsForProvider, type StreamingProvider, type StreamingSession, StreamingSupportedBitDepthEnum, StreamingSupportedEncodingEnum, StreamingSupportedSampleRateEnum, type TranscribeOptions, type TranscribeStreamParams, type TranscriptionAdapter, type TranscriptionModel, 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 };
|
package/dist/index.d.ts
CHANGED
|
@@ -4349,11 +4349,52 @@ interface Transcription {
|
|
|
4349
4349
|
readonly createdDateTime?: string;
|
|
4350
4350
|
}
|
|
4351
4351
|
|
|
4352
|
+
/**
|
|
4353
|
+
* Generated by orval v7.9.0 🍺
|
|
4354
|
+
* Do not edit manually.
|
|
4355
|
+
* Deepgram API Specification
|
|
4356
|
+
* APIs for speech-to-text transcription, text-to-speech synthesis, language understanding, and account management.
|
|
4357
|
+
|
|
4358
|
+
* OpenAPI spec version: 1.0.0
|
|
4359
|
+
*/
|
|
4360
|
+
type ListenV1ModelParameter = "nova-3" | "nova-3-general" | "nova-3-medical" | "nova-2" | "nova-2-general" | "nova-2-meeting" | "nova-2-finance" | "nova-2-conversationalai" | "nova-2-voicemail" | "nova-2-video" | "nova-2-medical" | "nova-2-drivethru" | "nova-2-automotive" | "nova" | "nova-general" | "nova-phonecall" | "nova-medical" | "enhanced" | "enhanced-general" | "enhanced-meeting" | "enhanced-phonecall" | "enhanced-finance" | "base" | "meeting" | "phonecall" | "finance" | "conversationalai" | "voicemail" | "video" | string;
|
|
4361
|
+
|
|
4362
|
+
/**
|
|
4363
|
+
* Generated by orval v7.9.0 🍺
|
|
4364
|
+
* Do not edit manually.
|
|
4365
|
+
* Gladia Control API
|
|
4366
|
+
* OpenAPI spec version: 1.0
|
|
4367
|
+
*/
|
|
4368
|
+
/**
|
|
4369
|
+
* The model used to process the audio. "solaria-1" is used by default.
|
|
4370
|
+
*/
|
|
4371
|
+
type StreamingSupportedModels = (typeof StreamingSupportedModels)[keyof typeof StreamingSupportedModels];
|
|
4372
|
+
declare const StreamingSupportedModels: {
|
|
4373
|
+
readonly "solaria-1": "solaria-1";
|
|
4374
|
+
};
|
|
4375
|
+
|
|
4352
4376
|
/**
|
|
4353
4377
|
* Unified types for the Voice Router SDK
|
|
4354
4378
|
* These types provide a provider-agnostic interface for transcription services
|
|
4355
4379
|
*/
|
|
4356
4380
|
|
|
4381
|
+
/**
|
|
4382
|
+
* Speechmatics operating point (model) type
|
|
4383
|
+
* Manually defined as Speechmatics OpenAPI spec doesn't export this cleanly
|
|
4384
|
+
*/
|
|
4385
|
+
type SpeechmaticsOperatingPoint = "standard" | "enhanced";
|
|
4386
|
+
/**
|
|
4387
|
+
* Unified transcription model type with autocomplete for all providers
|
|
4388
|
+
*
|
|
4389
|
+
* Includes all known models from:
|
|
4390
|
+
* - Deepgram: nova-3, nova-2, enhanced, base, whisper, etc.
|
|
4391
|
+
* - AssemblyAI: best, slam-1, universal
|
|
4392
|
+
* - Gladia: solaria-1
|
|
4393
|
+
* - Speechmatics: standard, enhanced
|
|
4394
|
+
*
|
|
4395
|
+
* Also accepts any string for future/custom models.
|
|
4396
|
+
*/
|
|
4397
|
+
type TranscriptionModel = ListenV1ModelParameter | StreamingSupportedModels | SpeechModel | SpeechmaticsOperatingPoint;
|
|
4357
4398
|
/**
|
|
4358
4399
|
* Supported transcription providers
|
|
4359
4400
|
*/
|
|
@@ -4411,6 +4452,18 @@ type AudioInput = {
|
|
|
4411
4452
|
* Common transcription options across all providers
|
|
4412
4453
|
*/
|
|
4413
4454
|
interface TranscribeOptions {
|
|
4455
|
+
/**
|
|
4456
|
+
* Model to use for transcription (provider-specific)
|
|
4457
|
+
*
|
|
4458
|
+
* Type-safe model selection derived from OpenAPI specs:
|
|
4459
|
+
* - Deepgram: 'nova-3', 'nova-2', 'enhanced', 'base', etc.
|
|
4460
|
+
* - AssemblyAI: 'best', 'slam-1', 'universal'
|
|
4461
|
+
* - Speechmatics: 'standard', 'enhanced' (operating point)
|
|
4462
|
+
* - Gladia: 'solaria-1' (streaming only)
|
|
4463
|
+
*
|
|
4464
|
+
* @see TranscriptionModel for full list of available models
|
|
4465
|
+
*/
|
|
4466
|
+
model?: TranscriptionModel;
|
|
4414
4467
|
/** Language code (e.g., 'en', 'en-US', 'es') */
|
|
4415
4468
|
language?: string;
|
|
4416
4469
|
/** Enable automatic language detection */
|
|
@@ -4656,6 +4709,19 @@ interface StreamingOptions extends Omit<TranscribeOptions, "webhookUrl"> {
|
|
|
4656
4709
|
endpointing?: number;
|
|
4657
4710
|
/** Maximum duration without endpointing in seconds */
|
|
4658
4711
|
maxSilence?: number;
|
|
4712
|
+
/**
|
|
4713
|
+
* Model to use for transcription (provider-specific)
|
|
4714
|
+
*
|
|
4715
|
+
* Type-safe with autocomplete for all known models:
|
|
4716
|
+
* - Deepgram: 'nova-2', 'nova-3', 'base', 'enhanced', 'whisper-large', etc.
|
|
4717
|
+
* - Gladia: 'solaria-1' (default)
|
|
4718
|
+
* - AssemblyAI: Not applicable (uses Universal-2 automatically)
|
|
4719
|
+
*
|
|
4720
|
+
* @example
|
|
4721
|
+
* // Use Nova-2 for better multilingual support
|
|
4722
|
+
* { model: 'nova-2', language: 'fr' }
|
|
4723
|
+
*/
|
|
4724
|
+
model?: TranscriptionModel;
|
|
4659
4725
|
}
|
|
4660
4726
|
/**
|
|
4661
4727
|
* Callback functions for streaming events
|
|
@@ -4978,6 +5044,9 @@ declare const StreamingSupportedBitDepthEnum: {
|
|
|
4978
5044
|
/**
|
|
4979
5045
|
* ListenV1EncodingParameter type definition
|
|
4980
5046
|
*/
|
|
5047
|
+
/**
|
|
5048
|
+
* ListenV1EncodingParameter type definition
|
|
5049
|
+
*/
|
|
4981
5050
|
type ListenV1EncodingParameter = typeof ListenV1EncodingParameter[keyof typeof ListenV1EncodingParameter];
|
|
4982
5051
|
declare const ListenV1EncodingParameter: {
|
|
4983
5052
|
readonly linear16: "linear16";
|
|
@@ -5001,16 +5070,6 @@ declare const ListenV1EncodingParameter: {
|
|
|
5001
5070
|
*/
|
|
5002
5071
|
type ListenV1LanguageParameter = string;
|
|
5003
5072
|
|
|
5004
|
-
/**
|
|
5005
|
-
* Generated by orval v7.9.0 🍺
|
|
5006
|
-
* Do not edit manually.
|
|
5007
|
-
* Deepgram API Specification
|
|
5008
|
-
* APIs for speech-to-text transcription, text-to-speech synthesis, language understanding, and account management.
|
|
5009
|
-
|
|
5010
|
-
* OpenAPI spec version: 1.0.0
|
|
5011
|
-
*/
|
|
5012
|
-
type ListenV1ModelParameter = "nova-3" | "nova-3-general" | "nova-3-medical" | "nova-2" | "nova-2-general" | "nova-2-meeting" | "nova-2-finance" | "nova-2-conversationalai" | "nova-2-voicemail" | "nova-2-video" | "nova-2-medical" | "nova-2-drivethru" | "nova-2-automotive" | "nova" | "nova-general" | "nova-phonecall" | "nova-medical" | "enhanced" | "enhanced-general" | "enhanced-meeting" | "enhanced-phonecall" | "enhanced-finance" | "base" | "meeting" | "phonecall" | "finance" | "conversationalai" | "voicemail" | "video" | string;
|
|
5013
|
-
|
|
5014
5073
|
/**
|
|
5015
5074
|
* Generated by orval v7.9.0 🍺
|
|
5016
5075
|
* Do not edit manually.
|
|
@@ -5409,6 +5468,9 @@ declare function createVoiceRouter(config: VoiceRouterConfig, adapters?: Transcr
|
|
|
5409
5468
|
/**
|
|
5410
5469
|
* SpeakV1EncodingParameter type definition
|
|
5411
5470
|
*/
|
|
5471
|
+
/**
|
|
5472
|
+
* SpeakV1EncodingParameter type definition
|
|
5473
|
+
*/
|
|
5412
5474
|
type SpeakV1EncodingParameter = typeof SpeakV1EncodingParameter[keyof typeof SpeakV1EncodingParameter];
|
|
5413
5475
|
declare const SpeakV1EncodingParameter: {
|
|
5414
5476
|
readonly linear16: "linear16";
|
|
@@ -5446,6 +5508,9 @@ declare const SpeakV1EncodingParameter: {
|
|
|
5446
5508
|
/**
|
|
5447
5509
|
* SpeakV1ContainerParameter type definition
|
|
5448
5510
|
*/
|
|
5511
|
+
/**
|
|
5512
|
+
* SpeakV1ContainerParameter type definition
|
|
5513
|
+
*/
|
|
5449
5514
|
type SpeakV1ContainerParameter = typeof SpeakV1ContainerParameter[keyof typeof SpeakV1ContainerParameter];
|
|
5450
5515
|
declare const SpeakV1ContainerParameter: {
|
|
5451
5516
|
readonly none: "none";
|
|
@@ -5482,6 +5547,9 @@ declare const SpeakV1ContainerParameter: {
|
|
|
5482
5547
|
/**
|
|
5483
5548
|
* SpeakV1SampleRateParameter type definition
|
|
5484
5549
|
*/
|
|
5550
|
+
/**
|
|
5551
|
+
* SpeakV1SampleRateParameter type definition
|
|
5552
|
+
*/
|
|
5485
5553
|
type SpeakV1SampleRateParameter = typeof SpeakV1SampleRateParameter[keyof typeof SpeakV1SampleRateParameter];
|
|
5486
5554
|
declare const SpeakV1SampleRateParameter: {
|
|
5487
5555
|
readonly NUMBER_16000: 16000;
|
|
@@ -5685,8 +5753,33 @@ declare class GladiaAdapter extends BaseAdapter {
|
|
|
5685
5753
|
*/
|
|
5686
5754
|
private extractUtterances;
|
|
5687
5755
|
/**
|
|
5688
|
-
*
|
|
5756
|
+
* Delete a transcription job and its associated data
|
|
5757
|
+
*
|
|
5758
|
+
* Removes the transcription data from Gladia's servers. This action is
|
|
5759
|
+
* irreversible. Supports both pre-recorded and streaming job IDs.
|
|
5760
|
+
*
|
|
5761
|
+
* @param transcriptId - The ID of the transcript/job to delete
|
|
5762
|
+
* @param jobType - Type of job: 'pre-recorded' or 'streaming' (defaults to 'pre-recorded')
|
|
5763
|
+
* @returns Promise with success status
|
|
5764
|
+
*
|
|
5765
|
+
* @example Delete a pre-recorded transcript
|
|
5766
|
+
* ```typescript
|
|
5767
|
+
* const result = await adapter.deleteTranscript('abc123');
|
|
5768
|
+
* if (result.success) {
|
|
5769
|
+
* console.log('Transcript deleted successfully');
|
|
5770
|
+
* }
|
|
5771
|
+
* ```
|
|
5772
|
+
*
|
|
5773
|
+
* @example Delete a streaming job
|
|
5774
|
+
* ```typescript
|
|
5775
|
+
* const result = await adapter.deleteTranscript('stream-456', 'streaming');
|
|
5776
|
+
* ```
|
|
5777
|
+
*
|
|
5778
|
+
* @see https://docs.gladia.io/
|
|
5689
5779
|
*/
|
|
5780
|
+
deleteTranscript(transcriptId: string, jobType?: "pre-recorded" | "streaming"): Promise<{
|
|
5781
|
+
success: boolean;
|
|
5782
|
+
}>;
|
|
5690
5783
|
/**
|
|
5691
5784
|
* Stream audio for real-time transcription
|
|
5692
5785
|
*
|
|
@@ -5875,6 +5968,29 @@ declare class AssemblyAIAdapter extends BaseAdapter {
|
|
|
5875
5968
|
* Get transcription result by ID
|
|
5876
5969
|
*/
|
|
5877
5970
|
getTranscript(transcriptId: string): Promise<UnifiedTranscriptResponse>;
|
|
5971
|
+
/**
|
|
5972
|
+
* Delete a transcription and its associated data
|
|
5973
|
+
*
|
|
5974
|
+
* Removes the transcription data from AssemblyAI's servers. This action
|
|
5975
|
+
* is irreversible. The transcript will be marked as deleted and its
|
|
5976
|
+
* content will no longer be accessible.
|
|
5977
|
+
*
|
|
5978
|
+
* @param transcriptId - The ID of the transcript to delete
|
|
5979
|
+
* @returns Promise with success status
|
|
5980
|
+
*
|
|
5981
|
+
* @example Delete a transcript
|
|
5982
|
+
* ```typescript
|
|
5983
|
+
* const result = await adapter.deleteTranscript('abc123');
|
|
5984
|
+
* if (result.success) {
|
|
5985
|
+
* console.log('Transcript deleted successfully');
|
|
5986
|
+
* }
|
|
5987
|
+
* ```
|
|
5988
|
+
*
|
|
5989
|
+
* @see https://www.assemblyai.com/docs/api-reference/transcripts/delete
|
|
5990
|
+
*/
|
|
5991
|
+
deleteTranscript(transcriptId: string): Promise<{
|
|
5992
|
+
success: boolean;
|
|
5993
|
+
}>;
|
|
5878
5994
|
/**
|
|
5879
5995
|
* Build AssemblyAI transcription request from unified options
|
|
5880
5996
|
*/
|
|
@@ -6245,6 +6361,27 @@ declare class AzureSTTAdapter extends BaseAdapter {
|
|
|
6245
6361
|
* @returns Transcription response with status and results
|
|
6246
6362
|
*/
|
|
6247
6363
|
getTranscript(transcriptId: string): Promise<UnifiedTranscriptResponse>;
|
|
6364
|
+
/**
|
|
6365
|
+
* Delete a transcription and its associated data
|
|
6366
|
+
*
|
|
6367
|
+
* Removes the transcription from Azure's servers. This action is irreversible.
|
|
6368
|
+
*
|
|
6369
|
+
* @param transcriptId - The ID of the transcription to delete
|
|
6370
|
+
* @returns Promise with success status
|
|
6371
|
+
*
|
|
6372
|
+
* @example Delete a transcription
|
|
6373
|
+
* ```typescript
|
|
6374
|
+
* const result = await adapter.deleteTranscript('abc123-def456');
|
|
6375
|
+
* if (result.success) {
|
|
6376
|
+
* console.log('Transcription deleted successfully');
|
|
6377
|
+
* }
|
|
6378
|
+
* ```
|
|
6379
|
+
*
|
|
6380
|
+
* @see https://learn.microsoft.com/azure/cognitive-services/speech-service/batch-transcription
|
|
6381
|
+
*/
|
|
6382
|
+
deleteTranscript(transcriptId: string): Promise<{
|
|
6383
|
+
success: boolean;
|
|
6384
|
+
}>;
|
|
6248
6385
|
/**
|
|
6249
6386
|
* Build Azure-specific transcription properties
|
|
6250
6387
|
*/
|
|
@@ -6514,6 +6651,34 @@ declare class SpeechmaticsAdapter extends BaseAdapter {
|
|
|
6514
6651
|
* @returns Transcription response with status and results
|
|
6515
6652
|
*/
|
|
6516
6653
|
getTranscript(transcriptId: string): Promise<UnifiedTranscriptResponse>;
|
|
6654
|
+
/**
|
|
6655
|
+
* Delete a transcription job and its associated data
|
|
6656
|
+
*
|
|
6657
|
+
* Removes the job and all associated resources from Speechmatics' servers.
|
|
6658
|
+
* This action is irreversible.
|
|
6659
|
+
*
|
|
6660
|
+
* @param transcriptId - The job ID to delete
|
|
6661
|
+
* @param force - Force delete even if job is still running (default: false)
|
|
6662
|
+
* @returns Promise with success status
|
|
6663
|
+
*
|
|
6664
|
+
* @example Delete a completed job
|
|
6665
|
+
* ```typescript
|
|
6666
|
+
* const result = await adapter.deleteTranscript('job-abc123');
|
|
6667
|
+
* if (result.success) {
|
|
6668
|
+
* console.log('Job deleted successfully');
|
|
6669
|
+
* }
|
|
6670
|
+
* ```
|
|
6671
|
+
*
|
|
6672
|
+
* @example Force delete a running job
|
|
6673
|
+
* ```typescript
|
|
6674
|
+
* const result = await adapter.deleteTranscript('job-abc123', true);
|
|
6675
|
+
* ```
|
|
6676
|
+
*
|
|
6677
|
+
* @see https://docs.speechmatics.com/
|
|
6678
|
+
*/
|
|
6679
|
+
deleteTranscript(transcriptId: string, force?: boolean): Promise<{
|
|
6680
|
+
success: boolean;
|
|
6681
|
+
}>;
|
|
6517
6682
|
/**
|
|
6518
6683
|
* Normalize Speechmatics status to unified status
|
|
6519
6684
|
*/
|
|
@@ -9584,20 +9749,6 @@ interface RealtimeProcessingConfig {
|
|
|
9584
9749
|
sentiment_analysis?: boolean;
|
|
9585
9750
|
}
|
|
9586
9751
|
|
|
9587
|
-
/**
|
|
9588
|
-
* Generated by orval v7.9.0 🍺
|
|
9589
|
-
* Do not edit manually.
|
|
9590
|
-
* Gladia Control API
|
|
9591
|
-
* OpenAPI spec version: 1.0
|
|
9592
|
-
*/
|
|
9593
|
-
/**
|
|
9594
|
-
* The model used to process the audio. "solaria-1" is used by default.
|
|
9595
|
-
*/
|
|
9596
|
-
type StreamingSupportedModels = (typeof StreamingSupportedModels)[keyof typeof StreamingSupportedModels];
|
|
9597
|
-
declare const StreamingSupportedModels: {
|
|
9598
|
-
readonly "solaria-1": "solaria-1";
|
|
9599
|
-
};
|
|
9600
|
-
|
|
9601
9752
|
/**
|
|
9602
9753
|
* Generated by orval v7.9.0 🍺
|
|
9603
9754
|
* Do not edit manually.
|
|
@@ -12558,4 +12709,4 @@ declare namespace index {
|
|
|
12558
12709
|
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 SentimentAnalysisResult$1 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 };
|
|
12559
12710
|
}
|
|
12560
12711
|
|
|
12561
|
-
export { AssemblyAIAdapter, type AssemblyAIStreamingOptions, index as AssemblyAITypes, AssemblyAIWebhookHandler, type AudioChunk, type AudioInput, AudioResponseFormat, AudioTranscriptionModel, AzureSTTAdapter, AzureWebhookHandler, BaseAdapter, BaseWebhookHandler, type BatchOnlyProvider, DeepgramAdapter, type DeepgramStreamingOptions, DeepgramWebhookHandler, GladiaAdapter, type GladiaStreamingOptions, index$1 as GladiaTypes, GladiaWebhookHandler, ListenV1EncodingParameter, type ListenV1LanguageParameter, type ListenV1ModelParameter, type ListenV1VersionParameter, OpenAIWhisperAdapter, type ProviderCapabilities, type ProviderConfig, type ProviderRawResponseMap, type ProviderStreamingOptions, type SessionStatus, SpeakV1ContainerParameter, SpeakV1EncodingParameter, SpeakV1SampleRateParameter, type Speaker, SpeechmaticsAdapter, SpeechmaticsWebhookHandler, type StreamEvent, type StreamEventType, type StreamingCallbacks, type StreamingOptions, type StreamingOptionsForProvider, type StreamingProvider, type StreamingSession, StreamingSupportedBitDepthEnum, StreamingSupportedEncodingEnum, StreamingSupportedSampleRateEnum, 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 };
|
|
12712
|
+
export { AssemblyAIAdapter, type AssemblyAIStreamingOptions, index as AssemblyAITypes, AssemblyAIWebhookHandler, type AudioChunk, type AudioInput, AudioResponseFormat, AudioTranscriptionModel, AzureSTTAdapter, AzureWebhookHandler, BaseAdapter, BaseWebhookHandler, type BatchOnlyProvider, DeepgramAdapter, type DeepgramStreamingOptions, DeepgramWebhookHandler, GladiaAdapter, type GladiaStreamingOptions, index$1 as GladiaTypes, GladiaWebhookHandler, ListenV1EncodingParameter, type ListenV1LanguageParameter, type ListenV1ModelParameter, type ListenV1VersionParameter, OpenAIWhisperAdapter, type ProviderCapabilities, type ProviderConfig, type ProviderRawResponseMap, type ProviderStreamingOptions, type SessionStatus, SpeakV1ContainerParameter, SpeakV1EncodingParameter, SpeakV1SampleRateParameter, type Speaker, SpeechmaticsAdapter, type SpeechmaticsOperatingPoint, SpeechmaticsWebhookHandler, type StreamEvent, type StreamEventType, type StreamingCallbacks, type StreamingOptions, type StreamingOptionsForProvider, type StreamingProvider, type StreamingSession, StreamingSupportedBitDepthEnum, StreamingSupportedEncodingEnum, StreamingSupportedSampleRateEnum, type TranscribeOptions, type TranscribeStreamParams, type TranscriptionAdapter, type TranscriptionModel, 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 };
|