Xilu004 Sample Voices T2S
src.xil_pipeline.XILU004_sample_voices_T2S
Audition cast voices by generating a short sample MP3 per voice.
Reads a cast configuration file and calls the configured TTS backend to produce one sample MP3 per assigned voice. Each sample says:
"I am <full_name> not yo momma"
Outputs to voice_samples/<TAG>/<backend>/<actor>.mp3 so samples from
different backends sit side-by-side for direct comparison.
Usage:
xil-sample --episode S02E03 --dry-run
xil-sample --episode S02E03
xil-sample --episode S02E03 --backend gtts
xil-sample --episode S02E03 --backend chatterbox
xil-sample --episode S02E03 --force
check_elevenlabs_quota
Display current ElevenLabs API character usage and return remaining quota.
Source code in src/xil_pipeline/XILU004_sample_voices_T2S.py
has_enough_characters
Return True if the ElevenLabs quota can cover text_to_generate.
Source code in src/xil_pipeline/XILU004_sample_voices_T2S.py
get_best_model_for_budget
Return the TTS model to use, always eleven_v3.
Source code in src/xil_pipeline/XILU004_sample_voices_T2S.py
get_parser
Return the argument parser for xil-sample.
Source code in src/xil_pipeline/XILU004_sample_voices_T2S.py
main
CLI entry point for cast voice sample generation.
Source code in src/xil_pipeline/XILU004_sample_voices_T2S.py
307 308 309 310 311 312 313 314 315 316 317 318 319 320 321 322 323 324 325 326 327 328 329 330 331 332 333 334 335 336 337 338 339 340 341 342 343 344 345 346 347 348 349 350 351 352 353 354 355 356 357 358 359 360 361 362 363 364 365 366 367 368 369 370 371 372 373 374 375 376 377 378 379 380 381 382 383 384 385 386 387 388 389 390 391 392 393 394 395 396 397 398 399 400 401 402 403 404 405 406 407 408 409 410 411 412 413 414 415 416 417 418 419 420 421 422 423 424 425 426 427 428 429 430 431 432 433 434 435 436 437 438 439 440 | |