From 758a9de73ec6eb7f5116d130e83fc577469d8a61 Mon Sep 17 00:00:00 2001 From: Fangjun Kuang Date: Sat, 26 Oct 2024 14:22:25 +0800 Subject: [PATCH] Fix a typo --- sherpa-onnx/csrc/offline-stream.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sherpa-onnx/csrc/offline-stream.cc b/sherpa-onnx/csrc/offline-stream.cc index 7c5865a63..6fa0ca6c8 100644 --- a/sherpa-onnx/csrc/offline-stream.cc +++ b/sherpa-onnx/csrc/offline-stream.cc @@ -169,7 +169,7 @@ class OfflineStream::Impl { resampler->Resample(waveform, n, true, &samples); if (is_moonshine_) { - samples_.insert(samples_.end(), samples_.begin(), samples.end()); + samples_.insert(samples_.end(), samples.begin(), samples.end()); } else if (fbank_) { fbank_->AcceptWaveform(config_.sampling_rate, samples.data(), samples.size());