diff --git a/package.json b/package.json index cb8252c..3f3e544 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "revai-node-sdk", - "version": "3.8.5", + "version": "3.8.6", "description": "Rev AI makes speech applications easy to build!", "main": "src/index.js", "scripts": { diff --git a/src/models/RevAiApiJob.ts b/src/models/RevAiApiJob.ts index 06e7f8e..d33594e 100644 --- a/src/models/RevAiApiJob.ts +++ b/src/models/RevAiApiJob.ts @@ -25,6 +25,7 @@ export interface RevAiApiJob { filter_profanity?: boolean; custom_vocabulary_id?: string; speaker_channels_count?: number; + speakers_count?: number; language?: string; transcriber?: string; verbatim?: boolean; diff --git a/src/models/async/RevAiJobOptions.ts b/src/models/async/RevAiJobOptions.ts index cb1015c..b2d07e1 100644 --- a/src/models/async/RevAiJobOptions.ts +++ b/src/models/async/RevAiJobOptions.ts @@ -27,6 +27,7 @@ export interface RevAiJobOptions { skip_postprocessing?: boolean; diarization_type?: string; speaker_channels_count?: number; + speakers_count?: number; custom_vocabulary_id?: string; custom_vocabularies?: CustomVocabulary[]; filter_profanity?: boolean; diff --git a/test/unit/api-client/api-client.submit.spec.ts b/test/unit/api-client/api-client.submit.spec.ts index 7fb4bf2..8736a5e 100644 --- a/test/unit/api-client/api-client.submit.spec.ts +++ b/test/unit/api-client/api-client.submit.spec.ts @@ -27,7 +27,8 @@ describe('api-client job submission', () => { const jobDetails = { id: jobId, status: 'in_progress', - created_on: '2018-05-05T23:23:22.29Z' + created_on: '2018-05-05T23:23:22.29Z', + speakers_count: 123 }; const filename = 'path/to/test.mp3'; @@ -88,6 +89,7 @@ describe('api-client job submission', () => { skip_punctuation: true, skip_diarization: true, speaker_channels_count: 1, + speakers_count: 123, filter_profanity: true, media_url: mediaUrl, remove_disfluencies: true, @@ -173,6 +175,7 @@ describe('api-client job submission', () => { skip_punctuation: true, skip_diarization: true, speaker_channels_count: 1, + speakers_count: 123, filter_profanity: true, remove_disfluencies: true, delete_after_seconds: 0,