How to save transcript to a text file in Mozilla DeepSpeech?

1.2k views Asked by At

This command is working and display the output

However I could not find the command to save the output a text file

What are my options? I want to generate text of speech to upload youtube video for subtitling (yes youtube algorithm failed to auto generate)

deepspeech --model deepspeech-0.8.2-models.pbmm --scorer deepspeech-0.8.2-models.scorer --audio audio/a.wav

Here the above command output but I can not save output to a file which I need

enter image description here

2

There are 2 answers

0
TakeItEasyDude On BEST ANSWER

Just add

> output.txt

In your case:

deepspeech --model deepspeech-0.8.2-models.pbmm --scorer deepspeech-0.8.2-models.scorer --audio audio/a.wav > output.txt
1
Olaf On

Why don't you use the JSON output of the native client? Add

--json

to your call. For more options check the argument list.