Skip to content

Commit 7ea15e4

Browse files
authored
Fix output format of transcribe_file.py client
1 parent 79b8000 commit 7ea15e4

1 file changed

Lines changed: 0 additions & 5 deletions

File tree

scripts/asr/transcribe_file.py

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,6 @@
22
# SPDX-License-Identifier: MIT
33

44
import argparse
5-
from pathlib import Path
65

76
import os
87
import riva.client
@@ -89,8 +88,6 @@ def main() -> None:
8988
print(f"Invalid input file path: {args.input_file}")
9089
return
9190

92-
output_file = Path(f"output.txt").expanduser()
93-
9491
config = riva.client.StreamingRecognitionConfig(
9592
config=riva.client.RecognitionConfig(
9693
language_code=args.language_code,
@@ -136,8 +133,6 @@ def main() -> None:
136133
audio_chunks=audio_chunk_iterator,
137134
streaming_config=config,
138135
),
139-
output_file=output_file,
140-
file_mode='a',
141136
show_intermediate=args.show_intermediate,
142137
additional_info="time" if (args.word_time_offsets or args.speaker_diarization) else ("confidence" if args.print_confidence else "no"),
143138
word_time_offsets=args.word_time_offsets or args.speaker_diarization,

0 commit comments

Comments
 (0)