Skip to content

IPS-LMU/IPS-EMUprot-nodeWSserver

Repository files navigation

IPS-EMUprot-nodeWSserver.js

Out of funding

Unfortunately, the EMU-SDMS is currently out of funding.

We at the IPS will do what we can to fix bugs, security issues or necessary adjustments to new versions of R; but we cannot currently work on new features or performance improvements.

We would be very glad if funding in academia allowed for more technical staff to maintain software used by the research community.

Quick start (not meant for prod. use!)

  • npm install
  • node IPS-EMUprot-nodeWSserver.js server_config.json | node_modules/bunyan/bin/bunyan
  • go to https://ips-lmu.github.io/EMU-webApp/?autoConnect=true&serverUrl=ws:%2F%2Flocalhost:17890/ae (not the rel. )
  • login as testuser with password 1234 (user details saved in IPS-EMUprot-nodeWSserver.DB. For more information see manageSQLiteDB.js.)
  • the bundles specified in emuDBs/ae_emuDB/bundleLists/testuser_bundleList.json should now be shown in the EMU-webApp

JSON validation

This server also implements a simple validation server to validate JSON files used by the new EMU speech database management system

Validate _annot.json files

curl

Validate _annot.json file:

curl -H "Content-Type: applicationjson" --data-binary @msajc003_annot.json http://localhost:17890/_annot

Validate _DBconfig.json file:

curl -H "Content-Type: applicationjson" --data-binary @ae_DBconfig.json http://localhost:17890:17890/_DBconfig

RCurl

library('RCurl')
library('jsonlite')

# validate _annot.json
json_file = '~/Desktop/emuR_demoData/ae_emuDB/0000_ses/msajc003_bndl/msajc003_annot.json'
json_data = fromJSON(paste(readLines(json_file), collapse=""))
headers <- list('Accept' = 'application/json', 'Content-Type' = 'application/json')
postForm("https://webapp2.phonetik.uni-muenchen.de:17890/_annot", .opts=list(postfields=paste(readLines(json_file), collapse=""), httpheader=headers))

# validate _DBconfig.json
json_file = '~/Desktop/emuR_demoData/ae_emuDB/ae_DBconfig.json'
json_data = fromJSON(paste(readLines(json_file), collapse=""))
headers <- list('Accept' = 'application/json', 'Content-Type' = 'application/json')
postForm("https://webapp2.phonetik.uni-muenchen.de:17890/_DBconfig", .opts=list(postfields=paste(readLines(json_file), collapse=""), httpheader=headers))

Main authors

Raphael Winkelmann

Markus Jochim

Affiliations

INSTITUTE OF PHONETICS AND SPEECH PROCESSING

For Maintainers

Be sure to check and update the /vnbdata/emuDBs/README file if any breaking changes / new features are implemented! This will probably not be necessary any more once people start using the manager.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published