rhubarb-lip-sync/src/main.cpp

17 lines
482 B
C++
Raw Normal View History

2015-09-28 19:19:39 +00:00
#include <iostream>
#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[]) {
// 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
std::map<centiseconds, Phone> phones = detectPhones(std::move(audioStream));
2015-09-10 19:31:25 +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
}