Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

To get a sense of what dialogflow is hearing, we’ll also play the sound on our own speakers.

Code Block
# OPTIONAL: setSet up output device to play audio along transcript
p = pyaudio.PyAudio()
output = p.open(format=pyaudio.paInt16,
                channels=1,
                rate=samplerate,
                output=True)

...