Skip to content

Instantly share code, notes, and snippets.

@johanste
Created July 15, 2020 20:21
Show Gist options
  • Save johanste/8a8d0f02ba681383060e017fb49effb5 to your computer and use it in GitHub Desktop.
Save johanste/8a8d0f02ba681383060e017fb49effb5 to your computer and use it in GitHub Desktop.
Pull events from a stream of detected features
data = ...
recognizer = Recognizer(...)
for event in recognizer.recognize():
if event.type == 'speakerRecognized':
...
elif event.type == 'done':
...
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment