This commit is contained in:
xiaolai
2024-02-24 07:55:29 +08:00
parent e5364b5099
commit 38ac4c59d9
5 changed files with 21 additions and 9 deletions

View File

@@ -31,7 +31,7 @@
},
{
"cell_type": "code",
"execution_count": 2,
"execution_count": 1,
"id": "9aad6634-e833-4ec4-b285-84e051329712",
"metadata": {},
"outputs": [
@@ -39,6 +39,8 @@
"name": "stdout",
"output_type": "stream",
"text": [
"pygame 2.5.2 (SDL 2.28.3, Python 3.11.5)\n",
"Hello from the pygame community. https://www.pygame.org/contribute.html\n",
"Files created!\n"
]
}
@@ -49,7 +51,7 @@
"import pygame\n",
"\n",
"TEXT = \"\"\"\n",
"frustrate\n",
"plaid\n",
"\"\"\"\n",
"\n",
"Wordlist = TEXT.split(\",\")\n",

View File

@@ -25,25 +25,35 @@
},
{
"cell_type": "code",
"execution_count": null,
"execution_count": 1,
"id": "9aad6634-e833-4ec4-b285-84e051329712",
"metadata": {},
"outputs": [],
"outputs": [
{
"name": "stdout",
"output_type": "stream",
"text": [
"pygame 2.5.2 (SDL 2.28.3, Python 3.11.5)\n",
"Hello from the pygame community. https://www.pygame.org/contribute.html\n",
"Files created!\n"
]
}
],
"source": [
"import asyncio\n",
"import edge_tts\n",
"import pygame\n",
"\n",
"TEXT = \"\"\"\n",
"happy\n",
"The young artist painted a stunning landscape with a barn and a vast sky.\n",
"\"\"\"\n",
"\n",
"# VOICE = \"zh-CN-YunxiaNeural\"\n",
"# VOICE = \"en-IN-PrabhatNeural\"\n",
"\n",
"VOICE = \"zh-CN-liaoning-XiaobeiNeural\"\n",
"# VOICE = \"zh-CN-liaoning-XiaobeiNeural\"\n",
"\n",
"# VOICE = \"en-US-GuyNeural\" # Male\n",
"VOICE = \"en-US-GuyNeural\" # Male\n",
"# VOICE = \"en-US-AnaNeural\" # Female\n",
"# VOICE = \"en-US-AndrewNeural\" # Male\n",
"# VOICE = \"en-US-AriaNeural\" # Female\n",
@@ -91,7 +101,7 @@
},
{
"cell_type": "code",
"execution_count": null,
"execution_count": 2,
"id": "862f0948",
"metadata": {},
"outputs": [],