UNPKG

@mindconnect/mindconnect-nodejs

Version:

NodeJS Library for MindSphere Connectivity - TypeScript SDK for MindSphere - MindSphere Command Line Interface - MindSphere Development Proxy

20 lines 694 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.spectralAnalysisTemplate = void 0; const spectralAnalysisTemplate = (file, filename = "file.wav", windowType = "FLATTOP", mimeType = "audio/wave") => ` ----mindsphere\r\n\ Content-Disposition: form-data; name="file"; filename="${filename}"\ \r\n\ Content-Type: ${mimeType}\ \r\n\r\n${file.toString("ascii")}\r\n ----mindsphere\r\n\ Content-Disposition: form-data; name="fftProperties"\ \r\n\ Content-Type: ${"application/json"}\ \r\n\ { windowType: "${windowType}" } \r\n----mindsphere--`; exports.spectralAnalysisTemplate = spectralAnalysisTemplate; //# sourceMappingURL=spectrum-analysis-template.js.map