keep updated
This commit is contained in:
@@ -197,7 +197,7 @@
|
||||
},
|
||||
{
|
||||
"cell_type": "code",
|
||||
"execution_count": 1,
|
||||
"execution_count": 17,
|
||||
"id": "cecefa85-b37d-457e-9e99-e582dabdfb9f",
|
||||
"metadata": {},
|
||||
"outputs": [
|
||||
@@ -205,8 +205,6 @@
|
||||
"name": "stdout",
|
||||
"output_type": "stream",
|
||||
"text": [
|
||||
"pygame 2.5.2 (SDL 2.28.3, Python 3.12.1)\n",
|
||||
"Hello from the pygame community. https://www.pygame.org/contribute.html\n",
|
||||
"Files created!\n"
|
||||
]
|
||||
}
|
||||
@@ -218,13 +216,13 @@
|
||||
"import edge_tts\n",
|
||||
"import pygame\n",
|
||||
"\n",
|
||||
"TEXT = \"city\"\n",
|
||||
"TEXT = \"I am,He is,She is,They are,Go away,Do all,Do it,Throw it\"\n",
|
||||
"Wordlist = TEXT.split(\",\")\n",
|
||||
"\n",
|
||||
"for w in Wordlist:\n",
|
||||
" # for VOICE in ['en-US-GuyNeural', 'en-US-JennyNeural', 'en-GB-RyanNeural', 'en-GB-SoniaNeural']:\n",
|
||||
" for VOICE in ['en-US-EricNeural', 'en-US-MichelleNeural']:\n",
|
||||
" w = w.strip()\n",
|
||||
" w = w.strip().replace(' ', '-')\n",
|
||||
" # OUTPUT_FILE = f\"{w}-{VOICE.replace('EricNeural', 'Guy-Male').replace('JennyNeural', 'Jenny-Female').replace('RyanNeural', 'Ryan-Male').replace('SoniaNeural', 'Sonia-Female').lower()}.mp3\"\n",
|
||||
" OUTPUT_FILE = f\"{w}-{VOICE.replace('EricNeural', 'Male').replace('MichelleNeural', 'Female').replace('en-', '').lower()}.mp3\"\n",
|
||||
" communicate = edge_tts.Communicate(w, VOICE)\n",
|
||||
|
||||
Reference in New Issue
Block a user