File tree Expand file tree Collapse file tree 2 files changed +5
-4
lines changed Expand file tree Collapse file tree 2 files changed +5
-4
lines changed Original file line number Diff line number Diff line change @@ -237,7 +237,7 @@ def print_streaming(
237
237
for i , alternative in enumerate (result .alternatives ):
238
238
for f in output_file :
239
239
f .write (
240
- f"Time { time .time () - start_time :.2f} s: Transcript { i } : { alternative .transcript } \n "
240
+ f"Time { time .time () - start_time :.2f} s: Final Transcript { i } : Audio Processed { result . audio_processed } : { alternative .transcript } \n "
241
241
)
242
242
if word_time_offsets :
243
243
for f in output_file :
@@ -269,7 +269,7 @@ def print_streaming(
269
269
elif additional_info == 'time' :
270
270
for f in output_file :
271
271
if partial_transcript :
272
- f .write (f">>>Time { time .time ():.2f} s: { partial_transcript } \n " )
272
+ f .write (f">>>Time { time .time () - start_time :.2f} s: { partial_transcript } \n " )
273
273
else :
274
274
for f in output_file :
275
275
f .write ('----\n ' )
Original file line number Diff line number Diff line change @@ -61,13 +61,13 @@ def streaming_transcription_worker(
61
61
max_alternatives = args .max_alternatives ,
62
62
profanity_filter = args .profanity_filter ,
63
63
enable_automatic_punctuation = args .automatic_punctuation ,
64
- verbatim_transcripts = not args .no_verbatim_transcripts ,
64
+ verbatim_transcripts = not args .verbatim_transcripts ,
65
65
enable_word_time_offsets = args .word_time_offsets ,
66
66
model = args .model_name ,
67
67
),
68
68
interim_results = args .interim_results ,
69
69
)
70
- riva .client .add_word_boosting_to_config (config , args .boosted_lm_words , args .boosted_lm_score )
70
+ riva .client .add_word_boosting_to_config (config , args .boosted_words_file , args .boosted_words_score )
71
71
for _ in range (args .num_iterations ):
72
72
with riva .client .AudioChunkFileIterator (
73
73
args .input_file ,
@@ -80,6 +80,7 @@ def streaming_transcription_worker(
80
80
),
81
81
input_file = args .input_file ,
82
82
output_file = output_file ,
83
+ additional_info = 'time' ,
83
84
word_time_offsets = args .word_time_offsets ,
84
85
)
85
86
except BaseException as e :
You can’t perform that action at this time.
0 commit comments