IPS-LMU / emuR

The main R package for the EMU Speech Database Management System (EMU-SDMS)
http://ips-lmu.github.io/EMU.html
23 stars 15 forks source link

Primary file extension not defined in legacy EMU template file #249

Open krisbara opened 3 years ago

krisbara commented 3 years ago

emuR version 2.2.0

I am using the function convert_legacyEmuDB() with my file (.hlb). It appears an error 'Primary file extension not defined in legacy EMU template file'.

However, it creates a folder (name.hlb_emuDB) with the file containing the next information:

{
  "name": "vp01-HLL-linn0.ton",
  "UUID": "4d3d5807-6618-423d-8338-5c8158da0943",
  "mediafileExtension": {},
  "ssffTrackDefinitions": [],
  "levelDefinitions": [],
  "linkDefinitions": [],
  "EMUwebAppConfig": {
    "perspectives": [
      {
        "name": "default",
        "signalCanvases": {
          "order": ["OSCI", "SPEC"],
          "assign": [],
          "contourLims": []
        },
        "levelCanvases": {
          "order": []
        },
        "twoDimCanvases": {
          "order": []
        }
      }
    ],
    "activeButtons": {
      "saveBundle": true,
      "showHierarchy": true
    }
  }
}

The function 'summary' shows:

Name:    vp01-HLL-linn0.hlb 
UUID:    c9fa6d92-0b33-49ce-86ab-43243cede98c 
Directory:   C:\work\konstanz\05 May\R-Studio\vp01-HLL-linn0.hlb_emuDB 
Session count: 0 
Bundle count: 0 
Annotation item count:  0 
Label count:  0 
Link count:  0 

Database configuration:

SSFF track definitions:
NULL

Level definitions:
NULL

Link definitions:
NULL
> summary(vp01)  
Name:    vp01-HLL-linn0.hlb 
UUID:    c9fa6d92-0b33-49ce-86ab-43243cede98c 
Directory:   C:\work\vp01-HLL-linn0.hlb_emuDB 
Session count: 0 
Bundle count: 0 
Annotation item count:  0 
Label count:  0 
Link count:  0 

Database configuration:

SSFF track definitions:
NULL

Level definitions:
NULL

Link definitions:
NULL

It would be great if you could help me to deal with this issue. I need this file to convert into TextGrid afterwards.

raphywink commented 3 years ago

You will have to address the error: Primary file extension not defined in legacy EMU template file as the conversion function doesn't know which audio/media files to look 4. The reason a directory is created is because it initially converts the tpl file to the DBconfig.json file then keeps on going. The generated emuDB ist basically broken and can not be regarded as a working database (simply delete and retry). You will prob. have to fix/add this line to your .tpl file:

https://github.com/IPS-LMU/emuR/blob/master/inst/extdata/rawDemoData/configFiles/ae.tpl#L65