Skip to content

Commit 4f742cd

Browse files
authored
Merge pull request #101 from chhoumann/transcribe
Add Transcribe feature via Whisper
2 parents f1e10bd + e27067f commit 4f742cd

13 files changed

+1074
-188
lines changed

docs/docs/commands.md

Lines changed: 10 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -31,12 +31,12 @@ This will reload PodNotes.
3131
## Capture Timestamp
3232
This will capture the current timestamp of the currently playing episode.
3333

34-
See [timestamps](/timestamps) for more information on timestamp templates.
34+
See [timestamps](timestamps.md) for more information on timestamp templates.
3535

3636
## Create Podcast Note
3737
This will create a note for the currently playing episode.
3838

39-
See [templates](/templates) for more information on note templates.
39+
See [templates](templates.md) for more information on note templates.
4040

4141
## Copy universal episode link to clipboard
4242
This will copy the universal episode link to the clipboard.
@@ -46,4 +46,11 @@ Then, it asks pod.link for an episode ID, after which it constructs the universa
4646

4747
Episode links look like this: [https://pod.link/1138055739/episode/1732808e781cc64a30d7feba0467b63a](https://pod.link/1138055739/episode/1732808e781cc64a30d7feba0467b63a).
4848

49-
They can be used to share the episode with others, no matter what podcast app they use.
49+
They can be used to share the episode with others, no matter what podcast app they use.
50+
51+
## Transcribe current episode
52+
This command will transcribe the currently playing episode using OpenAI's Whisper model.
53+
54+
The transcription will be saved in the location specified in the transcript settings.
55+
56+
Note: This feature requires an OpenAI API key to be set in the settings.

docs/docs/transcripts.md

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
# Transcripts
2+
3+
PodNotes allows you to create transcripts of podcast episodes using OpenAI's Whisper model.
4+
5+
## Setting Up
6+
7+
Before you can use the transcription feature, you need to set up a few things:
8+
9+
1. **OpenAI API Key**: You need to have an OpenAI API key. You can get one by signing up at [OpenAI's website](https://openai.com/). Once you have the key, enter it in the PodNotes settings under the "Transcript settings" section.
10+
11+
2. **Transcript File Path**: In the settings, you can specify where you want the transcript files to be saved. You can use placeholders like `{{podcast}}` and `{{title}}` in the path.
12+
13+
3. **Transcript Template**: You can also customize how the transcript content is formatted using a template.
14+
15+
## Creating a Transcript
16+
17+
To create a transcript:
18+
19+
1. Start playing the podcast episode you want to transcribe.
20+
2. Use the "Transcribe current episode" command in Obsidian.
21+
3. PodNotes will download the episode (if it hasn't been downloaded already), split it into chunks, and send these chunks to OpenAI for transcription.
22+
4. Once the transcription is complete, a new file will be created at the specified location with the transcribed content.
23+
24+
## Transcript Template
25+
26+
The transcript template works similarly to the [note template](./templates.md#note-template), but with the added `{{template}}` placeholder.

docs/mkdocs.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@ nav:
77
- Podcasts: podcasts.md
88
- 'Local files': local_files.md
99
- "Import & Export": import_export.md
10+
- Transcripts: transcripts.md
1011
- 'Notes':
1112
- Timestamps: timestamps.md
1213
- Templates: templates.md

esbuild.config.mjs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@ esbuild.build({
5656
],
5757
format: 'cjs',
5858
watch: !prod,
59-
target: 'es2016',
59+
target: 'es2020',
6060
logLevel: "info",
6161
sourcemap: prod ? false : 'inline',
6262
treeShaking: true,

0 commit comments

Comments
 (0)