Skip to main content

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

Project description

lectura-monospeaker

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

Installation

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

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

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

Utilisation

Depuis des phonemes IPA

from lectura_monospeaker import creer_engine

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

Via l'API distante

from lectura_monospeaker import creer_engine

engine = creer_engine(mode="api", api_url="https://api.lectura.world")
result = engine.synthesize("Bonjour")

Controles prosodiques

Parametre Defaut Description
duration_scale 1.0 Vitesse globale
pitch_shift 0.0 Decalage F0 (demi-tons)
pitch_range 1.3 Variation F0 (1.0 = neutre)
energy_scale 1.0 Intensite
pause_scale 1.0 Duree des pauses
phrase_type 0 0=decl, 1=inter, 2=excl, 3=susp

Architecture

  • Matcha-Conformer : phonemes → mel-spectrogramme via flow matching ODE
  • 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_mono/
  3. ~/.lectura/models/tts_mono/
  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_monospeaker-3.1.1.tar.gz (27.8 kB view details)

Uploaded Source

Built Distribution

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

lectura_monospeaker-3.1.1-py3-none-any.whl (25.4 kB view details)

Uploaded Python 3

File details

Details for the file lectura_monospeaker-3.1.1.tar.gz.

File metadata

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

File hashes

Hashes for lectura_monospeaker-3.1.1.tar.gz
Algorithm Hash digest
SHA256 00dca34350c8e412dc17a97c4c5c1248fc2a950c928048cf51c564876cdff0ba
MD5 8b000385bf3ebfce1bcb3b62b611c610
BLAKE2b-256 2dc4d4815a50efae968b278f3d060647da25af371676fb7f3c0bf311503f2d80

See more details on using hashes here.

File details

Details for the file lectura_monospeaker-3.1.1-py3-none-any.whl.

File metadata

File hashes

Hashes for lectura_monospeaker-3.1.1-py3-none-any.whl
Algorithm Hash digest
SHA256 cfcd06eea14eb720c8b5f8c0dbf63545d9f00295be1a9546aae56ad012ed4497
MD5 53830ed5879903eca854c9e5e1a7566e
BLAKE2b-256 6c0a9296faabc30416a3f2bcd277e2d3193f6955354fd7b6504eb404309fda07

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