DEV Community

Cover image for Learn How to Build a LangChain Audio App with Python in Just 5 Minutes!

Learn How to Build a LangChain Audio App with Python in Just 5 Minutes!

Pavan Belagatti on September 15, 2023

This guide will teach you the steps to import audio data using Langchain and develop an application capable of answering queries about an audio fil...
Collapse
 
shaik_feeda_hussain profile image
Shaik Feeda Hussain

Hello Sir I am unable to run the export command
It show an error as "'export' is not recognized as an internal or external command,
operable program or batch file."
and when I run the Python3 demo.py It shows this ValueError "Please provide an API key via the ASSEMBLYAI_API_KEY environment variable or the global settings."
Will you please help me in resolving the errors??
Please reply

Collapse
 
pavanbelagatti profile image
Pavan Belagatti

Did you add your ASSEMBLYAI_API_KEY?

Collapse
 
shaik_feeda_hussain profile image
Shaik Feeda Hussain

the command "export OPENAI_API_KEY=................."
is not executing and giving this error "'export' is not recognized as an internal or external command, operable program or batch file."

Collapse
 
shaik_feeda_hussain profile image
Shaik Feeda Hussain • Edited

Where can I find the ASSEMBLYAI_API_KEY environment variable?

Thread Thread
 
pavanbelagatti profile image
Pavan Belagatti

Check in the tutorial, I have mentioned 'Set your AssemblyAI API key. You can get your free API Key here'

Thread Thread
 
shaik_feeda_hussain profile image
Shaik Feeda Hussain

I got the API Key and Executed the first code and got the transcript of the Audio link.
But I am struck at the Question & Answer Section because of the above mentioned errors.
Please help me in resolving the errors

Thread Thread
 
pavanbelagatti profile image
Pavan Belagatti

Oh okay, for that you need OpenAI API Key to be set.

Thread Thread
 
shaik_feeda_hussain profile image
Shaik Feeda Hussain

how to set it????
export OPENAI_API_KEY= is throwing error like "'export' is not recognized as an internal or external command, operable program or batch file."
What to do?

Thread Thread
 
pavanbelagatti profile image
Pavan Belagatti

It is because you might not have paid account of OpenAI. You might have utilized all your free quota so it is not working for you.

Collapse
 
respect17 profile image
Kudzai Murimi

Will try that soon after l am done with python and fastapi.

Thanks for sharing!

Collapse
 
pavanbelagatti profile image
Pavan Belagatti

You are welcome!

Collapse
 
pizofreude profile image
Pizofreude

Interesting side project for the weekend, cheers!

Collapse
 
pavanbelagatti profile image
Pavan Belagatti

Absolutely, try it and let me know.

Collapse
 
samama profile image
Muhammad Samama Saleem

It's so rejuvenating.
Image description