Skip to content

Latest commit

 

History

History
30 lines (19 loc) · 845 Bytes

File metadata and controls

30 lines (19 loc) · 845 Bytes

speech-recognition-in-5-minutes-with-python

Repo for hosting tutorial code associated with the AssemblyAI and Python in 5 Minutes blog by AssemblyAI

Requirements

$ pip install requests

Usage:

If your AssemblyAI API key is stored as an environment variable called AAI_API_KEY file, then you can omit the optional --api_key argument.

$ python transcribe.py audio_file [--local] [--api_key=<YOUR-API-KEY>"]

Example for hosted file:

$ python transcribe.py https://github.com/AssemblyAI-Examples/assemblyai-and-python-in-5-minutes/raw/main/audio.mp3 --api_key=<YOUR-API-KEY>

Example for local file:

$ python transcribe.py audio.mp3 --local --api_key=<YOUR-API-KEY>