voice-router-dev 0.3.1 → 0.3.2
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 +14 -7
- package/dist/index.d.ts +14 -7
- package/package.json +1 -1
package/dist/index.d.mts
CHANGED
|
@@ -5502,7 +5502,6 @@ interface StreamingRequest {
|
|
|
5502
5502
|
callback_config?: CallbackConfig;
|
|
5503
5503
|
}
|
|
5504
5504
|
|
|
5505
|
-
type StreamingSpeechModel = "universal-streaming-english" | "universal-streaming-multilingual";
|
|
5506
5505
|
type StreamingUpdateConfiguration = {
|
|
5507
5506
|
type: "UpdateConfiguration";
|
|
5508
5507
|
end_of_turn_confidence_threshold?: number;
|
|
@@ -5574,15 +5573,19 @@ interface DeepgramStreamingOptions {
|
|
|
5574
5573
|
language?: ListenV1LanguageParameter;
|
|
5575
5574
|
/**
|
|
5576
5575
|
* Model to use for transcription
|
|
5576
|
+
*
|
|
5577
|
+
* Strict union type - only accepts valid Deepgram models.
|
|
5577
5578
|
* Use `DeepgramModel` const for autocomplete:
|
|
5578
5579
|
* @example
|
|
5579
5580
|
* ```typescript
|
|
5580
|
-
* import { DeepgramModel } from '
|
|
5581
|
-
* { model: DeepgramModel
|
|
5582
|
-
* { model: DeepgramModel
|
|
5581
|
+
* import { DeepgramModel } from 'voice-router-dev'
|
|
5582
|
+
* { model: DeepgramModel["nova-3"] }
|
|
5583
|
+
* { model: DeepgramModel["nova-2-medical"] }
|
|
5584
|
+
* // Or use string literals directly:
|
|
5585
|
+
* { model: "nova-3" }
|
|
5583
5586
|
* ```
|
|
5584
5587
|
*/
|
|
5585
|
-
model?:
|
|
5588
|
+
model?: DeepgramModelType;
|
|
5586
5589
|
/** Model version (e.g., 'latest') */
|
|
5587
5590
|
version?: ListenV1VersionParameter;
|
|
5588
5591
|
/** Enable language detection */
|
|
@@ -5697,15 +5700,19 @@ interface AssemblyAIStreamingOptions {
|
|
|
5697
5700
|
encoding?: AssemblyAIEncodingType;
|
|
5698
5701
|
/**
|
|
5699
5702
|
* Speech model to use
|
|
5703
|
+
*
|
|
5704
|
+
* Strict union type - only accepts valid AssemblyAI streaming models.
|
|
5700
5705
|
* Use `AssemblyAISpeechModel` const for autocomplete:
|
|
5701
5706
|
* @example
|
|
5702
5707
|
* ```typescript
|
|
5703
|
-
* import { AssemblyAISpeechModel } from '
|
|
5708
|
+
* import { AssemblyAISpeechModel } from 'voice-router-dev'
|
|
5704
5709
|
* { speechModel: AssemblyAISpeechModel.english }
|
|
5705
5710
|
* { speechModel: AssemblyAISpeechModel.multilingual }
|
|
5711
|
+
* // Or use string literals directly:
|
|
5712
|
+
* { speechModel: "universal-streaming-english" }
|
|
5706
5713
|
* ```
|
|
5707
5714
|
*/
|
|
5708
|
-
speechModel?: AssemblyAISpeechModelType
|
|
5715
|
+
speechModel?: AssemblyAISpeechModelType;
|
|
5709
5716
|
/** Enable automatic language detection */
|
|
5710
5717
|
languageDetection?: boolean;
|
|
5711
5718
|
/**
|
package/dist/index.d.ts
CHANGED
|
@@ -5502,7 +5502,6 @@ interface StreamingRequest {
|
|
|
5502
5502
|
callback_config?: CallbackConfig;
|
|
5503
5503
|
}
|
|
5504
5504
|
|
|
5505
|
-
type StreamingSpeechModel = "universal-streaming-english" | "universal-streaming-multilingual";
|
|
5506
5505
|
type StreamingUpdateConfiguration = {
|
|
5507
5506
|
type: "UpdateConfiguration";
|
|
5508
5507
|
end_of_turn_confidence_threshold?: number;
|
|
@@ -5574,15 +5573,19 @@ interface DeepgramStreamingOptions {
|
|
|
5574
5573
|
language?: ListenV1LanguageParameter;
|
|
5575
5574
|
/**
|
|
5576
5575
|
* Model to use for transcription
|
|
5576
|
+
*
|
|
5577
|
+
* Strict union type - only accepts valid Deepgram models.
|
|
5577
5578
|
* Use `DeepgramModel` const for autocomplete:
|
|
5578
5579
|
* @example
|
|
5579
5580
|
* ```typescript
|
|
5580
|
-
* import { DeepgramModel } from '
|
|
5581
|
-
* { model: DeepgramModel
|
|
5582
|
-
* { model: DeepgramModel
|
|
5581
|
+
* import { DeepgramModel } from 'voice-router-dev'
|
|
5582
|
+
* { model: DeepgramModel["nova-3"] }
|
|
5583
|
+
* { model: DeepgramModel["nova-2-medical"] }
|
|
5584
|
+
* // Or use string literals directly:
|
|
5585
|
+
* { model: "nova-3" }
|
|
5583
5586
|
* ```
|
|
5584
5587
|
*/
|
|
5585
|
-
model?:
|
|
5588
|
+
model?: DeepgramModelType;
|
|
5586
5589
|
/** Model version (e.g., 'latest') */
|
|
5587
5590
|
version?: ListenV1VersionParameter;
|
|
5588
5591
|
/** Enable language detection */
|
|
@@ -5697,15 +5700,19 @@ interface AssemblyAIStreamingOptions {
|
|
|
5697
5700
|
encoding?: AssemblyAIEncodingType;
|
|
5698
5701
|
/**
|
|
5699
5702
|
* Speech model to use
|
|
5703
|
+
*
|
|
5704
|
+
* Strict union type - only accepts valid AssemblyAI streaming models.
|
|
5700
5705
|
* Use `AssemblyAISpeechModel` const for autocomplete:
|
|
5701
5706
|
* @example
|
|
5702
5707
|
* ```typescript
|
|
5703
|
-
* import { AssemblyAISpeechModel } from '
|
|
5708
|
+
* import { AssemblyAISpeechModel } from 'voice-router-dev'
|
|
5704
5709
|
* { speechModel: AssemblyAISpeechModel.english }
|
|
5705
5710
|
* { speechModel: AssemblyAISpeechModel.multilingual }
|
|
5711
|
+
* // Or use string literals directly:
|
|
5712
|
+
* { speechModel: "universal-streaming-english" }
|
|
5706
5713
|
* ```
|
|
5707
5714
|
*/
|
|
5708
|
-
speechModel?: AssemblyAISpeechModelType
|
|
5715
|
+
speechModel?: AssemblyAISpeechModelType;
|
|
5709
5716
|
/** Enable automatic language detection */
|
|
5710
5717
|
languageDetection?: boolean;
|
|
5711
5718
|
/**
|
package/package.json
CHANGED