MCPcopy Create free account
hub / github.com/diffusionstudio/vits-web / locateFile

Function locateFile

src/piper.js:750–755  ·  view source on GitHub ↗
(path)

Source from the content-addressed store, hash-verified

748 typeof process.versions.node == 'string';
749 var scriptDirectory = '';
750 function locateFile(path) {
751 if (Module['locateFile']) {
752 return Module['locateFile'](path, scriptDirectory);
753 }
754 return scriptDirectory + path;
755 }
756 var read_, readAsync, readBinary;
757 if (ENVIRONMENT_IS_NODE) {
758 var fs = require('fs');

Callers 1

piper.jsFile · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected