![]() ![]() We’ll need to import our API key from the config.py file into the main.py file and assign it to an api_key variable. We are going to talk about how to transcribe a local audio file to text before going for the URL method. There are two ways of uploading the audio to the API, we can either upload the audio from our local computer or from an audio URL. The API_KEY serves as an authentication method for us to access the Speech-to-Text API. In the config.py file, create a variable called api_key and store the API key you copied from AssemblyAI. Next download the audio we will transcribe to text into the project directory from this audio link. Now, create a new folder on your desktop, give it any name of your choice and open it with a text editor (VS Code).Ĭreate two files in the root directory and name them config.py and main.py respectively.
0 Comments
Leave a Reply. |
Details
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |