Skip to content

Commit

Permalink
AISDK-236: RevAiJobOptions does not support speakers_count param (#262)
Browse files Browse the repository at this point in the history
* AISDK-236: RevAiJobOptions does not support speakers_count param
  • Loading branch information
kirillatrev authored Jun 21, 2024
1 parent 107480e commit 5f33b9f
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 2 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -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": {
Expand Down
1 change: 1 addition & 0 deletions src/models/RevAiApiJob.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down
1 change: 1 addition & 0 deletions src/models/async/RevAiJobOptions.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down
5 changes: 4 additions & 1 deletion test/unit/api-client/api-client.submit.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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';

Expand Down Expand Up @@ -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,
Expand Down Expand Up @@ -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,
Expand Down

0 comments on commit 5f33b9f

Please sign in to comment.