Merge pull request #2976 from lwalejko/fix_beam_width_setting_in_python_client

Fix beam width setting in python client
This commit is contained in:
Reuben Morais 2020-05-05 17:06:57 +02:00 committed by GitHub
commit 553c8ec6f1
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -120,7 +120,7 @@ def main():
print('Loaded model in {:.3}s.'.format(model_load_end), file=sys.stderr)
if args.beam_width:
ds.setModelBeamWidth(args.beam_width)
ds.setBeamWidth(args.beam_width)
desired_sample_rate = ds.sampleRate()