repo_full_name
stringlengths
6
93
repo_url
stringlengths
25
112
repo_api_url
stringclasses
28 values
owner
stringclasses
28 values
repo_name
stringclasses
28 values
description
stringclasses
28 values
stars
int64
617
98.8k
forks
int64
31
355
watchers
int64
990
999
license
stringclasses
2 values
default_branch
stringclasses
2 values
repo_created_at
timestamp[s]date
2012-07-24 23:12:50
2025-06-16 08:07:28
repo_updated_at
timestamp[s]date
2026-02-23 15:23:15
2026-05-03 18:52:12
repo_topics
listlengths
0
13
repo_languages
unknown
is_fork
bool
1 class
open_issues
int64
3
104
file_path
stringlengths
3
208
file_name
stringclasses
509 values
file_extension
stringclasses
1 value
file_size_bytes
int64
101
84k
file_url
stringclasses
627 values
file_raw_url
stringclasses
627 values
file_sha
stringclasses
624 values
language
stringclasses
8 values
parsed_at
stringdate
2026-05-04 01:12:36
2026-05-04 19:41:55
text
stringlengths
100
102k
mvanhorn/last30days-skill
https://github.com/mvanhorn/last30days-skill
null
null
null
null
24,665
null
null
mit
null
null
null
null
null
null
null
skills/last30days/scripts/lib/signals.py
null
null
null
null
null
null
Python
2026-05-04T02:27:28.658710
"""Reusable local scoring signals for v3 pipeline stages.""" from __future__ import annotations import math from . import dates, relevance, schema # Editorial signal-to-noise scores. Grounding (Google Search) is 1.0 baseline; # social platforms discounted for noise. SOURCE_QUALITY = { "xiaohongshu": 0.7, "h...
mvanhorn/last30days-skill
https://github.com/mvanhorn/last30days-skill
null
null
null
null
24,665
null
null
mit
null
null
null
null
null
null
null
skills/last30days/scripts/lib/threads.py
null
null
null
null
null
null
Python
2026-05-04T02:27:28.734637
"""Threads keyword search via ScrapeCreators API for /last30days. Uses ScrapeCreators REST API to search Threads by keyword, extracting engagement metrics (likes, replies) from short text posts. Requires SCRAPECREATORS_API_KEY in config. Opt-in source via INCLUDE_SOURCES. API docs: https://scrapecreators.com/docs """...
mvanhorn/last30days-skill
https://github.com/mvanhorn/last30days-skill
null
null
null
null
24,665
null
null
mit
null
null
null
null
null
null
null
skills/last30days/scripts/lib/tiktok.py
null
null
null
null
null
null
Python
2026-05-04T02:27:28.794422
"""TikTok search via ScrapeCreators API for /last30days. Uses ScrapeCreators REST API to search TikTok by keyword, extract engagement metrics (views, likes, comments, shares), and fetch video transcripts. Requires SCRAPECREATORS_API_KEY in config. 100 free API calls, then PAYG. API docs: https://scrapecreators.com/do...
mvanhorn/last30days-skill
https://github.com/mvanhorn/last30days-skill
null
null
null
null
24,665
null
null
mit
null
null
null
null
null
null
null
skills/last30days/scripts/lib/truthsocial.py
null
null
null
null
null
null
Python
2026-05-04T02:27:28.976220
"""Truth Social search via Mastodon-compatible API (requires bearer token). Uses truthsocial.com/api/v2/search endpoint. Requires TRUTHSOCIAL_TOKEN env var (bearer token from browser dev tools). """ import math import re import sys from typing import Any, Dict, List, Optional from . import http, log TRUTHSOCIAL_SEA...
mvanhorn/last30days-skill
https://github.com/mvanhorn/last30days-skill
null
null
null
null
24,665
null
null
mit
null
null
null
null
null
null
null
skills/last30days/scripts/lib/normalize.py
null
null
null
null
null
null
Python
2026-05-04T02:27:30.788237
"""Normalization of source-specific payloads into the v3 generic item model.""" from __future__ import annotations from typing import Any from urllib.parse import urlparse from . import dates, schema def filter_by_date_range( items: list[schema.SourceItem], from_date: str, to_date: str, require_dat...
mvanhorn/last30days-skill
https://github.com/mvanhorn/last30days-skill
null
null
null
null
24,665
null
null
mit
null
null
null
null
null
null
null
skills/last30days/scripts/lib/perplexity.py
null
null
null
null
null
null
Python
2026-05-04T02:27:30.817677
"""Perplexity Sonar Pro / Deep Research via OpenRouter API. Queries Perplexity models through OpenRouter for AI-synthesized research with citation annotations. Returns normalized items with synthesis text and individual citation entries. """ from __future__ import annotations import sys from urllib.parse import urlp...
mvanhorn/last30days-skill
https://github.com/mvanhorn/last30days-skill
null
null
null
null
24,665
null
null
mit
null
null
null
null
null
null
null
skills/last30days/scripts/lib/http.py
null
null
null
null
null
null
Python
2026-05-04T02:27:30.846766
"""HTTP utilities for last30days skill (stdlib only).""" import json import re import sys import time import urllib.error import urllib.request from typing import Any, Dict, Optional, Union from urllib.parse import urlencode from . import log as _log DEFAULT_TIMEOUT = 30 def log(msg: str): """Log debug message...
mvanhorn/last30days-skill
https://github.com/mvanhorn/last30days-skill
null
null
null
null
24,665
null
null
mit
null
null
null
null
null
null
null
skills/last30days/scripts/lib/fanout.py
null
null
null
null
null
null
Python
2026-05-04T02:27:34.998520
"""Parallel multi-entity fan-out for the --competitors flag. The orchestrator accepts a `main_runner()` for the topic and a `competitor_runner(entity)` for each peer. It parallelizes their execution via a `ThreadPoolExecutor` and collects per-entity Reports. Per-entity failures are logged and dropped; the run survives...
spotDL/spotify-downloader
https://github.com/spotDL/spotify-downloader
null
null
null
null
24,631
null
null
mit
null
null
null
null
null
null
null
scripts/docs/gen_ref_nav.py
null
null
null
null
null
null
Python
2026-05-04T02:27:37.426171
"""Generate the code reference pages and navigation.""" from pathlib import Path import mkdocs_gen_files nav = mkdocs_gen_files.Nav() # type: ignore IGNORE = ( ("_version",), # ('__init__',) ) for path in Path("spotdl").glob("**/*.py"): module_path = path.relative_to("spotdl").with_suffix("") doc_...
spotDL/spotify-downloader
https://github.com/spotDL/spotify-downloader
null
null
null
null
24,631
null
null
mit
null
null
null
null
null
null
null
spotdl/__main__.py
null
null
null
null
null
null
Python
2026-05-04T02:27:37.444279
""" Main module for spotdl. Exports version and main function. """ from spotdl._version import __version__ from spotdl.console import console_entry_point if __name__ == "__main__": console_entry_point()
spotDL/spotify-downloader
https://github.com/spotDL/spotify-downloader
null
null
null
null
24,631
null
null
mit
null
null
null
null
null
null
null
spotdl/console/entry_point.py
null
null
null
null
null
null
Python
2026-05-04T02:27:37.445290
""" Module that holds the entry point for the console. """ import cProfile import logging import pstats import signal import sys import time from spotdl.console.download import download from spotdl.console.meta import meta from spotdl.console.save import save from spotdl.console.sync import sync from spotdl.console.u...
spotDL/spotify-downloader
https://github.com/spotDL/spotify-downloader
null
null
null
null
24,631
null
null
mit
null
null
null
null
null
null
null
spotdl/__init__.py
null
null
null
null
null
null
Python
2026-05-04T02:27:37.447153
""" Init module for spotdl. This module contains the main entry point for spotdl. And Spotdl class """ import asyncio import concurrent.futures import logging from pathlib import Path from typing import List, Optional, Tuple, Union from spotdl._version import __version__ from spotdl.console import console_entry_point...
spotDL/spotify-downloader
https://github.com/spotDL/spotify-downloader
null
null
null
null
24,631
null
null
mit
null
null
null
null
null
null
null
spotdl/console/meta.py
null
null
null
null
null
null
Python
2026-05-04T02:27:37.455180
""" Sync Lyrics module for the console """ import asyncio import logging from pathlib import Path from typing import List from spotdl.download.downloader import Downloader from spotdl.types.song import Song from spotdl.utils.ffmpeg import FFMPEG_FORMATS from spotdl.utils.lrc import generate_lrc from spotdl.utils.meta...
spotDL/spotify-downloader
https://github.com/spotDL/spotify-downloader
null
null
null
null
24,631
null
null
mit
null
null
null
null
null
null
null
scripts/build.py
null
null
null
null
null
null
Python
2026-05-04T02:27:37.456615
import os import sys from pathlib import Path from importlib.metadata import metadata import PyInstaller.__main__ # type: ignore import pykakasi import yt_dlp import ytmusicapi from spotdl._version import __version__ LOCALES_PATH = str((Path(ytmusicapi.__file__).parent / "locales")) PYKAKASI_PATH = str((Path(pykaka...
spotDL/spotify-downloader
https://github.com/spotDL/spotify-downloader
null
null
null
null
24,631
null
null
mit
null
null
null
null
null
null
null
spotdl/console/download.py
null
null
null
null
null
null
Python
2026-05-04T02:27:37.458119
""" Download module for the console. """ from typing import List from spotdl.download.downloader import Downloader from spotdl.utils.search import get_simple_songs __all__ = ["download"] def download( query: List[str], downloader: Downloader, ) -> None: """ Find songs with the provided audio provid...
spotDL/spotify-downloader
https://github.com/spotDL/spotify-downloader
null
null
null
null
24,631
null
null
mit
null
null
null
null
null
null
null
spotdl/console/__init__.py
null
null
null
null
null
null
Python
2026-05-04T02:27:37.465261
""" Console module, contains the console entry point and different subcommands. """ from spotdl.console.entry_point import console_entry_point __all__ = [ "console_entry_point", ]
spotDL/spotify-downloader
https://github.com/spotDL/spotify-downloader
null
null
null
null
24,631
null
null
mit
null
null
null
null
null
null
null
spotdl/console/save.py
null
null
null
null
null
null
Python
2026-05-04T02:27:37.492896
""" Save module for the console. """ import asyncio import json import logging from typing import List from spotdl.download.downloader import Downloader, DownloaderError from spotdl.types.song import Song from spotdl.utils.m3u import gen_m3u_files from spotdl.utils.search import parse_query __all__ = ["save"] logge...
spotDL/spotify-downloader
https://github.com/spotDL/spotify-downloader
null
null
null
null
24,631
null
null
mit
null
null
null
null
null
null
null
spotdl/console/sync.py
null
null
null
null
null
null
Python
2026-05-04T02:27:38.081432
""" Sync module for the console. """ import json import logging from pathlib import Path from typing import List, Tuple from spotdl.download.downloader import Downloader from spotdl.types.song import Song from spotdl.utils.formatter import create_file_name from spotdl.utils.m3u import gen_m3u_files from spotdl.utils....
spotDL/spotify-downloader
https://github.com/spotDL/spotify-downloader
null
null
null
null
24,631
null
null
mit
null
null
null
null
null
null
null
spotdl/console/url.py
null
null
null
null
null
null
Python
2026-05-04T02:27:38.108277
""" Url module for the console. """ import asyncio import logging from typing import List from spotdl.download.downloader import Downloader from spotdl.types.song import Song from spotdl.utils.search import parse_query __all__ = ["url"] logger = logging.getLogger(__name__) def url( query: List[str], downl...
spotDL/spotify-downloader
https://github.com/spotDL/spotify-downloader
null
null
null
null
24,631
null
null
mit
null
null
null
null
null
null
null
spotdl/console/web.py
null
null
null
null
null
null
Python
2026-05-04T02:27:38.108785
""" Web module for the console. """ import asyncio import logging import shutil import signal import sys import webbrowser from pathlib import Path from fastapi import Depends, FastAPI from fastapi.middleware.cors import CORSMiddleware from uvicorn import Config, Server from spotdl._version import __version__ from s...
spotDL/spotify-downloader
https://github.com/spotDL/spotify-downloader
null
null
null
null
24,631
null
null
mit
null
null
null
null
null
null
null
spotdl/download/progress_handler.py
null
null
null
null
null
null
Python
2026-05-04T02:27:38.115269
""" Module that holds the ProgressHandler class and Song Tracker class. """ import logging from dataclasses import dataclass from typing import Any, Callable, Dict, List, Optional from rich import get_console from rich.console import JustifyMethod, OverflowMethod from rich.highlighter import Highlighter from rich.mar...
spotDL/spotify-downloader
https://github.com/spotDL/spotify-downloader
null
null
null
null
24,631
null
null
mit
null
null
null
null
null
null
null
spotdl/providers/audio/bandcamp.py
null
null
null
null
null
null
Python
2026-05-04T02:27:38.119102
""" BandCamp module for downloading and searching songs. """ import logging from typing import Any, Dict, List, Optional, Tuple import requests from spotdl.providers.audio.base import AudioProvider from spotdl.types.result import Result from spotdl.utils.config import GlobalConfig __all__ = ["BandCamp"] logger = l...
spotDL/spotify-downloader
https://github.com/spotDL/spotify-downloader
null
null
null
null
24,631
null
null
mit
null
null
null
null
null
null
null
spotdl/download/downloader.py
null
null
null
null
null
null
Python
2026-05-04T02:27:38.131348
""" Downloader module, this is where all the downloading pre/post processing happens etc. """ import asyncio import datetime import json import logging import re import shutil import sys import traceback from argparse import Namespace from pathlib import Path from typing import Dict, List, Optional, Tuple, Type, Union...
spotDL/spotify-downloader
https://github.com/spotDL/spotify-downloader
null
null
null
null
24,631
null
null
mit
null
null
null
null
null
null
null
spotdl/providers/audio/__init__.py
null
null
null
null
null
null
Python
2026-05-04T02:27:38.134080
""" Audio providers for spotdl. """ from spotdl.providers.audio.bandcamp import BandCamp from spotdl.providers.audio.base import ( ISRC_REGEX, AudioProvider, AudioProviderError, YTDLLogger, ) from spotdl.providers.audio.piped import Piped from spotdl.providers.audio.soundcloud import SoundCloud from sp...
spotDL/spotify-downloader
https://github.com/spotDL/spotify-downloader
null
null
null
null
24,631
null
null
mit
null
null
null
null
null
null
null
spotdl/providers/audio/base.py
null
null
null
null
null
null
Python
2026-05-04T02:27:38.182594
""" Base audio provider module. """ import logging import re import shlex from typing import Any, Dict, List, Optional, Tuple from yt_dlp import YoutubeDL from spotdl.types.result import Result from spotdl.types.song import Song from spotdl.utils.config import get_temp_path from spotdl.utils.formatter import ( a...
spotDL/spotify-downloader
https://github.com/spotDL/spotify-downloader
null
null
null
null
24,631
null
null
mit
null
null
null
null
null
null
null
spotdl/providers/audio/sliderkz.py
null
null
null
null
null
null
Python
2026-05-04T02:27:38.701624
""" SliderKZ module for downloading and searching songs. """ import logging from typing import Any, Dict, List import requests from spotdl.providers.audio.base import AudioProvider from spotdl.types.result import Result from spotdl.utils.config import GlobalConfig __all__ = ["SliderKZ"] logger = logging.getLogger(...
spotDL/spotify-downloader
https://github.com/spotDL/spotify-downloader
null
null
null
null
24,631
null
null
mit
null
null
null
null
null
null
null
spotdl/providers/audio/soundcloud.py
null
null
null
null
null
null
Python
2026-05-04T02:27:38.744439
""" SoundCloud module for downloading and searching songs. """ import logging import re from itertools import islice from typing import Any, Dict, List from soundcloud import SoundCloud as SoundCloudClient from soundcloud.resource.track import Track from spotdl.providers.audio.base import AudioProvider from spotdl.t...
spotDL/spotify-downloader
https://github.com/spotDL/spotify-downloader
null
null
null
null
24,631
null
null
mit
null
null
null
null
null
null
null
spotdl/providers/audio/piped.py
null
null
null
null
null
null
Python
2026-05-04T02:27:38.774149
""" Piped module for downloading and searching songs. """ import logging import shlex from typing import Any, Dict, List, Optional import requests from yt_dlp import YoutubeDL from spotdl.providers.audio.base import ( ISRC_REGEX, AudioProvider, AudioProviderError, YTDLLogger, ) from spotdl.types.resu...
spotDL/spotify-downloader
https://github.com/spotDL/spotify-downloader
null
null
null
null
24,631
null
null
mit
null
null
null
null
null
null
null
spotdl/providers/audio/youtube.py
null
null
null
null
null
null
Python
2026-05-04T02:27:38.789763
""" Youtube module for downloading and searching songs. """ from typing import Any, Dict, List, Optional from pytube import Search from pytube import YouTube as PyTube from pytube import innertube from spotdl.providers.audio.base import AudioProvider from spotdl.types.result import Result __all__ = ["YouTube"] cl...
spotDL/spotify-downloader
https://github.com/spotDL/spotify-downloader
null
null
null
null
24,631
null
null
mit
null
null
null
null
null
null
null
spotdl/providers/audio/ytmusic.py
null
null
null
null
null
null
Python
2026-05-04T02:27:38.790334
""" YTMusic module for downloading and searching songs. """ from typing import Any, Dict, List from ytmusicapi import YTMusic from spotdl.providers.audio.base import ISRC_REGEX, AudioProvider from spotdl.types.result import Result from spotdl.utils.formatter import parse_duration __all__ = ["YouTubeMusic"] class ...
spotDL/spotify-downloader
https://github.com/spotDL/spotify-downloader
null
null
null
null
24,631
null
null
mit
null
null
null
null
null
null
null
spotdl/providers/lyrics/base.py
null
null
null
null
null
null
Python
2026-05-04T02:27:38.803064
""" Base module for all other lyrics providers. """ import logging from typing import Dict, List, Optional from spotdl.utils.formatter import ratio, slugify from spotdl.utils.matching import based_sort __all__ = ["LyricsProvider"] logger = logging.getLogger(__name__) class LyricsProvider: """ Base class fo...
spotDL/spotify-downloader
https://github.com/spotDL/spotify-downloader
null
null
null
null
24,631
null
null
mit
null
null
null
null
null
null
null
spotdl/providers/lyrics/azlyrics.py
null
null
null
null
null
null
Python
2026-05-04T02:27:38.804273
""" AZLyrics lyrics module. """ import logging from typing import Dict, List, Optional import requests from bs4 import BeautifulSoup, Tag from spotdl.providers.lyrics.base import LyricsProvider __all__ = ["AzLyrics"] logger = logging.getLogger(__name__) # mypy: disable-error-code="union-attr" class AzLyrics(Lyric...
spotDL/spotify-downloader
https://github.com/spotDL/spotify-downloader
null
null
null
null
24,631
null
null
mit
null
null
null
null
null
null
null
spotdl/providers/lyrics/__init__.py
null
null
null
null
null
null
Python
2026-05-04T02:27:38.805352
""" Lyrics providers for spotdl. """ from spotdl.providers.lyrics.azlyrics import AzLyrics from spotdl.providers.lyrics.base import LyricsProvider from spotdl.providers.lyrics.genius import Genius from spotdl.providers.lyrics.musixmatch import MusixMatch from spotdl.providers.lyrics.synced import Synced __all__ = ["A...
spotDL/spotify-downloader
https://github.com/spotDL/spotify-downloader
null
null
null
null
24,631
null
null
mit
null
null
null
null
null
null
null
spotdl/providers/lyrics/musixmatch.py
null
null
null
null
null
null
Python
2026-05-04T02:27:38.814343
""" MusixMatch lyrics provider. """ from typing import Dict, List, Optional from urllib.parse import quote import requests from bs4 import BeautifulSoup from spotdl.providers.lyrics.base import LyricsProvider from spotdl.utils.config import GlobalConfig __all__ = ["MusixMatch"] class MusixMatch(LyricsProvider): ...
spotDL/spotify-downloader
https://github.com/spotDL/spotify-downloader
null
null
null
null
24,631
null
null
mit
null
null
null
null
null
null
null
spotdl/providers/lyrics/genius.py
null
null
null
null
null
null
Python
2026-05-04T02:27:38.815630
""" Genius Lyrics module. """ from typing import Dict, List, Optional import requests from bs4 import BeautifulSoup from spotdl.providers.lyrics.base import LyricsProvider from spotdl.utils.config import GlobalConfig __all__ = ["Genius"] class Genius(LyricsProvider): """ Genius lyrics provider class. ...
spotDL/spotify-downloader
https://github.com/spotDL/spotify-downloader
null
null
null
null
24,631
null
null
mit
null
null
null
null
null
null
null
spotdl/providers/lyrics/synced.py
null
null
null
null
null
null
Python
2026-05-04T02:27:39.368555
""" Synced lyrics provider using the syncedlyrics library """ from typing import Dict, List, Optional import requests import syncedlyrics from spotdl.providers.lyrics.base import LyricsProvider __all__ = ["Synced"] class Synced(LyricsProvider): """ Lyrics provider for synced lyrics using the syncedlyrics ...
spotDL/spotify-downloader
https://github.com/spotDL/spotify-downloader
null
null
null
null
24,631
null
null
mit
null
null
null
null
null
null
null
spotdl/types/album.py
null
null
null
null
null
null
Python
2026-05-04T02:27:39.408292
""" Artist module for retrieving artist data from Spotify. """ from dataclasses import dataclass from typing import Any, Dict, List, Tuple from spotdl.types.song import Song, SongList from spotdl.utils.spotify import SpotifyClient __all__ = ["Album", "AlbumError"] class AlbumError(Exception): """ Base clas...
spotDL/spotify-downloader
https://github.com/spotDL/spotify-downloader
null
null
null
null
24,631
null
null
mit
null
null
null
null
null
null
null
spotdl/types/saved.py
null
null
null
null
null
null
Python
2026-05-04T02:27:39.422899
""" Saved module for handing the saved tracks from user library """ from dataclasses import dataclass from typing import Any, Dict, List, Tuple from spotdl.types.song import Song, SongList from spotdl.utils.spotify import SpotifyClient __all__ = ["Saved", "SavedError"] class SavedError(Exception): """ Base...
spotDL/spotify-downloader
https://github.com/spotDL/spotify-downloader
null
null
null
null
24,631
null
null
mit
null
null
null
null
null
null
null
spotdl/types/song.py
null
null
null
null
null
null
Python
2026-05-04T02:27:39.444178
""" Song module that hold the Song and SongList classes. """ import json from dataclasses import asdict, dataclass from typing import Any, Dict, List, Optional, Tuple from rapidfuzz import fuzz from spotdl.utils.spotify import SpotifyClient __all__ = ["Song", "SongList", "SongError"] class SongError(Exception): ...
spotDL/spotify-downloader
https://github.com/spotDL/spotify-downloader
null
null
null
null
24,631
null
null
mit
null
null
null
null
null
null
null
spotdl/types/result.py
null
null
null
null
null
null
Python
2026-05-04T02:27:39.448626
""" Result is a class that contains all the information about a result from search performed by audio provider. """ import json from dataclasses import asdict, dataclass from typing import Any, Dict, Optional, Tuple __all__ = ["Result"] @dataclass(frozen=True, eq=True) class Result: """ Result is a class th...
spotDL/spotify-downloader
https://github.com/spotDL/spotify-downloader
null
null
null
null
24,631
null
null
mit
null
null
null
null
null
null
null
spotdl/types/options.py
null
null
null
null
null
null
Python
2026-05-04T02:27:39.449836
""" This file contains types for spotdl/downloader/web modules. Options types have all the fields marked as required. Settings types have all the fields marked as optional. """ from typing import List, Optional, Union from typing_extensions import TypedDict __all__ = [ "SpotifyOptions", "DownloaderOptions", ...
spotDL/spotify-downloader
https://github.com/spotDL/spotify-downloader
null
null
null
null
24,631
null
null
mit
null
null
null
null
null
null
null
spotdl/utils/__init__.py
null
null
null
null
null
null
Python
2026-05-04T02:27:39.451080
""" Utility functions for spotdl. These functions are used in every stage of the download process. """
spotDL/spotify-downloader
https://github.com/spotDL/spotify-downloader
null
null
null
null
24,631
null
null
mit
null
null
null
null
null
null
null
spotdl/types/artist.py
null
null
null
null
null
null
Python
2026-05-04T02:27:39.460507
""" Artist module for retrieving artist data from Spotify. """ from dataclasses import dataclass from typing import Any, Dict, List, Set, Tuple from spotdl.types.album import Album from spotdl.types.song import Song, SongList from spotdl.utils.formatter import slugify from spotdl.utils.spotify import SpotifyClient _...
spotDL/spotify-downloader
https://github.com/spotDL/spotify-downloader
null
null
null
null
24,631
null
null
mit
null
null
null
null
null
null
null
spotdl/types/playlist.py
null
null
null
null
null
null
Python
2026-05-04T02:27:39.483414
""" Playlist module for retrieving playlist data from Spotify. """ import logging from dataclasses import dataclass from typing import Any, Dict, List, Tuple from spotdl.types.song import Song, SongList from spotdl.utils.spotify import SpotifyClient __all__ = ["Playlist", "PlaylistError"] logger = logging.getLogger...
spotDL/spotify-downloader
https://github.com/spotDL/spotify-downloader
null
null
null
null
24,631
null
null
mit
null
null
null
null
null
null
null
spotdl/utils/archive.py
null
null
null
null
null
null
Python
2026-05-04T02:27:39.920399
""" Module for archiving sets of data """ from pathlib import Path from typing import Set __all__ = ["Archive"] class Archive(Set): """ Archive class. A file-persistable set. """ def load(self, file: str) -> bool: """ Imports the archive from the file. ### Arguments ...
spotDL/spotify-downloader
https://github.com/spotDL/spotify-downloader
null
null
null
null
24,631
null
null
mit
null
null
null
null
null
null
null
spotdl/utils/arguments.py
null
null
null
null
null
null
Python
2026-05-04T02:27:39.997845
""" Module that handles the command line arguments. """ import argparse import sys import textwrap from argparse import ArgumentParser, Namespace, _ArgumentGroup from typing import List from spotdl import _version from spotdl.download.downloader import AUDIO_PROVIDERS, LYRICS_PROVIDERS from spotdl.utils.ffmpeg import...
spotDL/spotify-downloader
https://github.com/spotDL/spotify-downloader
null
null
null
null
24,631
null
null
mit
null
null
null
null
null
null
null
spotdl/utils/console.py
null
null
null
null
null
null
Python
2026-05-04T02:27:40.051160
""" Module for holding console related actions. """ import json import sys from spotdl.utils.config import DEFAULT_CONFIG, get_config_file from spotdl.utils.ffmpeg import download_ffmpeg as ffmpeg_download from spotdl.utils.ffmpeg import get_local_ffmpeg, is_ffmpeg_installed from spotdl.utils.github import check_for_...
spotDL/spotify-downloader
https://github.com/spotDL/spotify-downloader
null
null
null
null
24,631
null
null
mit
null
null
null
null
null
null
null
spotdl/utils/ffmpeg.py
null
null
null
null
null
null
Python
2026-05-04T02:27:40.062415
""" Module for converting audio files to different formats and checking for ffmpeg binary, and downloading it if not found. """ import os import platform import re import shlex import shutil import stat import subprocess from pathlib import Path from typing import Any, Callable, Dict, List, Optional, Tuple, Union imp...
spotDL/spotify-downloader
https://github.com/spotDL/spotify-downloader
null
null
null
null
24,631
null
null
mit
null
null
null
null
null
null
null
spotdl/utils/config.py
null
null
null
null
null
null
Python
2026-05-04T02:27:40.080886
""" Module related to managing reading and writing to the config file. Default config - spotdl.utils.config.DEFAULT_CONFIG """ import json import logging import os import platform from argparse import Namespace from pathlib import Path from typing import Any, Dict, Tuple, Union from spotdl.types.options import ( ...
spotDL/spotify-downloader
https://github.com/spotDL/spotify-downloader
null
null
null
null
24,631
null
null
mit
null
null
null
null
null
null
null
spotdl/utils/downloader.py
null
null
null
null
null
null
Python
2026-05-04T02:27:40.081370
""" Module for functions related to downloading songs. """ from spotdl.providers.audio import YouTubeMusic __all__ = ["check_ytmusic_connection"] def check_ytmusic_connection() -> bool: """ Check if we can connect to YouTube Music API ### Returns - `True` if we can connect to YouTube Music API ...
spotDL/spotify-downloader
https://github.com/spotDL/spotify-downloader
null
null
null
null
24,631
null
null
mit
null
null
null
null
null
null
null
spotdl/utils/lrc.py
null
null
null
null
null
null
Python
2026-05-04T02:27:40.092619
""" LRC related functions """ import logging import re from pathlib import Path from typing import List, Tuple from syncedlyrics import search as syncedlyrics_search from syncedlyrics.utils import Lyrics, TargetType, has_translation from spotdl.types.song import Song from spotdl.utils.formatter import to_ms logger ...
spotDL/spotify-downloader
https://github.com/spotDL/spotify-downloader
null
null
null
null
24,631
null
null
mit
null
null
null
null
null
null
null
spotdl/utils/formatter.py
null
null
null
null
null
null
Python
2026-05-04T02:27:40.093102
""" Module for formatting songs into strings. Contains functions to create search queries and song titles and file names. """ import copy import logging import re from functools import lru_cache from pathlib import Path from typing import Any, Dict, List, Optional from unicodedata import normalize import pykakasi fro...
spotDL/spotify-downloader
https://github.com/spotDL/spotify-downloader
null
null
null
null
24,631
null
null
mit
null
null
null
null
null
null
null
spotdl/utils/logging.py
null
null
null
null
null
null
Python
2026-05-04T02:27:40.110218
""" Module for logging """ import logging from typing import Optional from rich import get_console from rich.console import ConsoleRenderable from rich.logging import RichHandler from rich.markup import escape from rich.text import Text from rich.theme import Theme from rich.traceback import install __all__ = [ ...
spotDL/spotify-downloader
https://github.com/spotDL/spotify-downloader
null
null
null
null
24,631
null
null
mit
null
null
null
null
null
null
null
spotdl/utils/github.py
null
null
null
null
null
null
Python
2026-05-04T02:27:40.128354
""" Module for getting information about the current version of spotdl from GitHub, downloading the latest version, and checking for updates. """ import logging import os import re from typing import Tuple import requests from spotdl import _version __all__ = [ "REPO", "WEB_APP_URL", "get_status", "...
resemble-ai/chatterbox
https://github.com/resemble-ai/chatterbox
null
null
null
null
24,557
null
null
mit
null
null
null
null
null
null
null
example_vc.py
null
null
null
null
null
null
Python
2026-05-04T02:27:42.418254
import torch import torchaudio as ta from chatterbox.vc import ChatterboxVC # Automatically detect the best available device if torch.cuda.is_available(): device = "cuda" elif torch.backends.mps.is_available(): device = "mps" else: device = "cpu" print(f"Using device: {device}") AUDIO_PATH = "YOUR_FILE....
resemble-ai/chatterbox
https://github.com/resemble-ai/chatterbox
null
null
null
null
24,557
null
null
mit
null
null
null
null
null
null
null
example_tts.py
null
null
null
null
null
null
Python
2026-05-04T02:27:42.476192
import torchaudio as ta import torch from pathlib import Path from chatterbox.tts import ChatterboxTTS from chatterbox.mtl_tts import ChatterboxMultilingualTTS # Automatically detect the best available device if torch.cuda.is_available(): device = "cuda" elif torch.backends.mps.is_available(): device = "mps" e...
resemble-ai/chatterbox
https://github.com/resemble-ai/chatterbox
null
null
null
null
24,557
null
null
mit
null
null
null
null
null
null
null
gradio_tts_turbo_app.py
null
null
null
null
null
null
Python
2026-05-04T02:27:42.494483
import random import numpy as np import torch import gradio as gr from chatterbox.tts_turbo import ChatterboxTurboTTS DEVICE = "cuda" if torch.cuda.is_available() else "cpu" EVENT_TAGS = [ "[clear throat]", "[sigh]", "[shush]", "[cough]", "[groan]", "[sniff]", "[gasp]", "[chuckle]", "[laugh]" ] # --- REFINED...
resemble-ai/chatterbox
https://github.com/resemble-ai/chatterbox
null
null
null
null
24,557
null
null
mit
null
null
null
null
null
null
null
gradio_tts_app.py
null
null
null
null
null
null
Python
2026-05-04T02:27:42.496113
import random import numpy as np import torch import gradio as gr from chatterbox.tts import ChatterboxTTS DEVICE = "cuda" if torch.cuda.is_available() else "cpu" def set_seed(seed: int): torch.manual_seed(seed) torch.cuda.manual_seed(seed) torch.cuda.manual_seed_all(seed) random.seed(seed) np.r...
resemble-ai/chatterbox
https://github.com/resemble-ai/chatterbox
null
null
null
null
24,557
null
null
mit
null
null
null
null
null
null
null
example_tts_turbo.py
null
null
null
null
null
null
Python
2026-05-04T02:27:42.497184
import torchaudio as ta import torch from chatterbox.tts_turbo import ChatterboxTurboTTS # Load the Turbo model model = ChatterboxTurboTTS.from_pretrained(device="cuda") # Generate with Paralinguistic Tags text = "Oh, that's hilarious! [chuckle] Um anyway, we do have a new model in store. It's the SkyNet T-800 series...
resemble-ai/chatterbox
https://github.com/resemble-ai/chatterbox
null
null
null
null
24,557
null
null
mit
null
null
null
null
null
null
null
gradio_vc_app.py
null
null
null
null
null
null
Python
2026-05-04T02:27:42.515287
import torch import gradio as gr from chatterbox.vc import ChatterboxVC DEVICE = "cuda" if torch.cuda.is_available() else "cpu" model = ChatterboxVC.from_pretrained(DEVICE) def generate(audio, target_voice_path): wav = model.generate( audio, target_voice_path=target_voice_path, ) return model.sr...
resemble-ai/chatterbox
https://github.com/resemble-ai/chatterbox
null
null
null
null
24,557
null
null
mit
null
null
null
null
null
null
null
src/chatterbox/__init__.py
null
null
null
null
null
null
Python
2026-05-04T02:27:42.516616
try: from importlib.metadata import version except ImportError: from importlib_metadata import version # For Python <3.8 __version__ = version("chatterbox-tts") from .tts import ChatterboxTTS from .vc import ChatterboxVC from .mtl_tts import ChatterboxMultilingualTTS, SUPPORTED_LANGUAGES
resemble-ai/chatterbox
https://github.com/resemble-ai/chatterbox
null
null
null
null
24,557
null
null
mit
null
null
null
null
null
null
null
multilingual_app.py
null
null
null
null
null
null
Python
2026-05-04T02:27:42.518061
import random import os import numpy as np import torch from chatterbox.mtl_tts import ChatterboxMultilingualTTS, SUPPORTED_LANGUAGES import gradio as gr DEVICE = "cuda" if torch.cuda.is_available() else "cpu" T3_MODEL = os.getenv("CHATTERBOX_MULTILINGUAL_T3_MODEL", "v2") print(f"🚀 Running on device: {DEVICE}") print...
resemble-ai/chatterbox
https://github.com/resemble-ai/chatterbox
null
null
null
null
24,557
null
null
mit
null
null
null
null
null
null
null
example_for_mac.py
null
null
null
null
null
null
Python
2026-05-04T02:27:42.605381
import torch import torchaudio as ta from chatterbox.tts import ChatterboxTTS # Detect device (Mac with M1/M2/M3/M4) device = "mps" if torch.backends.mps.is_available() else "cpu" map_location = torch.device(device) torch_load_original = torch.load def patched_torch_load(*args, **kwargs): if 'map_location' not in...
resemble-ai/chatterbox
https://github.com/resemble-ai/chatterbox
null
null
null
null
24,557
null
null
mit
null
null
null
null
null
null
null
src/chatterbox/models/s3gen/configs.py
null
null
null
null
null
null
Python
2026-05-04T02:27:43.110163
from ..utils import AttrDict CFM_PARAMS = AttrDict({ "sigma_min": 1e-06, "solver": "euler", "t_scheduler": "cosine", "training_cfg_rate": 0.2, "inference_cfg_rate": 0.7, "reg_loss_type": "l1" })
resemble-ai/chatterbox
https://github.com/resemble-ai/chatterbox
null
null
null
null
24,557
null
null
mit
null
null
null
null
null
null
null
src/chatterbox/models/s3gen/flow.py
null
null
null
null
null
null
Python
2026-05-04T02:27:43.140121
# Copyright (c) 2024 Alibaba Inc (authors: Xiang Lyu, Zhihao Du) # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by appl...
resemble-ai/chatterbox
https://github.com/resemble-ai/chatterbox
null
null
null
null
24,557
null
null
mit
null
null
null
null
null
null
null
src/chatterbox/models/s3gen/matcha/decoder.py
null
null
null
null
null
null
Python
2026-05-04T02:27:43.154397
import math from typing import Optional import torch import torch.nn as nn import torch.nn.functional as F from conformer import ConformerBlock from diffusers.models.activations import get_activation from einops import pack, rearrange, repeat from .transformer import BasicTransformerBlock class SinusoidalPosEmb(tor...
resemble-ai/chatterbox
https://github.com/resemble-ai/chatterbox
null
null
null
null
24,557
null
null
mit
null
null
null
null
null
null
null
src/chatterbox/models/s3gen/flow_matching.py
null
null
null
null
null
null
Python
2026-05-04T02:27:43.155861
# Copyright (c) 2024 Alibaba Inc (authors: Xiang Lyu, Zhihao Du) # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by appl...
resemble-ai/chatterbox
https://github.com/resemble-ai/chatterbox
null
null
null
null
24,557
null
null
mit
null
null
null
null
null
null
null
src/chatterbox/models/s3gen/decoder.py
null
null
null
null
null
null
Python
2026-05-04T02:27:43.214806
# Copyright (c) 2024 Alibaba Inc (authors: Xiang Lyu, Zhihao Du) # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by appl...
resemble-ai/chatterbox
https://github.com/resemble-ai/chatterbox
null
null
null
null
24,557
null
null
mit
null
null
null
null
null
null
null
src/chatterbox/models/s3gen/matcha/flow_matching.py
null
null
null
null
null
null
Python
2026-05-04T02:27:43.240366
from abc import ABC import torch import torch.nn.functional as F from .decoder import Decoder class BASECFM(torch.nn.Module, ABC): def __init__( self, n_feats, cfm_params, n_spks=1, spk_emb_dim=128, ): super().__init__() self.n_feats = n_feats ...
resemble-ai/chatterbox
https://github.com/resemble-ai/chatterbox
null
null
null
null
24,557
null
null
mit
null
null
null
null
null
null
null
src/chatterbox/models/s3gen/f0_predictor.py
null
null
null
null
null
null
Python
2026-05-04T02:27:43.240890
# Copyright (c) 2024 Alibaba Inc (authors: Xiang Lyu, Kai Hu) # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applica...
resemble-ai/chatterbox
https://github.com/resemble-ai/chatterbox
null
null
null
null
24,557
null
null
mit
null
null
null
null
null
null
null
src/chatterbox/models/s3gen/hifigan.py
null
null
null
null
null
null
Python
2026-05-04T02:27:43.297818
# jrm: adapted from CosyVoice/cosyvoice/hifigan/generator.py # most modules should be reusable, but I found their SineGen changed a git. # Copyright (c) 2024 Alibaba Inc (authors: Xiang Lyu, Kai Hu) # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in complianc...
resemble-ai/chatterbox
https://github.com/resemble-ai/chatterbox
null
null
null
null
24,557
null
null
mit
null
null
null
null
null
null
null
src/chatterbox/models/s3gen/s3gen.py
null
null
null
null
null
null
Python
2026-05-04T02:27:43.743842
# Modified from CosyVoice https://github.com/FunAudioLLM/CosyVoice # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by ap...
resemble-ai/chatterbox
https://github.com/resemble-ai/chatterbox
null
null
null
null
24,557
null
null
mit
null
null
null
null
null
null
null
src/chatterbox/models/s3gen/transformer/activation.py
null
null
null
null
null
null
Python
2026-05-04T02:27:43.744422
# Copyright (c) 2020 Johns Hopkins University (Shinji Watanabe) # 2020 Northwestern Polytechnical University (Pengcheng Guo) # 2020 Mobvoi Inc (Binbin Zhang) # 2024 Alibaba Inc (Xiang Lyu) # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use thi...
resemble-ai/chatterbox
https://github.com/resemble-ai/chatterbox
null
null
null
null
24,557
null
null
mit
null
null
null
null
null
null
null
src/chatterbox/models/s3gen/transformer/attention.py
null
null
null
null
null
null
Python
2026-05-04T02:27:43.750607
# Copyright (c) 2019 Shigeki Karita # 2020 Mobvoi Inc (Binbin Zhang) # 2022 Xingchen Song (sxc19@mails.tsinghua.edu.cn) # 2024 Alibaba Inc (Xiang Lyu) # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the L...
resemble-ai/chatterbox
https://github.com/resemble-ai/chatterbox
null
null
null
null
24,557
null
null
mit
null
null
null
null
null
null
null
src/chatterbox/models/s3gen/matcha/text_encoder.py
null
null
null
null
null
null
Python
2026-05-04T02:27:43.820826
""" from https://github.com/jaywalnut310/glow-tts """ import math import torch import torch.nn as nn from einops import rearrange def sequence_mask(length, max_length=None): if max_length is None: max_length = length.max() x = torch.arange(max_length, dtype=length.dtype, device=length.device) re...
resemble-ai/chatterbox
https://github.com/resemble-ai/chatterbox
null
null
null
null
24,557
null
null
mit
null
null
null
null
null
null
null
src/chatterbox/models/s3gen/matcha/transformer.py
null
null
null
null
null
null
Python
2026-05-04T02:27:43.822397
from typing import Any, Dict, Optional import torch import torch.nn as nn from diffusers.models.attention import ( GEGLU, GELU, AdaLayerNorm, AdaLayerNormZero, ApproximateGELU, ) from diffusers.models.attention_processor import Attention from diffusers.models.lora import LoRACompatibleLinear from d...
resemble-ai/chatterbox
https://github.com/resemble-ai/chatterbox
null
null
null
null
24,557
null
null
mit
null
null
null
null
null
null
null
src/chatterbox/models/s3gen/transformer/convolution.py
null
null
null
null
null
null
Python
2026-05-04T02:27:43.828342
# Copyright (c) 2020 Mobvoi Inc. (authors: Binbin Zhang, Di Wu) # 2024 Alibaba Inc (Xiang Lyu) # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/lice...
resemble-ai/chatterbox
https://github.com/resemble-ai/chatterbox
null
null
null
null
24,557
null
null
mit
null
null
null
null
null
null
null
src/chatterbox/models/s3gen/transformer/encoder_layer.py
null
null
null
null
null
null
Python
2026-05-04T02:27:43.829840
# Copyright (c) 2021 Mobvoi Inc (Binbin Zhang, Di Wu) # 2022 Xingchen Song (sxc19@mails.tsinghua.edu.cn) # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache....
resemble-ai/chatterbox
https://github.com/resemble-ai/chatterbox
null
null
null
null
24,557
null
null
mit
null
null
null
null
null
null
null
src/chatterbox/models/s3gen/transformer/embedding.py
null
null
null
null
null
null
Python
2026-05-04T02:27:43.855319
# Copyright (c) 2020 Mobvoi Inc. (authors: Binbin Zhang, Di Wu) # 2024 Alibaba Inc (Xiang Lyu) # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/lice...
resemble-ai/chatterbox
https://github.com/resemble-ai/chatterbox
null
null
null
null
24,557
null
null
mit
null
null
null
null
null
null
null
src/chatterbox/models/s3gen/transformer/positionwise_feed_forward.py
null
null
null
null
null
null
Python
2026-05-04T02:27:43.880744
# Copyright (c) 2019 Shigeki Karita # 2020 Mobvoi Inc (Binbin Zhang) # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless ...
resemble-ai/chatterbox
https://github.com/resemble-ai/chatterbox
null
null
null
null
24,557
null
null
mit
null
null
null
null
null
null
null
src/chatterbox/models/s3gen/utils/class_utils.py
null
null
null
null
null
null
Python
2026-05-04T02:27:44.424677
# Copyright [2023-11-28] <sxc19@mails.tsinghua.edu.cn, Xingchen Song> # 2024 Alibaba Inc (authors: Xiang Lyu) # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apa...
resemble-ai/chatterbox
https://github.com/resemble-ai/chatterbox
null
null
null
null
24,557
null
null
mit
null
null
null
null
null
null
null
src/chatterbox/models/s3tokenizer/__init__.py
null
null
null
null
null
null
Python
2026-05-04T02:27:44.425250
from .s3tokenizer import ( S3_SR, S3_HOP, S3_TOKEN_HOP, S3_TOKEN_RATE, SPEECH_VOCAB_SIZE, S3Tokenizer, ) SOS = SPEECH_VOCAB_SIZE EOS = SPEECH_VOCAB_SIZE + 1 def drop_invalid_tokens(x): """Drop SoS and EoS""" assert len(x.shape) == 1 or (len(x.shape) == 2 and x.shape[0] == 1), "only ...
resemble-ai/chatterbox
https://github.com/resemble-ai/chatterbox
null
null
null
null
24,557
null
null
mit
null
null
null
null
null
null
null
src/chatterbox/models/s3gen/transformer/upsample_encoder.py
null
null
null
null
null
null
Python
2026-05-04T02:27:44.438859
# Copyright (c) 2021 Mobvoi Inc (Binbin Zhang, Di Wu) # 2022 Xingchen Song (sxc19@mails.tsinghua.edu.cn) # 2024 Alibaba Inc (Xiang Lyu) # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a co...
resemble-ai/chatterbox
https://github.com/resemble-ai/chatterbox
null
null
null
null
24,557
null
null
mit
null
null
null
null
null
null
null
src/chatterbox/models/s3gen/utils/mel.py
null
null
null
null
null
null
Python
2026-05-04T02:27:44.445541
"""mel-spectrogram extraction in Matcha-TTS""" import logging from librosa.filters import mel as librosa_mel_fn import torch import numpy as np logger = logging.getLogger(__name__) # NOTE: they decalred these global vars mel_basis = {} hann_window = {} def dynamic_range_compression_torch(x, C=1, clip_val=1e-5): ...
resemble-ai/chatterbox
https://github.com/resemble-ai/chatterbox
null
null
null
null
24,557
null
null
mit
null
null
null
null
null
null
null
src/chatterbox/models/s3gen/utils/mask.py
null
null
null
null
null
null
Python
2026-05-04T02:27:44.446669
# Copyright (c) 2019 Shigeki Karita # 2020 Mobvoi Inc (Binbin Zhang) # 2024 Alibaba Inc (authors: Xiang Lyu) # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # ...
resemble-ai/chatterbox
https://github.com/resemble-ai/chatterbox
null
null
null
null
24,557
null
null
mit
null
null
null
null
null
null
null
src/chatterbox/models/s3gen/xvector.py
null
null
null
null
null
null
Python
2026-05-04T02:27:44.449805
#!/usr/bin/env python3 # -*- encoding: utf-8 -*- # Copyright FunASR (https://github.com/alibaba-damo-academy/FunASR). All Rights Reserved. # MIT License (https://opensource.org/licenses/MIT) # Modified from 3D-Speaker (https://github.com/alibaba-damo-academy/3D-Speaker) from collections import OrderedDict import to...
resemble-ai/chatterbox
https://github.com/resemble-ai/chatterbox
null
null
null
null
24,557
null
null
mit
null
null
null
null
null
null
null
src/chatterbox/models/s3gen/utils/intmeanflow.py
null
null
null
null
null
null
Python
2026-05-04T02:27:44.458716
import torch import torch.nn as nn def get_intmeanflow_time_mixer(dims): """" Diagonal init as described in 3.3 https://arxiv.org/pdf/2510.07979 """ layer = nn.Linear(dims * 2, dims, bias=False) with torch.no_grad(): target_weight = torch.zeros(dims, 2 * dims) target_weight[:, 0:d...
resemble-ai/chatterbox
https://github.com/resemble-ai/chatterbox
null
null
null
null
24,557
null
null
mit
null
null
null
null
null
null
null
src/chatterbox/models/s3tokenizer/s3tokenizer.py
null
null
null
null
null
null
Python
2026-05-04T02:27:44.612236
from typing import List, Tuple import numpy as np import librosa import torch import torch.nn.functional as F from s3tokenizer.utils import padding from s3tokenizer.model_v2 import ( S3TokenizerV2, ModelConfig, ) # Sampling rate of the inputs to S3TokenizerV2 S3_SR = 16_000 S3_HOP = 160 # 100 frames/sec S3_...
resemble-ai/chatterbox
https://github.com/resemble-ai/chatterbox
null
null
null
null
24,557
null
null
mit
null
null
null
null
null
null
null
src/chatterbox/models/t3/inference/t3_hf_backend.py
null
null
null
null
null
null
Python
2026-05-04T02:27:45.089646
from typing import Optional import torch from torch import nn as nn from transformers import LlamaConfig, LlamaModel, LlamaPreTrainedModel, GenerationMixin from transformers.modeling_outputs import CausalLMOutputWithCrossAttentions class T3HuggingfaceBackend(LlamaPreTrainedModel, GenerationMixin): """ Overri...
resemble-ai/chatterbox
https://github.com/resemble-ai/chatterbox
null
null
null
null
24,557
null
null
mit
null
null
null
null
null
null
null
src/chatterbox/models/t3/modules/learned_pos_emb.py
null
null
null
null
null
null
Python
2026-05-04T02:27:45.090245
from typing import Union import torch from torch import nn, Tensor class LearnedPositionEmbeddings(nn.Module): def __init__(self, seq_len, model_dim, init=.02): super().__init__() self.emb = nn.Embedding(seq_len, model_dim) # Initializing this way is standard for GPT-2 self.emb.we...
resemble-ai/chatterbox
https://github.com/resemble-ai/chatterbox
null
null
null
null
24,557
null
null
mit
null
null
null
null
null
null
null
src/chatterbox/models/t3/modules/t3_config.py
null
null
null
null
null
null
Python
2026-05-04T02:27:45.100939
from ..llama_configs import LLAMA_CONFIGS class T3Config: def __init__(self, text_tokens_dict_size=704): self.start_text_token = 255 self.stop_text_token = 0 self.text_tokens_dict_size = text_tokens_dict_size self.max_text_tokens = 2048 self.start_speech_token = 6561 ...
resemble-ai/chatterbox
https://github.com/resemble-ai/chatterbox
null
null
null
null
24,557
null
null
mit
null
null
null
null
null
null
null
src/chatterbox/models/t3/modules/perceiver.py
null
null
null
null
null
null
Python
2026-05-04T02:27:45.125270
# Copyright (c) 2025 Resemble AI # Author: Manmay Nakhashi # MIT License import math import torch from torch import nn import torch.nn.functional as F from einops import rearrange class RelativePositionBias(nn.Module): def __init__(self, scale, causal=False, num_buckets=32, max_distance=128, heads=8): su...
resemble-ai/chatterbox
https://github.com/resemble-ai/chatterbox
null
null
null
null
24,557
null
null
mit
null
null
null
null
null
null
null
src/chatterbox/models/t3/t3.py
null
null
null
null
null
null
Python
2026-05-04T02:27:45.138960
# Copyright (c) 2025 Resemble AI # MIT License import logging from typing import Union, Optional, List logger = logging.getLogger(__name__) from tqdm import tqdm import torch import torch.nn.functional as F from torch import nn, Tensor from transformers import LlamaModel, LlamaConfig, GPT2Config, GPT2Model from trans...
resemble-ai/chatterbox
https://github.com/resemble-ai/chatterbox
null
null
null
null
24,557
null
null
mit
null
null
null
null
null
null
null
src/chatterbox/models/t3/modules/cond_enc.py
null
null
null
null
null
null
Python
2026-05-04T02:27:45.164957
from dataclasses import dataclass from typing import Optional import torch from torch import nn, Tensor from .perceiver import Perceiver from .t3_config import T3Config @dataclass class T3Cond: """ Dataclass container for most / all conditioning info. TODO: serialization methods aren't used, keeping the...
resemble-ai/chatterbox
https://github.com/resemble-ai/chatterbox
null
null
null
null
24,557
null
null
mit
null
null
null
null
null
null
null
src/chatterbox/models/t3/llama_configs.py
null
null
null
null
null
null
Python
2026-05-04T02:27:45.196012
LLAMA_520M_CONFIG_DICT = dict( # Arbitrary small number that won't cause problems when loading. # These param are unused due to custom input layers. vocab_size=8, # default params needed for loading most pretrained 1B weights max_position_embeddings=131072, hidden_size=1024, intermediate_siz...
resemble-ai/chatterbox
https://github.com/resemble-ai/chatterbox
null
null
null
null
24,557
null
null
mit
null
null
null
null
null
null
null
src/chatterbox/models/tokenizers/tokenizer.py
null
null
null
null
null
null
Python
2026-05-04T02:27:45.197433
import logging import json import torch from pathlib import Path from unicodedata import category, normalize from tokenizers import Tokenizer from huggingface_hub import hf_hub_download # Special tokens SOT = "[START]" EOT = "[STOP]" UNK = "[UNK]" SPACE = "[SPACE]" SPECIAL_TOKENS = [SOT, EOT, UNK, SPACE, "[PAD]", "[...
resemble-ai/chatterbox
https://github.com/resemble-ai/chatterbox
null
null
null
null
24,557
null
null
mit
null
null
null
null
null
null
null
src/chatterbox/models/utils.py
null
null
null
null
null
null
Python
2026-05-04T02:27:45.703892
class AttrDict(dict): def __init__(self, *args, **kwargs): super(AttrDict, self).__init__(*args, **kwargs) self.__dict__ = self
resemble-ai/chatterbox
https://github.com/resemble-ai/chatterbox
null
null
null
null
24,557
null
null
mit
null
null
null
null
null
null
null
src/chatterbox/models/s3gen/transformer/subsampling.py
null
null
null
null
null
null
Python
2026-05-04T02:27:51.372436
# Copyright (c) 2021 Mobvoi Inc (Binbin Zhang, Di Wu) # 2024 Alibaba Inc (Xiang Lyu) # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE...
Anjok07/ultimatevocalremovergui
https://github.com/Anjok07/ultimatevocalremovergui
null
null
null
null
24,506
null
null
mit
null
null
null
null
null
null
null
__version__.py
null
null
null
null
null
null
Python
2026-05-04T02:27:53.691359
VERSION = 'v5.6.0' PATCH = 'UVR_Patch_9_29_23_1_39' PATCH_MAC = 'UVR_Patch_9_29_23_1_39' PATCH_LINUX = 'UVR_Patch_9_29_23_1_39'
Anjok07/ultimatevocalremovergui
https://github.com/Anjok07/ultimatevocalremovergui
null
null
null
null
24,506
null
null
mit
null
null
null
null
null
null
null
demucs/filtering.py
null
null
null
null
null
null
Python
2026-05-04T02:27:53.692761
from typing import Optional import torch import torch.nn as nn from torch import Tensor from torch.utils.data import DataLoader def atan2(y, x): r"""Element-wise arctangent function of y/x. Returns a new tensor with signed angles in radians. It is an alternative implementation of torch.atan2 Args: ...