Click to expand
DA-GUI is a Web GUI that runs on top of a Flask Web Server.
For user interaction, it uses Amazon Polly for speech synthesis and Google Web API for speech recognition.
This implementation is in Icelandic. The code and comments are in English.
Acts like an echo bot, the server responses with the user's query.
Make sure to have Python 3.6 or newer installed.
$ pip3 install virtualenv
Make sure to create a Python3 instead of Python2 enviroment by refrencing its binaries.
$ which python3
/usr/bin/python3
You can use any name you want, we will use "venv".
$ virtualenv -p /usr/bin/python3 venv
$ . venv/bin/activate
Now you have activated your virual enviroment and your teminal should display its name as so:
$(venv)
$(venv) pip3 install -r requirements.txt
Guide: Quickly Configuring the AWS CLI
$ aws configure
AWS Access Key ID [None]: AKIAIOSFODNN7EXAMPLE
AWS Secret Access Key [None]: wJalrXUtnFEMI/K7MDENG/bPxRfiCYEXAMPLEKEY
Default region name [None]: us-west-2
Default output format [None]: json
The standard aws configure
adds a default
profile instead of adminuser
, so if you try to run server.py
immediately after configuring AWS CLI you might get a botocore.exceptions.ProfileNotFound: The config profile (adminuser) could not be found
error.
To fix this, you have to add an adminuser
profile to your config
file. On Linux or macOS, this is usually located at ~/.aws/config
. On Windows, this is C:\Users\USERNAME \.aws\config
Simply add the following at the bottom of the file.
[profile adminuser]
region = INSERT REGION
output = INSERT JSON
aws_access_key_id = INSERT ACCESS KEY ID
aws_secret_access_key = INSERT SECRET ACCESS KEY
You can simply use the same values as those under the default
user.
$(venv) python3 server.py
You’ll see output similar to this:
Serving Flask app "server"
Environment: development
Debug mode: on
Running on http://127.0.0.1:5000/ (Press CTRL+C to quit)
Open the link in your Chrome browser.
- Egill Anton Hlöðversson - MSc. Language Technology Student
This project is licensed under the Apache License, Version 2.0 - see the LICENSE file for details.
🌟 PLEASE STAR THIS REPO IF YOU FOUND SOMETHING INTERESTING 🌟