speech_transcribe_enhanced_model.test.yaml 929 B

1234567891011121314151617181920212223242526272829
  1. type: test/samples
  2. schema_version: 1
  3. test:
  4. suites:
  5. - name: Using Enhanced Models (Local File)
  6. cases:
  7. # This sample should default to using hello.wav
  8. # and the phone_call model (only currently available enhanced model)
  9. #
  10. # Note: if the project used to run these tests isn't eligible for
  11. # enhanced models, you will receive an error.
  12. - name: speech_transcribe_enhanced_model (no arguments)
  13. spec:
  14. - call:
  15. sample: speech_transcribe_enhanced_model
  16. - assert_contains:
  17. - literal: "hello"
  18. # Confirm that another file can be transcribed (use another .wav file)
  19. - name: speech_transcribe_enhanced_model (--local_file_path)
  20. spec:
  21. - call:
  22. sample: speech_transcribe_enhanced_model
  23. params:
  24. local_file_path:
  25. literal: "resources/commercial_mono.wav"
  26. - assert_contains:
  27. - literal: "Chrome"