Skip to content

Instantly share code, notes, and snippets.

!pip install librosa scikit-learn pydub soundfile lightgbm xgboost imbalanced-learn
!apt-get install -y ffmpeg
from google.colab import drive
import os
from pydub import AudioSegment
drive.mount('/content/drive')
@darshanjain-entrepreneur
darshanjain-entrepreneur / gist:30a5f00f36cf6fca79def2acacb482c7
Created April 21, 2025 08:01
IT is the code for AI VS HUMAN VOICE DETECTION
# 📦 Step 1: Install dependencies
!pip install librosa scikit-learn pydub soundfile
!apt-get install -y ffmpeg
# 📁 Step 2: Mount Google Drive and define paths
from google.colab import drive
import os
from pydub import AudioSegment