#include <iostream>
#include "LTSD.h"
using namespace std;
int main() {
LTSD ltsd(256, 8000, 7);
short signal[256 * 10000];
for (int i = 0; i < 256 * 10000; i++){
signal[i] = (rand() * rand()) % (32767 * 2 + 1) - 32767;
}
char *sig = (char *)&signal[0];
for(int i = 0; i< 10000; i++){
bool is_signal = ltsd.process(sig);
(*sig)+=512;
cout << is_signal << endl;
if(is_signal){
char *hoge = ltsd.getSignal();
delete[] hoge;
}
}
return 0;
}
-
Notifications
You must be signed in to change notification settings - Fork 12
noise robust voice activity detection with noise tracker for ios/android
License
StevenLOL/vad_for_voip
Folders and files
Name | Name | Last commit message | Last commit date | |
---|---|---|---|---|
Repository files navigation
About
noise robust voice activity detection with noise tracker for ios/android
Resources
License
Stars
Watchers
Forks
Releases
No releases published
Packages 0
No packages published