jjmaldonis / obsidian-audio-notes

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

How can I Generate a Transcript use this plugin? #5

Closed YIRU69 closed 1 year ago

YIRU69 commented 1 year ago

I can't do this, but I really want to achieve it. How can I do? When I star the command and I will get the error.

Audio Notes: SyntaxError: Unexpected token i in JSON at position 0
eval    @   plugin:obsidian-audio-notes:11150
Promise.catch(异步)       
eval    @   plugin:obsidian-audio-notes:11149
Promise.then(异步)        
checkCallback   @   plugin:obsidian-audio-notes:11138
XN  @   app.js:1
t.onChooseItem  @   app.js:1
t.onChooseSuggestion    @   app.js:1
t.selectSuggestion  @   app.js:1
e.useSelectedItem   @   app.js:1
e.onSuggestionClick @   app.js:1
s   @   enhance.js:1
jjmaldonis commented 1 year ago

Hey, that indicates the transcript file is not formatted properly. Either the filename is incorrect, or the file isn't in JSON format.

The transcript file must be in JSON format and it must have the following information in it:

{
  "segments": [
    {"start": <float>, "end": <float>, "text": "<the sentence/text>"}
  ]
}

where start and end are the times in the audio (in seconds) when the text is spoken.

I'm working on some new features that will help with transcription, so if you can explain what's going on in more detail then I hope to make it easier to generate a transcript in the future.

YIRU69 commented 1 year ago

Thank you, sir. I understand what happen.

YIRU69 commented 1 year ago

Be the way, it is difficult to install whisper on windows computer for me.

jjmaldonis commented 1 year ago

Okay thanks for the info, I'll try to add more info about it and make it easier in the future.