An open API service indexing awesome lists of open source software.

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

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