speech_transcribe_multilanguage_beta.test.yaml 1.2 KB

123456789101112131415161718192021222324252627282930313233
  1. type: test/samples
  2. schema_version: 1
  3. test:
  4. suites:
  5. - name: Detecting language spoken automatically (Local File) (Beta)
  6. cases:
  7. # This sample should default to using brooklyn_bridge.flac
  8. - name: speech_transcribe_multilanguage_beta (no arguments)
  9. spec:
  10. - call:
  11. sample: speech_transcribe_multilanguage_beta
  12. - assert_contains:
  13. - literal: "how old is the Brooklyn Bridge"
  14. # Note: the primary language_code given was not English, but
  15. # English was provided in the list of alternative_language_codes
  16. - literal: "Detected language: en-us"
  17. # Confirm that another file can be transcribed (use another .flac file)
  18. - name: speech_transcribe_multilanguage_beta (--local_file_path)
  19. spec:
  20. - call:
  21. sample: speech_transcribe_multilanguage_beta
  22. params:
  23. local_file_path:
  24. literal: "resources/multi.flac"
  25. - assert_contains:
  26. - literal: "how are you doing"
  27. # Note: the primary language_code given was not English, but
  28. # English was provided in the list of alternative_language_codes
  29. - literal: "Detected language: en-us"
  30. - assert_not_contains:
  31. - literal: "how old is the Brooklyn Bridge"