obsidian-audio-notes icon indicating copy to clipboard operation
obsidian-audio-notes copied to clipboard

Transcript file does not have start and end times for at least one text entry

Open BradGregersen opened this issue 11 months ago • 2 comments

I love the concept of this plugin, I am having an issue when I try to create a new audio note. I have the .json file for an audio book which was transcribed through Deepgram. I set the file path and when i try to make a new audio note it gives me this error: "Transcript file does not have start and end times for at least one text entry". Any help or clarification that you can provide on this would be greatly appreciated. I'm very excited to use this plugin to take notes!

BradGregersen avatar Mar 25 '24 19:03 BradGregersen

Hey @BradGregersen! This likely means there's something wrong with the transcript file. Using your computer's file explorer, go to the transcripts/ folder in your vault. You should see a <filename>.json file in that folder. The file should contain the transcript of the audio that was transcribed. Try opening the file in a text editor and seeing what's inside.

The contents of the file should look like the below. Can you verify that's true?

{"segments": [
  {
    "id": 0,
    "start": 0.27927083,
    "end": 8.913403,
    "text": "..."
  },
  {
    "id": 1,
    "start": 9.073196,
    "end": 11.150516,
    "text": "..."
  },
  {
    "id": 2,
    "start": 11.470103,
    "end": 15.305155,
    "text": "..."
  },
  ...
]}

jjmaldonis avatar Mar 26 '24 02:03 jjmaldonis

@jjmaldonis Thank you so much for your quick reply! I verified the format of the .json file. Also, for reference, i used the " Transcribe mp3 file online " command to generate the transcript. Here's a sample of the text, I used Microsoft Visual Studio to open it in case that matters:

"{"segments": [ { "id": 0, "start": 0:5984375, "end": 1:7155209, "text": "This is audible." }, { "id": 1, "start": 27.12871, "end": 29.678387, "text": "How How this book was written and why?" }, { "id": 2, "start": 30.873549, "end": 34.85742, "text": "In In 19 o 9, I was 1 of the unhappiness lads in New York."

BradGregersen avatar Mar 26 '24 18:03 BradGregersen