Skip to content

Instantly share code, notes, and snippets.

@mfreyeso
Created March 7, 2017 15:12
Show Gist options
  • Select an option

  • Save mfreyeso/8095f33e111ed5d5b1ba42111ad6d6ed to your computer and use it in GitHub Desktop.

Select an option

Save mfreyeso/8095f33e111ed5d5b1ba42111ad6d6ed to your computer and use it in GitHub Desktop.
Speech API Google
import re
from transcribe import main
def test_main(resource, capsys):
main(resource('audio.raw'))
out, err = capsys.readouterr()
assert re.search(r'how old is the Brooklyn Bridge', out, re.DOTALL | re.I)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment