mirror of
https://github.com/occ-ai/obs-localvocal
synced 2024-11-07 18:57:14 +00:00
15 lines
375 B
C++
15 lines
375 B
C++
#ifndef WHISPER_PROCESSING_H
|
|
#define WHISPER_PROCESSING_H
|
|
|
|
// buffer size in msec
|
|
#define BUFFER_SIZE_MSEC 3000
|
|
// at 16Khz, 3000 msec is 48000 samples
|
|
#define WHISPER_FRAME_SIZE 48000
|
|
// overlap in msec
|
|
#define OVERLAP_SIZE_MSEC 200
|
|
|
|
void whisper_loop(void *data);
|
|
struct whisper_context *init_whisper_context(const std::string &model_path);
|
|
|
|
#endif // WHISPER_PROCESSING_H
|