Xilu005 Discover Sfx
src.xil_pipeline.XILU005_discover_SFX
Discover and inspect personally generated Sound Effects.
Two data sources are supported:
-
ElevenLabs account history (
--api, default when accessible): CallsGET /v1/sound-generation/historydirectly. Requires the API key to have Sound Effects access. If your key is missing it, go to ElevenLabs → Profile → API Keys → edit your key → Endpoints → Sound Effects → Access. -
Local SFX library (
--local, default fallback): Scans theSFX/directory and reads ID3/mutagen metadata — prompt text stored in the USLT lyrics tag, duration, file size, bit-rate. Works with no API key required.
Usage:
python XILU005_discover_SFX.py # local scan (default)
python XILU005_discover_SFX.py --api # attempt API (endpoint may not be public)
python XILU005_discover_SFX.py --local # explicit local scan
python XILU005_discover_SFX.py --search "phone"
python XILU005_discover_SFX.py --verbose
python XILU005_discover_SFX.py --json
python XILU005_discover_SFX.py --sfx-dir SFX/ # override local scan directory
fetch_local_records
Scan sfx_dir and return one record per .mp3 file.
Source code in src/xil_pipeline/XILU005_discover_SFX.py
fetch_api_records
Fetch sound-generation history from the ElevenLabs API.
Paginates until all items are retrieved or max_items is reached.
Parameters:
-
api_key(str) –ElevenLabs API key with
sound_generationpermission. -
max_items(int | None, default:None) –Cap on total records returned.
None= no limit.
Returns:
Raises:
-
SystemExit–When the API key is missing the required permission.
Source code in src/xil_pipeline/XILU005_discover_SFX.py
151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 | |
print_verbose_local
Print all fields for a local SFX record.
Source code in src/xil_pipeline/XILU005_discover_SFX.py
print_compact_local
Print a compact line for a local SFX record.
Source code in src/xil_pipeline/XILU005_discover_SFX.py
print_verbose_api
Print all fields for an API SFX record.
Source code in src/xil_pipeline/XILU005_discover_SFX.py
print_compact_api
Print a compact summary line for an API SFX record.
Source code in src/xil_pipeline/XILU005_discover_SFX.py
export_kit
Generate SFX inventory JSON, pipe-hint cheatsheet, and copy the reference doc.
Parameters:
-
records(list[dict]) –Local SFX records from
fetch_local_records(). -
output_dir(str, default:'.') –Directory to write output files into.
Returns:
Source code in src/xil_pipeline/XILU005_discover_SFX.py
get_parser
Source code in src/xil_pipeline/XILU005_discover_SFX.py
main
CLI entry point for SFX discovery.
Source code in src/xil_pipeline/XILU005_discover_SFX.py
492 493 494 495 496 497 498 499 500 501 502 503 504 505 506 507 508 509 510 511 512 513 514 515 516 517 518 519 520 521 522 523 524 525 526 527 528 529 530 531 532 533 534 535 536 537 538 539 540 541 542 543 544 545 546 547 548 549 550 551 552 553 554 555 556 557 558 559 560 561 562 563 564 565 566 567 568 569 570 571 572 573 574 575 576 577 578 579 580 581 582 583 584 585 586 587 588 589 | |