Coder Social home page Coder Social logo

voiceminder-server's Introduction

Personal profile website made with Hugo

Commands

Make new post:

> hugo new blog/file.md
> hugo new code/file.md

Run locally:

> hugo server -D

Compile assets to target location:

> hugo -d ../(directory)

voiceminder-server's People

Contributors

jyleong avatar kevinctzhang avatar kevinzhangftw avatar kimjune01 avatar

Watchers

 avatar  avatar  avatar  avatar  avatar

voiceminder-server's Issues

Countdown on Raspberry fails

Threading on raspberry is way too slow. With speech recognition, socket shuts down unexpectly. To reproduce error, run speech_Client.py

ACTIONS
In the pi branch, i will remove countdown class to see if it improves performance

Client Speech Recognition

When Clients speaks, it should not be listening. When it is listening, it should not be speaking

Approach 1 : Theading mutex lock on speaking Boolean

Approach 2 : Investigating use of Observable pattern

Make countdown the same for both users conversing

idea is to have countdown keep track of both users
current implementation is a separate countdown per users
possible implementation idea is to have a conversation class between two users and have the countdown class check that.

Message Types

'I am June' is a different type and than 'hi june can you send me some cheese'
Use python enum to differentiate different types

Socket status 200

to reproduce error:
run:
python3 src/run.py
lt -s voiceminder -p 5000
vim echo_client.py
change to websocket.create_connection("ws://voiceminder.localtunnel.me")
python3 echo_client.py

on client's side, error shown:
--- request header ---
GET / HTTP/1.1
Upgrade: websocket
Connection: Upgrade
Host: voiceminder.localtunnel.me
Origin: http://voiceminder.localtunnel.me
Sec-WebSocket-Key: 56Z81kA/Uw6oy92EUTDJSQ==
Sec-WebSocket-Version: 13


--- response header ---
HTTP/1.1 200 OK
Server: nginx/1.10.1

Date: Mon, 20 Nov 2017 14:31:15 GMT
Content-Type: text/html; charset=utf-8
Content-Length: 13
Connection: keep-alive

Traceback (most recent call last):
File "echo_client.py", line 6, in
ws = websocket.create_connection("ws://voiceminder.localtunnel.me")
File "/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/site-packages/websocket/_core.py", line 487, in create_connection
websock.connect(url, **options)
File "/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/site-packages/websocket/_core.py", line 214, in connect
self.handshake_response = handshake(self.sock, *addrs, **options)
File "/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/site-packages/websocket/_handshake.py", line 69, in handshake
status, resp = _get_resp_headers(sock)
File "/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/site-packages/websocket/_handshake.py", line 129, in _get_resp_headers
raise WebSocketBadStatusException("Handshake status %d", status)
websocket._exceptions.WebSocketBadStatusException: Handshake status 200

Timer in different class

to a separate class. Then import it, incase we will use our countdown in other parts of voiceminder

Conversation object

easier to reason about start and end of conversation
problems observed

-it is echoing sometimes
-seems like it gets confused with user.name and recipient name
-3way is shaky at best

Create Database for Managing User and Conversation

Create the following tables:
User(uid, username, nickname, m_at, c_at)
Conversation(user1(FK User), user2(FK User), cid, m_at, c_at)
Conv0_Msgs(cid(FK Conversation), uid(FK User), msg, m_at, c_at)

for james, create tables
for jon and kai, investigate tornado db access

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.