step1_DNNenh_for16kHz.exe can't run
fengfall opened this issue · 6 comments
when i run step1_DNNenh_for16kHz.exe ,it report error, my os is WINDOWS7.
when i run help/step1_DNNenh_for16kHz.m it report error :
sh: helpWAV2RAW.exe: command not found
sh: copy: command not found
Error using fread
Invalid file identifier. Use fopen to generate a valid file identifier.
Error in readhtk_new (line 12)
nframes = fread(fid,1,'int32');
Error in step1_DNNenh_for16kHz (line 66)
[htkdata,nframes,sampPeriod,sampSize,paramKind]=readhtk_new(tline,'le');
thanks.
you can use 'help/step1_DNNenh_for16kHz.m' instead of 'step1_DNNenh_for16kHz.exe', to see clearly. 'WAV2RAW.exe' also in help dir.
regards,
yong
thank you for your response , it seems that *.exe can't work well (my pc os is WIN7),
when i run help/step1_DNNenh_for16kHz.m it report error :
sh: helpWAV2RAW.exe: command not found
sh: copy: command not found
could you provide the *.exe source code? then i can implement it by matlab or python.
copy step1_DNNenh_for16kHz.m to the father dir (same place with step1_DNNenh_for16kHz.exe), it should run ok with matlab. My OS is win10. WAV2RAW.exe is just there. copy is the OS command.
wav2raw. c source code:
#define _CRT_SECURE_NO_DEPRECATE
/*-----------------
- File Inclusions
-----------------/
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <math.h>
extern int
main (int argc, char *argv[])
{
FILE *fp_in, *fp_out;
short data;
if(3 != argc)
{
printf("Usage: WAV2RAW Input Output!\n");
exit(0);
}
fp_in = fopen (argv[1], "rb");
if (fp_in == NULL)
{
printf ("Could not open file %s!\n", argv[1]);
exit(0);
}
fp_out = fopen (argv[2], "wb");
if (fp_out == NULL)
{
printf ("Could not open file %s!\n", argv[2]);
exit(0);
}
fseek(fp_in,44L,SEEK_SET);
while(fread(&data, sizeof(short), 1, fp_in))
{
fwrite(&data, sizeof(short), 1, fp_out);
}
fclose(fp_in);
fclose(fp_out);
}
I copy step1_DNNenh_for16kHz.m to the father dir,it report the same error.
with wav2raw. c source code, it only cut the wav file's head ,can be implement quickly. so could you provide HCopy.exe LogSpec2raw_16bit_withoutXF.exe LogSpec2Wav_lenMulti20.exe Raw2Wav.exe Wav2LogSpec.exe these souce code?
Thank you very much!