We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent d454220 commit c231097Copy full SHA for c231097
docs/source/asr/intro.rst
@@ -31,9 +31,9 @@ You can also obtain timestamps for each word in the transcription as follows:
31
from omegaconf import OmegaConf, open_dict
32
decoding_cfg = asr_model.cfg.decoding
33
with open_dict(decoding_cfg):
34
- decoding_cfg.preserve_alignments = True
35
- decoding_cfg.compute_timestamps = True
36
- asr_model.change_decoding_strategy(decoding_cfg)
+ decoding_cfg.preserve_alignments = True
+ decoding_cfg.compute_timestamps = True
+ asr_model.change_decoding_strategy(decoding_cfg)
37
38
# specify flag `return_hypotheses=True``
39
hypotheses = asr_model.transcribe(["path/to/audio_file.wav"], return_hypotheses=True)
0 commit comments