Simple demo files for Azure Cognitive Services. More might be added later.
Benjamin Jacob Reji (benjaminjacobreji)
Gaurav Gosain (Gaurav-Gosain)
Azure Cognitive Services by Microsoft
Please create an issue here: Create New Issue
Before creating a new issues, check if an issue has already been created for a similiar problem at Issues.
- Make an account at Microsoft Azure Cloud
- Create Face Resource or Speech Resource (Click to get direct links)
- Fork this repository
- Clone repository:
git clone https://github.com/<your-github-username>/azure-cognitive-services-demo.git
- Change directory:
cd azure-cognitive-services-demo
- Make sure
Python<=3.8*
as later versions is not supported by Azure packages yet. - Install Azure Python packages
pip install --upgrade azure-cognitiveservices-vision-face
pip install --upgrade azure-cognitiveservices-speech
- Set Enoviroment Variables
- Face
- FACE_RESOURCE_KEY="key generated in Azure Portal under Face Resource"
- FACE_RESOURCE_ENDPOINT="endpoint specified in Azure Portal"
- Speech
- SPEECH_RESOURCE_KEY="key generated in Azure Portal under Speech Resource"
- Face
- To run Azure Cognitive Services Face API demos
- Change to face directory:
cd face
- Run quickstart example:
python 00-quickstart.py
- Run face recognition example:
python 01-face-recognition.py
- Change to face directory:
- To run Azure Cognitive Services Face API demos
- Change to speech directory:
cd speech
orcd ../speech
- Run quickstart example:
python 00-quickstart.py
- Run sppech-to-text example:
python 01-speech-to-text-from-file.py
- Run text-to-speech example:
python 02-text-to-speech.py
- Change to speech directory: