zhuzizyf
2023-04-22 4f8bce944e273e317cb84c7046ea514b9d958b4b
funasr/runtime/onnxruntime/include/Audio.h
@@ -2,13 +2,10 @@
#ifndef AUDIO_H
#define AUDIO_H
#include <ComDefine.h>
#include <queue>
#include <stdint.h>
#include "Model.h"
#ifndef model_sample_rate
#define model_sample_rate 16000
#endif
#ifndef WAV_HEADER_SIZE
#define WAV_HEADER_SIZE 44
#endif
@@ -27,7 +24,7 @@
    ~AudioFrame();
    int set_start(int val);
    int set_end(int val, int max_len);
    int set_end(int val);
    int get_start();
    int get_len();
    int disp();
@@ -57,7 +54,7 @@
    int fetch_chunck(float *&dout, int len);
    int fetch(float *&dout, int &len, int &flag);
    void padding();
    void split();
    void split(Model* pRecogObj);
    float get_time_len();
    int get_queue_size() { return (int)frame_queue.size(); }