Menu

SphinxTrain: patch for wave2feat

Help
2010-03-08
2012-09-22
  • Michele Alessandrini

    Hi, I'm proposing a little patch to wave2feat: when "-verbose" is set to "no",
    still the string "LENGTH: 4" alone is printed a lot of times (once for every
    processed file). Here is the patch:
    Bye
    Michele Alessandrini, Italy

    --- src/programs/wave2feat/wave2feat.c (revision 9670)
    +++ src/programs/wave2feat/wave2feat.c (working copy)
    @@ -746,7 +746,7 @@
    char readChar;
    char *dataString = "data";
    int16 charPointer = 0;
    - printf("LENGTH: %zu\n", strlen(dataString));
    + if (P->verbose) printf("LENGTH: %zu\n", strlen(dataString));
    while (found != ON) {
    if (read(fp,&readChar,sizeof(char)) != sizeof(char)){
    E_ERROR("Failed reading wav file.\n");

     
  • Nickolay V. Shmyrev

    Fixed, thanks.

     

Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.