Giter Site home page Giter Site logo

smartspeaker's Introduction

A simple smart speaker

The aim of this project is to showcase innovation by building a smart speaker that can connect to Norbert's Microsft QnA service to answer questions.

Prerequisites

  • Python 3.* installed
  • Python virtual environments able to be created
  • flac install (on mac with brew run brew install flac in ubuntu run sudo apt install flac)

Add a credentials.py file with the following format:

class credentials():
    def __init__(self):
        self.QnA_DOMAIN=""
        self.QnA_AUTH=""
        self.QnA_COOKIE=""
        self.QnA_ENDPOINT=""
        self.QnA_CONFIDENCE=60

Setup

Navigate to the folder connect to the virtual environment (on a mac run source virtenv/bin/activate, in vscode select python next to the git branch and select the recommended option) install the dependancies by running pip3 install -r requirements.txt

Run

ensure you are in the virtual environment run python3 app.py

smartspeaker's People

Contributors

anthonytaylor avatar panosp17 avatar megancrowthers avatar

Stargazers

 avatar Joanna Gorska avatar

Watchers

Kevin White avatar  avatar

Forkers

panosp17

smartspeaker's Issues

Optimise voice messages

Use a small file to generate the standard "how can I help" and "looking for an answer" into seperate files.

play those files in the main app.py rather than generating them every time

this will speed up the process as the text won't need sending to Google over the internet and no need to download the audio files.

Add internet check at start

pre-generate an audio file warning about no internet

do a check for internet access at the start of the app.py
if internet connection exists:
continue with application
if no internet connection:
play no internet audio file and end application

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.