Skip to content

Add voice reference extraction API - #11

Merged
andimarafioti merged 1 commit into
mainfrom
voice-ref-extraction
Jun 26, 2026
Merged

Add voice reference extraction API#11
andimarafioti merged 1 commit into
mainfrom
voice-ref-extraction

Conversation

@andimarafioti

Copy link
Copy Markdown
Owner

Summary

  • Bind qwentts.cpp qt_extract_voice_ref / qt_voice_ref_free through ctypes.
  • Add a public VoiceRef API plus .spk / .rvq save/load helpers.
  • Add QwenTTS.extract_voice_ref(...) and QwenTTS.save_voice_ref(...) for in-process Base clone latent extraction.
  • Bump the package version to 0.3.0 and update HF wheel install examples.

Why

faster-qwen3-tts needs to cache cloned voice conditioning without shelling out to qwentts.cpp tools. This exposes the native ABI directly in the Python package so future wheels include the required API.

Validation

  • uv run --with pytest pytest -q tests
  • uv run --with ruff ruff check src tests
  • uv run python - <<'PY' ... confirmed qwentts_cpp.__version__ == "0.3.0"
  • local native loader smoke confirmed qt_extract_voice_ref and qt_voice_ref_free symbols are available

@andimarafioti
andimarafioti marked this pull request as ready for review June 26, 2026 10:20
@andimarafioti
andimarafioti merged commit 81ecb81 into main Jun 26, 2026
2 of 8 checks passed
@andimarafioti
andimarafioti deleted the voice-ref-extraction branch June 26, 2026 10:21
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant