https://github.com/karan/speekr
Simple app to help learn spoken languages using experimental Chrome APIs
https://github.com/karan/speekr
Last synced: 24 days ago
JSON representation
Simple app to help learn spoken languages using experimental Chrome APIs
- Host: GitHub
- URL: https://github.com/karan/speekr
- Owner: karan
- Created: 2014-07-12T02:02:23.000Z (over 11 years ago)
- Default Branch: master
- Last Pushed: 2014-07-13T19:02:41.000Z (over 11 years ago)
- Last Synced: 2025-02-12T07:10:57.275Z (11 months ago)
- Language: JavaScript
- Homepage: https://speekr.herokuapp.com/
- Size: 782 KB
- Stars: 9
- Watchers: 8
- Forks: 3
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
Speekr
======
Simple app to help learn spoken languages using experimental Chrome APIs. LinkedIn Hack Day 2014 project.
### Basic Idea
Basically, what we wanted to do was play with experimental Speech Synthesis and Web Speech API's to make something useful and cool. This simple app will help you learn spoken languages in native accent. Sign in and select the language you like. You'll see and hear the native prononciation of a word/phrase which you then have to repeat.
### Quickstart
#### Start server
```bash
$ nodemon .
```
#### Start development
```bash
$ gulp
```
## API
**Requires sign-in**
#### `/`
Return `user` if the user is logged in otherwise not.
#### `GET /user`
Returns details of logged in user in JSON format.
Returns 401 error and `{}` if no user logged in
#### `GET /next_thing`
Parameters:
`lang`: `en`, `es`, `zh`, `fr`
Response:
{
thingType: "1",
lang: "en",
thing: "your",
_id: "53c0d3d33d0a940000b5aab8",
__v: 0,
created_at: "2014-07-12T06:21:07.468Z"
}
#### `POST /submit_score`
Submit score of a play
Body params:
`lang` : en, es, zh, fr
`score` : a score to send
Returns new user object
#### `GET /leaderboard`
Returns list of all users
## Calculate score between strings:
script(src="js/levenshtein.js")
script(src="js/score.js")
Score("abc", "abcd", "2") // 1 = word, 2 = sentence, 3 = para
>> 2
## Icons
link(href="//maxcdn.bootstrapcdn.com/font-awesome/4.1.0/css/font-awesome.min.css", rel="stylesheet")
fa-microphone - click to start listening, listen again
fa-repeat - re-listen the text
fa-arrow-right - skip/next thing