File tree 4 files changed +6
-4
lines changed
4 files changed +6
-4
lines changed Original file line number Diff line number Diff line change @@ -132,7 +132,7 @@ jobs:
132
132
export PATH=/c/hostedtoolcache/windows/Python/3.9.13/x64/bin:$PATH
133
133
export PATH=/c/hostedtoolcache/windows/Python/3.10.11/x64/bin:$PATH
134
134
export PATH=/c/hostedtoolcache/windows/Python/3.11.9/x64/bin:$PATH
135
- export PATH=/c/hostedtoolcache/windows/Python/3.12.3 /x64/bin:$PATH
135
+ export PATH=/c/hostedtoolcache/windows/Python/3.12.4 /x64/bin:$PATH
136
136
137
137
which sherpa-onnx
138
138
sherpa-onnx --help
Original file line number Diff line number Diff line change @@ -107,7 +107,7 @@ jobs:
107
107
export PATH=/c/hostedtoolcache/windows/Python/3.9.13/x64/bin:$PATH
108
108
export PATH=/c/hostedtoolcache/windows/Python/3.10.11/x64/bin:$PATH
109
109
export PATH=/c/hostedtoolcache/windows/Python/3.11.9/x64/bin:$PATH
110
- export PATH=/c/hostedtoolcache/windows/Python/3.12.3 /x64/bin:$PATH
110
+ export PATH=/c/hostedtoolcache/windows/Python/3.12.4 /x64/bin:$PATH
111
111
112
112
sherpa-onnx --help
113
113
sherpa-onnx-keyword-spotter --help
Original file line number Diff line number Diff line change @@ -143,7 +143,7 @@ def main():
143
143
(model .chunk_size - 1 ) * model .subsampling_factor + model .right_context + 1
144
144
)
145
145
chunk_length = int (chunk_length )
146
- chunk_shift = int (model .required_cache_size )
146
+ chunk_shift = int (model .chunk_size * model . subsampling_factor )
147
147
print (chunk_length , chunk_shift )
148
148
149
149
num_frames = x .shape [0 ]
Original file line number Diff line number Diff line change @@ -97,7 +97,9 @@ class OnlineWenetCtcModel::Impl {
97
97
right_context_ + 1 ;
98
98
}
99
99
100
- int32_t ChunkShift () const { return required_cache_size_; }
100
+ int32_t ChunkShift () const {
101
+ return config_.wenet_ctc .chunk_size * subsampling_factor_;
102
+ }
101
103
102
104
OrtAllocator *Allocator () const { return allocator_; }
103
105
You can’t perform that action at this time.
0 commit comments