Il s'agit d'un simple programme Python qui vous donne un fichier .mp3 comprenant l'entrée de texte donnée qui est parlée par l'une des voix Tiktok.
Je remercie toutes les personnes qui l'utilisent pour leur projet. J'adore contribuer à la communauté. Cependant, veuillez me créditer en utilisant le lien du projet GitHub.
Pour utiliser ce programme, vous avez besoin d'une connexion Internet, de Python 3.6+ et de tous les packages requis installés. Pour installer les packages requis, exécutez: pip3 install -r requirements.txt
py main.py -txt FILENAME.txt -v VOICENAME (voir voix ci-dessous)Seuls les caractères latins sont pris en charge.
py main.py -t TEXT -v VOICENAME (voir voix ci-dessous)Vous pouvez avoir des personnages non latins (tant qu'il a une voix prise en charge TTS).
tiktok_voice dans votre répertoire.from tiktok_voice import tts, Voice .tts(TEXT, VOICE, OUTPUTFILENAME, PLAYSOUND) dans votre code.J'ai fourni un exemple de script qui montre comment la fonction TTS pourrait être utilisée dans un script.
Liste de chaque voix et de sa désignation:
| Nom |
|---|
| Fantôme |
| Chewbacca |
| C3PO |
| POINT |
| Stormtroopher |
| FUSÉE |
| Madame_Leota |
| Fantôme_host |
| PIRATE |
| 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 |
| Masculin |
| Male_cody |
| Femelle_samc |
| Femme_Makeup |
| Femelle_richgirl |
| Male_grinch |
| Male_deadpool |
| Male_jarvis |
| Male_ashmagic |
| Masculin |
| Male_ukneighbor |
| Mâle |
| Femme_shenna |
| Femme_pansino |
| Male_trevor |
| Femelle_betty |
| Male_cupid |
| Femme_grandma |
| Male_xmxs_christmas |
| Male_santa_narration |
| Male_sing_deep_jingle |
| Male_santa_effecte |
| Femelle_ht_neyear |
| Masculin |
| Femelle_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_hasegawariona |
| Jp_male_keiichinakano |
| Jp_female_oomaaiika |
| 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 |
| Sing_male_tenor |
| Sing_female_warmy_breeze |
| Sing_male_sunshine_soon |
| Sing_female_glorious |
| Sing_male_it_goes_up |
| Sing_male_chipmunk |
| Sing_female_wonderful_world |
| Sing_male_funny_thanksgiving |
| Mâle |
| Male_funny |
| Femme_émotionnel |
Vous pouvez trouver des échantillons de toutes les voix dans / échantillons /
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.