AssemblyAI / assemblyai-cli

CLI for the AssemblyAI API
Apache License 2.0
191 stars 27 forks source link

Saving a transcript in a json format encodes non-ascii characters as codes. It should keep it as text #122

Open nLight opened 1 month ago

nLight commented 1 month ago

Describe the bug Saving a transcript in a json format encodes non-ascii characters as codes. It should keep it as text.

To Reproduce

  1. assemblyai get <id> -> see normal text in the console
  2. assemblyai get -j <id> > output.json
  3. See something like
    {
    "start": 5510,
    "end": 6471,
    "text": "\u041f\u043e\u043f\u0440\u043e\u0431\u0443\u0435\u043c",
    "confidence": 0.904,
    "speaker": "A"
    },

Expected behavior expected to have text in json file

Desktop (please complete the following information):