Skip to main content

Synthese vocale neuronale monospeaker francais — FastPitch-Lite + HiFi-GAN (ONNX)

Project description

lectura-tts-monospeaker

Synthese vocale neuronale monospeaker pour le francais.

Installation

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

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

# Avec G2P integre (texte → audio)
pip install lectura-tts-monospeaker[all]

Utilisation

Depuis du texte (necessite lectura-phonemiseur)

from lectura_tts_monospeaker import synthetiser

audio = synthetiser("Bonjour le monde")
# audio: numpy array float32, 22050 Hz

Depuis des phonemes IPA

from lectura_tts_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_tts_monospeaker import creer_engine

engine = creer_engine(mode="api", api_url="https://api.lec-tu-ra.com")
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

  • FastPitch-Lite : phonemes → mel-spectrogramme (~5M params)
  • HiFi-GAN V1 : mel → audio 22050 Hz (~3.5M params)
  • Runtime : ONNX (pas de dependance PyTorch)

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_tts_monospeaker-1.4.0.tar.gz (19.6 kB view details)

Uploaded Source

Built Distribution

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

lectura_tts_monospeaker-1.4.0-py3-none-any.whl (18.5 kB view details)

Uploaded Python 3

File details

Details for the file lectura_tts_monospeaker-1.4.0.tar.gz.

File metadata

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

File hashes

Hashes for lectura_tts_monospeaker-1.4.0.tar.gz
Algorithm Hash digest
SHA256 806eea62f915f2fdb023082c1e18a0e3038fb2a5e6833f6d1acf9f0e5d98a98c
MD5 95999060635bad67a79c74f7416b7ab0
BLAKE2b-256 5aa3a4f82e30e63e3efec761212d2947a76157d388875d5d22a53e39f3abaa97

See more details on using hashes here.

File details

Details for the file lectura_tts_monospeaker-1.4.0-py3-none-any.whl.

File metadata

File hashes

Hashes for lectura_tts_monospeaker-1.4.0-py3-none-any.whl
Algorithm Hash digest
SHA256 01cc7d05b516c63486ac3da7196ec7ed79b5cdae27518bc376d4e367e7520d0c
MD5 c12db0fa06a4d163aacb552a632370c4
BLAKE2b-256 7687a22d97e3281545af0028151619e17746cb63dfaab92cff70652e0623089e

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