Este es un programa simple de Python que le brinda un archivo .mp3 que incluye la entrada de texto dada que habla una de las voces de Tiktok.
Agradezco a todas las personas que usan esto para su proyecto. Me encanta contribuir a la comunidad. Sin embargo, por favor me acredite usando el enlace del proyecto GitHub.
Para usar este programa, necesita una conexión a Internet, Python 3.6+ y todos los paquetes requeridos instalados. Para instalar los paquetes requeridos, ejecute: pip3 install -r requirements.txt
py main.py -txt FILENAME.txt -v VOICENAME (ver las voces a continuación)Solo los caracteres latinos son compatibles.
py main.py -t TEXT -v VOICENAME (ver las voces a continuación)Puede tener caracteres no latinos (siempre que tenga una voz compatible con TTS).
tiktok_voice en su directorio.from tiktok_voice import tts, Voice .tts(TEXT, VOICE, OUTPUTFILENAME, PLAYSOUND) en su código.Proporcioné un script de ejemplo que muestra cómo la función TTS podría usarse en un script.
Lista de cada voz y su designación:
| Nombre |
|---|
| Fantasma |
| Mascacca |
| C3PO |
| PUNTADA |
| Tormenta de asalto |
| COHETE |
| Madame_leota |
| Ghost_host |
| PIRATA |
| Au_female_1 |
| Au_male_1 |
| UK_MALE_1 |
| UK_MALE_2 |
| Us_female_1 |
| Us_female_2 |
| US_MALE_1 |
| Us_male_2 |
| US_MALE_3 |
| US_MALE_4 |
| Macho_jomboy |
| Macho_cody |
| Femenino_samc |
| Femenino_makeup |
| Femenino_richgirl |
| Macho_grinch |
| Macho_deadpool |
| Macho_jarvis |
| Masculino_ashmágico |
| Macho_olanterkkers |
| Male_ukneighbor |
| Macho_ukbutler |
| Femenina_shenna |
| Femenino_pansino |
| Macho_trevor |
| Femenino_betty |
| Macho_cupid |
| Femenino_grandma |
| Macho_xmxs_christmas |
| Macho_santa_narration |
| Macho_sing_deep_jingle |
| Macho_santa_effect |
| Femenino_ht_neyear |
| Macho_wizard |
| Femenino_ht_halloween |
| Fr_male_1 |
| Fr_male_2 |
| De_female |
| De_male |
| Es_male |
| Es_mx_male |
| BR_FEMALE_1 |
| BR_FEMALE_2 |
| BR_FEMALE_3 |
| BR_MALE |
| Bp_female_ivete |
| Bp_female_ludmilla |
| Pt_female_lhays |
| Pt_female_laizza |
| PT_MALE_BUENO |
| ID_FEMALE |
| Jp_female_1 |
| Jp_female_2 |
| Jp_female_3 |
| Jp_male |
| KR_MALE_1 |
| Kr_female |
| KR_MALE_2 |
| Jp_female_fujicochan |
| JP_FEMALE_HASEGAWARIA |
| Jp_male_keiichinakano |
| Jp_female_oomaaeaiika |
| JP_MALE_YUJINCHIGUSA |
| Jp_female_shirou |
| Jp_male_tamawakazuki |
| Jp_female_kaorishoji |
| Jp_female_yagishaki |
| Jp_male_hikakin |
| Jp_female_rei |
| Jp_male_shuichiro |
| Jp_male_matsudake |
| Jp_female_machikoriiita |
| JP_MALE_MATSUO |
| Jp_male_osada |
| Sing_female_alto |
| Cing_male_tenor |
| Sing_female_Warmy_Breeze |
| Sing_male_Sunshine_Soon |
| Cing_female_glorious |
| Cing_male_it_goes_up |
| Cing_male_chipmunk |
| Sing_female_wonderful_world |
| Cing_male_funny_thanksgiving |
| Male_narration |
| Macho_funny |
| Femenino_emocional |
Puede encontrar muestras de todas las voces en /muestras /
MIT License
Copyright (c) 2024 Mark Reznikov
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.