jjmaldonis / obsidian-audio-notes

Easily take notes on podcasts and other audio files using Obsidian Audio Notes.
MIT License
146 stars 2 forks source link

Transcript file #11

Closed abdcef closed 1 year ago

abdcef commented 1 year ago

I converted my subtiltles from srt to json. The plugin does not seem to recognize it, and I get an error saying "cannot create audio note at the end of the file". Is there any specific text required in the json file?

jjmaldonis commented 1 year ago

The json requires a segments field with a list of {"start": ..., "end": ..., "text": ...} objects. So the full JSON format needs to be:

{
  "segments": [
    {"start": ..., "end": ..., "text": ...},
    {"start": ..., "end": ..., "text": ...},
    ...
  ]
}

However, I just added support for .srt files as transcripts in the latest version (0.2.7). If you update the plugin, you should be able to use your .srt file directly.