informatica:inteligencia_artificial:tts
Differences
This shows you the differences between two versions of the page.
| Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
| informatica:inteligencia_artificial:tts [2026/07/03 16:53] – jose | informatica:inteligencia_artificial:tts [2026/07/04 00:03] (current) – jose | ||
|---|---|---|---|
| Line 2: | Line 2: | ||
| Para grabar voz mimic:\\ | Para grabar voz mimic:\\ | ||
| https:// | https:// | ||
| + | |||
| + | Este es mas moderno: | ||
| + | https:// | ||
| + | |||
| + | docker run -it -p 8000:8000 -v " | ||
| + | |||
| + | Videos Youtube:\\ | ||
| + | https:// | ||
| Line 136: | Line 144: | ||
| python generar_voz.py entrada.txt salida.mp3 | python generar_voz.py entrada.txt salida.mp3 | ||
| | | ||
| + | |||
| + | ====== Piper TTS ====== | ||
| + | El proyecto en el 2026 se ha movido a:\\ | ||
| + | https:// | ||
| + | |||
| + | Seguimos README.md | ||
| + | git clone https:// | ||
| + | cd piper1-gpl | ||
| + | python -m venv venv | ||
| + | pip install piper-tts | ||
| + | Listamos voces | ||
| + | python3 -m piper.download_voices | ||
| + | Descargamos castellano | ||
| + | mkdir ES && cd ES | ||
| + | python3 -m piper.download_voices es_ES-sharvard-medium | ||
| + | Descarga dos ficheros, un json con la configuración y el de la voz que ocupa 74Mb | ||
| + | 74M es_ES-sharvard-medium.onnx | ||
| + | 4.8K es_ES-sharvard-medium.onnx.json | ||
| + | Creamos un fichero con esa voz que es casi inmediato: | ||
| + | time python3 -m piper -m es_ES-sharvard-medium -f test.wav -- 'Esto es una pequeña prueba' | ||
| + | real 1.554s | ||
| + | user 2.740s | ||
| + | |||
| + | Con una frase mas larga tarda mas o menos lo mismo | ||
| + | time python3 -m piper -m es_ES-sharvard-medium -f test.wav -- 'Esto es una pequeña prueba para ver cuanto puede tardar este programa en reproducir texto a voz.' | ||
| + | real 1.771s | ||
| + | user 3.596s | ||
| + | |||
| + | |||
| | | ||
| ====== COQUI TTS ====== | ====== COQUI TTS ====== | ||
informatica/inteligencia_artificial/tts.1783097619.txt.gz · Last modified: by jose
