游雁
2023-05-08 63f1496cbb9d1cf5893a77489a9c8e5ef589ccf0
funasr/runtime/onnxruntime/src/audio.cpp
@@ -238,6 +238,15 @@
        return false;
    }
    
    if (!header.Validate()) {
        return false;
    }
    header.SeekToDataChunk(is);
    if (!is) {
        return false;
    }
    *sampling_rate = header.sample_rate;
    // header.subchunk2_size contains the number of bytes in the data.
    // As we assume each sample contains two bytes, so it is divided by 2 here
@@ -519,4 +528,4 @@
        frame_queue.push(frame);
        frame = NULL;
    }
}
}