@ww_nero/media 1.0.4 → 1.0.5
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/index.js +3 -10
- package/package.json +1 -1
package/index.js
CHANGED
|
@@ -230,15 +230,8 @@ const runAsrScript = (audioPath, outputPath, uploadUrl, apiKey) => {
|
|
|
230
230
|
const isWsl = isWslEnvironment();
|
|
231
231
|
|
|
232
232
|
// 参考 bash.js 的调用方式,通过 bash -ic 执行命令
|
|
233
|
-
|
|
234
|
-
|
|
235
|
-
cmd = 'bash';
|
|
236
|
-
args = ['-ic', pythonCommand];
|
|
237
|
-
} else {
|
|
238
|
-
// Windows 环境,通过 wsl 调用 bash
|
|
239
|
-
cmd = 'wsl';
|
|
240
|
-
args = ['-e', 'bash', '-ic', pythonCommand];
|
|
241
|
-
}
|
|
233
|
+
cmd = 'bash';
|
|
234
|
+
args = ['-ic', pythonCommand];
|
|
242
235
|
|
|
243
236
|
const child = spawn(cmd, args, {
|
|
244
237
|
stdio: ['pipe', 'pipe', 'pipe'],
|
|
@@ -324,7 +317,7 @@ const asr = async ({ working_directory, audio_file }) => {
|
|
|
324
317
|
const server = new Server(
|
|
325
318
|
{
|
|
326
319
|
name: 'media',
|
|
327
|
-
version: '1.0.
|
|
320
|
+
version: '1.0.5',
|
|
328
321
|
},
|
|
329
322
|
{
|
|
330
323
|
capabilities: {
|