Skip to content

Commit 5f33b9f

Browse files
authored
AISDK-236: RevAiJobOptions does not support speakers_count param (#262)
* AISDK-236: RevAiJobOptions does not support speakers_count param
1 parent 107480e commit 5f33b9f

4 files changed

Lines changed: 7 additions & 2 deletions

File tree

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "revai-node-sdk",
3-
"version": "3.8.5",
3+
"version": "3.8.6",
44
"description": "Rev AI makes speech applications easy to build!",
55
"main": "src/index.js",
66
"scripts": {

src/models/RevAiApiJob.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,7 @@ export interface RevAiApiJob {
2525
filter_profanity?: boolean;
2626
custom_vocabulary_id?: string;
2727
speaker_channels_count?: number;
28+
speakers_count?: number;
2829
language?: string;
2930
transcriber?: string;
3031
verbatim?: boolean;

src/models/async/RevAiJobOptions.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,7 @@ export interface RevAiJobOptions {
2727
skip_postprocessing?: boolean;
2828
diarization_type?: string;
2929
speaker_channels_count?: number;
30+
speakers_count?: number;
3031
custom_vocabulary_id?: string;
3132
custom_vocabularies?: CustomVocabulary[];
3233
filter_profanity?: boolean;

test/unit/api-client/api-client.submit.spec.ts

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,8 @@ describe('api-client job submission', () => {
2727
const jobDetails = {
2828
id: jobId,
2929
status: 'in_progress',
30-
created_on: '2018-05-05T23:23:22.29Z'
30+
created_on: '2018-05-05T23:23:22.29Z',
31+
speakers_count: 123
3132
};
3233
const filename = 'path/to/test.mp3';
3334

@@ -88,6 +89,7 @@ describe('api-client job submission', () => {
8889
skip_punctuation: true,
8990
skip_diarization: true,
9091
speaker_channels_count: 1,
92+
speakers_count: 123,
9193
filter_profanity: true,
9294
media_url: mediaUrl,
9395
remove_disfluencies: true,
@@ -173,6 +175,7 @@ describe('api-client job submission', () => {
173175
skip_punctuation: true,
174176
skip_diarization: true,
175177
speaker_channels_count: 1,
178+
speakers_count: 123,
176179
filter_profanity: true,
177180
remove_disfluencies: true,
178181
delete_after_seconds: 0,

0 commit comments

Comments
 (0)