Skip to content

ltruchot/laonetics

Repository files navigation

Laonetics

Laonetics is a Typescript/Javascript component to convert lao chars in english/french phonetic forms, aka karaoke.

Install: npm install --save laonetics

Use with Typescript:

import { LaoneticsTranslater, ISlicedSyllables } from 'laonetics';
const translater = new LaoneticsTranslater();
// exemple with rabbit word in lao: "ກະຕ່າຍ"
let slicedSyllables: ISlicedSyllables = translater.getKaraoke('ກະຕ່າຍ', ['fr', 'en', 'ph']);
/*
'slicedSyllables' now contains an Object with the typescript interface {
	lao: Array<string>;
	roms: Array<Array<string>>;
};
'lao' contains the sliced sentence in lao: ['ກະ', 'ຕາຍ']
'roms' contains an array for each language, ordered like asked: [
	['kâ', 'tâ:y'],	// french
	['ka', 'ta:i'],	// english
	['ka', 'taːɲ']	// IPA phonetics
]
*/

Or use with JavaScript:

const laonetics = require("laonetics");
const translater = new laonetics.LaoneticsTranslater();
let slicedSyllables = translater.getKaraoke('ກະຕ່າຍ', ['fr', 'en', 'ph']);

Current version: Beta v0.4.3 "Smart lao language karaoke".

Demo running here: laonetics.io

Licences: CC-BY-NC-4.0: you can use/copy/modify any code but only without commercial intentions.

Transparent & agile project management: Trello

Development watch && serve

Run npm run update && npm start for a dev server. Navigate to http://localhost:5000/. The app will automatically reload if you change any of the source files.

Run npm run update && node server.js for a prod server. Navigate to http://localhost:3000/. The app will automatically reload if you change any of the source files.

pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy