speech_transcribe_multichannel_gcs.test.yaml 1.1 KB

1234567891011121314151617181920212223242526272829303132
  1. type: test/samples
  2. schema_version: 1
  3. test:
  4. suites:
  5. - name: Multi-Channel Audio Transcription (Cloud Storage)
  6. cases:
  7. # This sample should default to using gs://cloud-samples-data/speech/multi.wav
  8. # with 2 audio channels of data
  9. - name: speech_transcribe_multichannel_gcs (no arguments)
  10. spec:
  11. - call:
  12. sample: speech_transcribe_multichannel_gcs
  13. - assert_contains:
  14. - literal: "Channel tag: 1"
  15. - literal: "Channel tag: 2"
  16. - literal: "how are you doing"
  17. # Confirm that another file can be transcribed (use another 2 channel .wav file)
  18. - name: speech_transcribe_multichannel_gcs (--storage_uri)
  19. spec:
  20. - call:
  21. sample: speech_transcribe_multichannel_gcs
  22. params:
  23. storage_uri:
  24. literal: "gs://cloud-samples-data/speech/brooklyn_bridge.wav"
  25. - assert_contains:
  26. # Only one channel of data is present in brooklyn_bridge.wav
  27. - literal: "Channel tag:"
  28. - literal: "how old is the Brooklyn Bridge"
  29. - assert_not_contains:
  30. - literal: "how are you doing"