speech_transcribe_diarization_beta.test.yaml 1.5 KB

12345678910111213141516171819202122232425262728293031323334353637383940
  1. type: test/samples
  2. schema_version: 1
  3. test:
  4. suites:
  5. - name: Separating different speakers (Local File) (LRO) (Beta)
  6. cases:
  7. # This sample should default to using commercial_mono.wav
  8. - name: speech_transcribe_diarization_beta (no arguments)
  9. spec:
  10. - call:
  11. sample: speech_transcribe_diarization_beta
  12. - assert_contains:
  13. - literal: "Word: Chrome"
  14. # The identifier given to each speaker is non-deterministic.
  15. # For two speakers, it can be 0 and 1, 0 and 2, or other variations.
  16. #
  17. # The example audio file has two speakers, but this test is
  18. # not verifying that greater than one speaker is detected.
  19. - literal: "Speaker tag:"
  20. # Confirm that another file can be transcribed (use another .flac file)
  21. - name: speech_transcribe_diarization_beta (--local_file_path)
  22. spec:
  23. - call:
  24. sample: speech_transcribe_diarization_beta
  25. params:
  26. local_file_path:
  27. literal: "resources/multi.flac"
  28. - assert_contains:
  29. - literal: "how are you doing"
  30. - literal: "Word: doing"
  31. # The identifier given to each speaker is non-deterministic.
  32. # For two speakers, it can be 0 and 1, 0 and 2, or other variations.
  33. #
  34. # The example audio file has two speakers, but this test is
  35. # not verifying that greater than one speaker is detected.
  36. - literal: "Speaker tag:"
  37. - assert_not_contains:
  38. - literal: "Chrome"