Last active
April 9, 2020 01:56
-
-
Save slegroux/cc414bf9f64bfdfef0688ba2fb04c762 to your computer and use it in GitHub Desktop.
read wave specifier
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
void ReadWaveSpecifier(){ | |
std::string wav_rspecifier = "scp:data/wav.scp"; | |
SequentialTableReader<WaveHolder> wav_reader(wav_rspecifier); | |
for (; !wav_reader.Done(); wav_reader.Next()){ | |
std::string key = wav_reader.Key(); | |
WaveData wave_data = wav_reader.Value(); | |
cout << "wav_spec dur: "<<wave_data.Duration()<<endl; | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment