Python(version 3 or later), OpenAI account, Azure subscription, code from this repository
- Run this command to install the Speech SDK
pip install azure-cognitiveservices-speech
- Install guidance:
pip install guidance
- Install deep-translator:
pip install deep-translator
- Ensure the OpenAI key exists at
~/.openai_api_keyor is set as an environment variable.
Note that libssl1.1 needs to be installed on Ubuntu 22.04. See here for more details:
- First, go ahead and create a Speech resource
- Next you need to get the Keys from your speech resource and set up your environment variables
You can set up the keys with the following commands:
For windows:
setx SPEECH_KEY your-key
setx SPEECH_REGION your-region
For Linux/macOS:
export SPEECH_KEY=your-key
export SPEECH_REGION=your-region
try out E.I.D.A. by running the following command in terminal:
python testing.py
Then follow the prompts provided by E.I.D.A.