Skip to content

Commit

Permalink
test: update tests to support inconsistent diarization results (#326)
Browse files Browse the repository at this point in the history
  • Loading branch information
Rebecca Taylor authored and JustinBeckwith committed Mar 26, 2019
1 parent 62c250d commit 8a2c13a
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions speech/system-test/betaFeatures.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -38,14 +38,12 @@ const stereoUri = 'gs://cloud-samples-tests/speech/commercial_stereo.wav';
describe(`BetaFeatures`, () => {
it('should run speech diarization on a local file', async () => {
const output = await exec(`${cmd} Diarization -f ${monoFilePath}`);
assert.match(output, /speakerTag: 1/);
assert.match(output, /speakerTag: 2/);
assert.match(output, /speakerTag:/);
});

it('should run speech diarization on a GCS file', async () => {
const output = await exec(`${cmd} DiarizationGCS -u ${monoUri}`, cwd);
assert.match(output, /speakerTag: 1/);
assert.match(output, /speakerTag: 2/);
assert.match(output, /speakerTag:/);
});

it('should run multi channel transcription on a local file', async () => {
Expand Down

0 comments on commit 8a2c13a

Please sign in to comment.