This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import pdfplumber | |
from pydub import AudioSegment | |
import subprocess | |
import os | |
def pdf_to_text(pdf_path, start_page, end_page): | |
pdf_text = "" | |
with pdfplumber.open(pdf_path) as pdf: | |
for page_num in range(start_page, end_page + 1): | |
page = pdf.pages[page_num] |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
pip install pdfplumber | |
pip install pydub |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import pdfplumber | |
from gtts import gTTS | |
def pdf_to_text(pdf_path): | |
pdf_text = "" | |
with pdfplumber.open(pdf_path) as pdf: | |
for page in pdf.pages: | |
pdf_text += page.extract_text() | |
return pdf_text |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
pip install pdfplumber | |
pip install gtts |
keyboard shortcuts for notebook server v6.1.5 taken from Help -> Keyboard Shortcuts
menu in Jupyter Notebook for quick access
- F : find and replace
- Ctrl-Shift-F : open the command palette
- Ctrl-Shift-P : open the command palette
- Enter : enter edit mode
- P : open the command palette
- Shift-Enter : run cell, select below
- Ctrl-Enter : run selected cells
- Alt-Enter : run cell and insert below