Giter Club home page Giter Club logo

roach's People

Contributors

alperbahcekapili avatar mathematiciangoat avatar

Watchers

 avatar

roach's Issues

Phase 2 Backend Function Matching

At each step of user's stt result, a function matching should be run. For example if we have the following functions in the car:

  • Name: Open music

    • Description: This function plays a track on the car
    • Possible Phrases: ["Turn on a music for me", "Play a song for me"]
  • Name: Open the windows

  • Description: Opens the car windows

  • Possible Phrases: ["Open the left window for me", "Open the driver's window"]

and if the user says: "I am bored. Play a song", then open the music function should be matched. Then this function should be called at the background.

Having an exit function that terminates the dialog would be good.

Assistant should be informed about the match before generating an answer.

Technical Details:

There should be vectordatabase which stores all possible phrases and their functions' name, descriptions in the metadata fields.
A similarity search should be executed at each step.
Similarity treshold (st) can be set via experimentation.

We can store functions and their informations in a json file under backend folder.

Phase 2 Front end

In order to show the latest-matched functions, we can add indicators to assistant's messages to visualize which function is matched/no function is matched.

We need to do adjustments to visualize the state of the car as well

Start chat logic based on snoozing condition

Chatting logic should be started upon sleepy driver detected.

After signal:

  1. Assistant should be triggered to warn the driver
  2. After warning driver's mic should be activated and response should be recorded
  3. Recording should be transcribed and send back to the front-end
  4. Front-end then should trigger assistant with driver's response
  5. Iterate this loop until user want to exit(driver should say sth. like "Exit")

Phase 2 backend Car Mock Data Generation

Car's state should be generated as if the values are being read by sensors in the car.
Example data:

{ "left-front-window":100 "right-front-window":100 "left-rear-window":95, "right-rear-window":95, "speaker-level":0, "temperature-inside":20 }

This data should be generated at each 0.1 seconds and matching-functions should invoke changes in the car interior. To do that, another backend endpoint can be created. At each timestep t, front-end can send a request to visualize the state of the car in the frontend.

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.