Skip to main content

Synthese vocale neuronale multi-speaker francais — Matcha-Conformer + HiFi-GAN (ONNX)

Project description

lectura-multispeaker

Moteur de synthese vocale neuronale multi-speaker pour le francais — Matcha-Conformer + HiFi-GAN (ONNX).

Supporte 6 voix : siwis, ezwa, nadine, bernard, gilles, zeckou.

Installation

# Version minimale (API distante, zero deps)
pip install lectura-multispeaker

# Version locale (inference ONNX)
pip install lectura-multispeaker[onnx]

Pour le pipeline complet texte → audio, utilisez pip install lectura-tts-multi (inclut le G2P).

Utilisation

Depuis des phonemes IPA

from lectura_multispeaker import creer_engine

engine = creer_engine(mode="local")
engine.set_speaker("siwis")
result = engine.synthesize_phonemes(
    "bɔ̃ʒuʁ",
    phrase_type=0,
)
# result.samples: numpy float32
# result.sample_rate: 22050
# result.phoneme_timings: list[PhonemeTiming]

Lister les speakers disponibles

from lectura_multispeaker import liste_speakers
print(liste_speakers())  # ['siwis', 'ezwa', 'nadine', 'bernard', 'gilles', 'zeckou']

Controles prosodiques

Parametre Defaut Description
duration_scale 1.0 Vitesse globale
pitch_shift 0.0 Decalage F0 (demi-tons)
pitch_range 1.0 Variation F0
energy_scale 1.0 Intensite
pause_scale 1.0 Duree des pauses
phrase_type 0 0=decl, 1=inter, 2=excl, 3=susp
n_ode_steps 4 Pas ODE Matcha (plus = meilleur)

Architecture

  • Matcha-Conformer : phonemes → mel-spectrogramme via flow matching ODE (encodeur par speaker)
  • HiFi-GAN V1 : mel → audio 22050 Hz
  • Runtime : ONNX (pas de dependance PyTorch)

Emplacements des modeles

Recherche dans l'ordre :

  1. Parametre models_dir explicite
  2. $LECTURA_MODELS_DIR/tts_multispeaker/
  3. ~/.lectura/models/tts_multispeaker/
  4. Modeles embarques dans le package (version privee)

Licence

Licence proprietaire Lectura. Voir LICENCE.txt.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

lectura_multispeaker-3.2.1.tar.gz (29.7 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

lectura_multispeaker-3.2.1-py3-none-any.whl (26.8 kB view details)

Uploaded Python 3

File details

Details for the file lectura_multispeaker-3.2.1.tar.gz.

File metadata

  • Download URL: lectura_multispeaker-3.2.1.tar.gz
  • Upload date:
  • Size: 29.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.11.9

File hashes

Hashes for lectura_multispeaker-3.2.1.tar.gz
Algorithm Hash digest
SHA256 fcf1b22220b6a6a193c66c17d7b60ce08e3fc4943e1d5d86ada2cfaa15778116
MD5 eeb6f8aaade014757a44d122d22a650b
BLAKE2b-256 6ccb1fc30e3ce822830863400f7c8f8a0c5b9679176e7d5e3a6ab1c710b938bd

See more details on using hashes here.

File details

Details for the file lectura_multispeaker-3.2.1-py3-none-any.whl.

File metadata

File hashes

Hashes for lectura_multispeaker-3.2.1-py3-none-any.whl
Algorithm Hash digest
SHA256 e2c92babdaf4cb05ddf449d91ff9b95c7a1f31aefa925e5edb6ee20618e5b359
MD5 a6f58e5c9c3da7bea831b415779d8d5e
BLAKE2b-256 1ed77a21c385fb30bd143adbec4fea6f2d5b2e5f549cc29f9893023893d5a841

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page