You need to provide a .env
file in the root folder with the following settings:
SPEECH_KEY=YourCognitiveServiceSpeechAPIKey
SPEECH_REGION=YourCognitiveServiceRegion
SPEECH_LANGUAGE=YourLanguage
OPENAI_KEY=YourOpenAIKey
You need to install the following libraries:
pip3 install azure-cognitiveservices-speech
pip3 install python-dotenv
pip3 install openai
pip3 install simpleaudio