2015-09-28 19:19:39 +00:00
|
|
|
#include <iostream>
|
2015-11-18 19:59:03 +00:00
|
|
|
#include "audio_input/WaveFileReader.h"
|
|
|
|
#include "phone_extraction.h"
|
2015-09-28 19:19:39 +00:00
|
|
|
|
2015-09-10 19:31:25 +00:00
|
|
|
int main(int argc, char *argv[]) {
|
2015-11-18 19:59:03 +00:00
|
|
|
// Create audio stream
|
|
|
|
std::unique_ptr<AudioStream> audioStream(
|
|
|
|
new WaveFileReader(R"(C:\Users\Daniel\Desktop\audio-test\test 16000Hz 1ch 16bit.wav)"));
|
2015-09-10 19:31:25 +00:00
|
|
|
|
2015-11-18 19:59:03 +00:00
|
|
|
std::map<centiseconds, Phone> phones = detectPhones(std::move(audioStream));
|
2015-09-10 19:31:25 +00:00
|
|
|
|
2015-11-18 19:59:03 +00:00
|
|
|
for (auto& pair : phones) {
|
|
|
|
std::cout << pair.first << ": " << phoneToString(pair.second) << "\n";
|
2015-09-10 19:31:25 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
return 0;
|
2015-09-10 18:05:05 +00:00
|
|
|
}
|