Skip to content

Instantly share code, notes, and snippets.

{
"version": "0.1.0",
"name": "pump",
"instructions": [
{
"name": "initialize",
"docs": [
"Creates the global state."
],
"accounts": [
@idatsy
idatsy / audio_silences.py
Created February 10, 2024 14:15
Download youtube audio and remove silences
import logging
import multiprocessing
import re
from pathlib import Path
from typing import Any
from pydub import silence, AudioSegment
from pydub.utils import make_chunks
from pytube import YouTube
from tqdm import tqdm