source: main/trunk/model-interfaces-dev/atea/korero-maori-asr/README.md@ 35454

Last change on this file since 35454 was 35454, checked in by cstephen, 3 years ago

Improve translations
Improve translation test return
Begin adding WordTimingSelector

File size: 1.5 KB
Line 
1# Korero Maori ASR Interface
2
3A Greenstone 3 interface for the Atea Project, allowing people to easily utilise the ASR service of https://koreromaori.io to transcribe reo Māori audio files.
4
5## Project setup
6
7Ensure that [node.js](https://nodejs.org) is on your path.
8
9You will also need to setup the Greenstone `koreromaori-proxy` extension. Visit https://trac.greenstone.org/browser/gs3-extensions/atea-nlp-tools/trunk/src/koreromaori-proxy to get the source.
10
11```
12npm install
13```
14
15### Compile and hot-reload for development
16
17This will open a development webserver on [localhost:8080](http://localhost:8080), that is detached from the running Greenstone instance (provided you haven't removed development-specific code).
18
19```
20npm run serve
21```
22
23### Compile and minify for production
24
25Firstly, development-specific code needs to be changed.
26
271. In `TranscribeModule.js` rename the transcribe methods to stop the test data being returned.
28
29 ```js
30 -- async transcribeFiles(files) {
31 ++ async transcribeFilesTest(files) {
32 // And
33 -- async transcribeFilesActual(files) {
34 ++ async transcribeFiles(files) {
35 ```
36
372. In `vue.config.js`, uncomment the `publicPath` property, and optionally change it to point to where your production distribution will be placed relative to the interface.
38
393. Finally, build the project.
40 ```
41 npm run build
42 ```
43
44### Lint and fix files
45
46This uses the settings in `.eslintrc.js` to lint the project, and attempts to fix mistakes accordingly.
47
48```
49npm run lint
50```
Note: See TracBrowser for help on using the repository browser.