Set is_final and start_time for online websocket server. (#342)
* Set is_final and start_time for online websocket server. * Convert timestamps to a json array
This commit is contained in:
@@ -43,6 +43,8 @@ class OnlineStream::Impl {
|
||||
|
||||
int32_t &GetNumProcessedFrames() { return num_processed_frames_; }
|
||||
|
||||
int32_t GetNumFramesSinceStart() const { return start_frame_index_; }
|
||||
|
||||
int32_t &GetCurrentSegment() { return segment_; }
|
||||
|
||||
void SetResult(const OnlineTransducerDecoderResult &r) { result_ = r; }
|
||||
@@ -126,6 +128,10 @@ int32_t &OnlineStream::GetNumProcessedFrames() {
|
||||
return impl_->GetNumProcessedFrames();
|
||||
}
|
||||
|
||||
int32_t OnlineStream::GetNumFramesSinceStart() const {
|
||||
return impl_->GetNumFramesSinceStart();
|
||||
}
|
||||
|
||||
int32_t &OnlineStream::GetCurrentSegment() {
|
||||
return impl_->GetCurrentSegment();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user