hnluo
2023-04-17 24f73665e2d8ea8e4de2fe4f900bc539d7f7b989
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
 
#ifndef SPEECHWRAP_H
#define SPEECHWRAP_H
 
#include <stdint.h>
 
class SpeechWrap {
  private:
    float cache[400];
    int cache_size;
    float *in;
    int in_size;
    int total_size;
    int next_cache_size;
 
  public:
    SpeechWrap();
    ~SpeechWrap();
    void load(float *din, int len);
    void update(int offset);
    void reset();
    int size();
    float &operator[](int i);
};
 
#endif