Skip to content

Commit

Permalink
Merge pull request #34 from AssemblyAI/E07417BDFEA3614F5967B1520F8B2F61
Browse files Browse the repository at this point in the history
Release 4.2.3
  • Loading branch information
Swimburger authored Feb 13, 2024
2 parents e0855ad + 1854241 commit 24d94a8
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 1 deletion.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "assemblyai",
"version": "4.2.2",
"version": "4.2.3",
"description": "The AssemblyAI JavaScript SDK provides an easy-to-use interface for interacting with the AssemblyAI API, which supports async and real-time transcription, as well as the latest LeMUR models.",
"engines": {
"node": ">=18"
Expand Down
18 changes: 18 additions & 0 deletions src/types/openapi.generated.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1102,6 +1102,12 @@ export type SeverityScoreSummary = {
medium: number;
};

/**
* @description The speech model to use for the transcription.
* @enum {string}
*/
export type SpeechModel = "nano";

/**
* @description The replacement logic for detected PII, can be "entity_type" or "hash". See [PII redaction](https://www.assemblyai.com/docs/models/pii-redaction) for more details.
* @enum {string}
Expand Down Expand Up @@ -1310,6 +1316,7 @@ export type TopicDetectionResult = {
* @description A transcript object
* @example {
* "id": "9ea68fd3-f953-42c1-9742-976c447fb463",
* "speech_model": null,
* "language_model": "assemblyai_default",
* "acoustic_model": "assemblyai_default",
* "language_code": "en_us",
Expand Down Expand Up @@ -2112,6 +2119,11 @@ export type Transcript = {
speaker_labels?: boolean | null;
/** @description Tell the speaker label model how many speakers it should attempt to identify, up to 10. See [Speaker diarization](https://www.assemblyai.com/docs/models/speaker-diarization) for more details. */
speakers_expected?: number | null;
/**
* @description The speech model used for the transcription. When `null`, the default model is used.
* @default null
*/
speech_model: SpeechModel | null;
/**
* Format: float
* @description Defaults to null. Reject audio files that contain less than this fraction of speech.
Expand Down Expand Up @@ -2272,6 +2284,7 @@ export type TranscriptListItem = {
/**
* @description The parameters for creating a transcript
* @example {
* "speech_model": null,
* "language_code": "en_us",
* "punctuate": true,
* "format_text": true,
Expand Down Expand Up @@ -2377,6 +2390,11 @@ export type TranscriptOptionalParams = {
* @default null
*/
speakers_expected?: number | null;
/**
* @description The speech model to use for the transcription. When `null`, the default model is used.
* @default null
*/
speech_model?: SpeechModel | null;
/**
* Format: float
* @description Reject audio files that contain less than this fraction of speech.
Expand Down

0 comments on commit 24d94a8

Please sign in to comment.