|
|
|
@ -33,7 +33,7 @@ int main(int argc, char* argv[]) {
|
|
|
|
|
kaldi::TokenWriter result_writer(FLAGS_result_wspecifier);
|
|
|
|
|
|
|
|
|
|
int sample_rate = FLAGS_sample_rate;
|
|
|
|
|
float streaming_chunk = FLAGS_streaming_chunk;
|
|
|
|
|
float streaming_chunk = 0.1;
|
|
|
|
|
int chunk_sample_size = streaming_chunk * sample_rate;
|
|
|
|
|
LOG(INFO) << "sr: " << sample_rate;
|
|
|
|
|
LOG(INFO) << "chunk size (s): " << streaming_chunk;
|
|
|
|
@ -96,4 +96,4 @@ int main(int argc, char* argv[]) {
|
|
|
|
|
KALDI_LOG << " cost:" << elapsed << " s";
|
|
|
|
|
KALDI_LOG << "total wav duration is: " << tot_wav_duration << " s";
|
|
|
|
|
KALDI_LOG << "the RTF is: " << elapsed / tot_wav_duration;
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|