File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 22# SPDX-License-Identifier: MIT
33
44import argparse
5- from pathlib import Path
65
76import os
87import 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 ,
You can’t perform that action at this time.
0 commit comments