codi6
codi6

Reputation: 566

trying to get AWS Transcribe output into readable format

I'm trying to use t.scribe to transcribe an AWS transcription.

pip install tscribe
Successfully installed
aws-transcribe-transcript-master istrauss$ tscribe.write("gabi.json", format="docx")
-bash: syntax error near unexpected token `"gabi.json",'

I copied the format in the doc exactly (just changed the file name to my file) so I don't know what the syntax error could be.

This is my third attempt to convert my json transcription into something more readable. I'm just looking for a simple way to do this — it's just for me to view my own transcript locally, and there's only one speaker.

Upvotes: 2

Views: 2827

Answers (1)

John Rotenstein
John Rotenstein

Reputation: 269520

tscribe · PyPI is a Python library. You would need to call it from a Python script:

import tscribe

tscribe.write("gabi.json", format="docx")

The output you show in your question is running it in the bash command line, not as Python.

Alternatively, you can use:

Upvotes: 3

Related Questions