keep updated

This commit is contained in:
xiaolai
2024-03-24 14:03:37 +08:00
committed by Lyric
parent 8f9e526159
commit efea81e031
48 changed files with 86 additions and 109 deletions

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

View File

@@ -28,38 +28,16 @@
"name": "stdout",
"output_type": "stream",
"text": [
"Collecting edge-tts\n",
" Downloading edge_tts-6.1.10-py3-none-any.whl.metadata (4.3 kB)\n",
"Collecting aiohttp>=3.8.0 (from edge-tts)\n",
" Downloading aiohttp-3.9.3-cp312-cp312-macosx_11_0_arm64.whl.metadata (7.4 kB)\n",
"Requirement already satisfied: edge-tts in /opt/homebrew/Caskroom/miniconda/base/lib/python3.12/site-packages (6.1.10)\n",
"Requirement already satisfied: aiohttp>=3.8.0 in /opt/homebrew/Caskroom/miniconda/base/lib/python3.12/site-packages (from edge-tts) (3.9.3)\n",
"Requirement already satisfied: certifi>=2023.11.17 in /opt/homebrew/Caskroom/miniconda/base/lib/python3.12/site-packages (from edge-tts) (2024.2.2)\n",
"Collecting aiosignal>=1.1.2 (from aiohttp>=3.8.0->edge-tts)\n",
" Downloading aiosignal-1.3.1-py3-none-any.whl.metadata (4.0 kB)\n",
"Requirement already satisfied: aiosignal>=1.1.2 in /opt/homebrew/Caskroom/miniconda/base/lib/python3.12/site-packages (from aiohttp>=3.8.0->edge-tts) (1.3.1)\n",
"Requirement already satisfied: attrs>=17.3.0 in /opt/homebrew/Caskroom/miniconda/base/lib/python3.12/site-packages (from aiohttp>=3.8.0->edge-tts) (23.2.0)\n",
"Collecting frozenlist>=1.1.1 (from aiohttp>=3.8.0->edge-tts)\n",
" Downloading frozenlist-1.4.1-cp312-cp312-macosx_11_0_arm64.whl.metadata (12 kB)\n",
"Collecting multidict<7.0,>=4.5 (from aiohttp>=3.8.0->edge-tts)\n",
" Downloading multidict-6.0.5-cp312-cp312-macosx_11_0_arm64.whl.metadata (4.2 kB)\n",
"Collecting yarl<2.0,>=1.0 (from aiohttp>=3.8.0->edge-tts)\n",
" Downloading yarl-1.9.4-cp312-cp312-macosx_11_0_arm64.whl.metadata (31 kB)\n",
"Requirement already satisfied: frozenlist>=1.1.1 in /opt/homebrew/Caskroom/miniconda/base/lib/python3.12/site-packages (from aiohttp>=3.8.0->edge-tts) (1.4.1)\n",
"Requirement already satisfied: multidict<7.0,>=4.5 in /opt/homebrew/Caskroom/miniconda/base/lib/python3.12/site-packages (from aiohttp>=3.8.0->edge-tts) (6.0.5)\n",
"Requirement already satisfied: yarl<2.0,>=1.0 in /opt/homebrew/Caskroom/miniconda/base/lib/python3.12/site-packages (from aiohttp>=3.8.0->edge-tts) (1.9.4)\n",
"Requirement already satisfied: idna>=2.0 in /opt/homebrew/Caskroom/miniconda/base/lib/python3.12/site-packages (from yarl<2.0,>=1.0->aiohttp>=3.8.0->edge-tts) (3.4)\n",
"Downloading edge_tts-6.1.10-py3-none-any.whl (27 kB)\n",
"Downloading aiohttp-3.9.3-cp312-cp312-macosx_11_0_arm64.whl (389 kB)\n",
"\u001b[2K \u001b[90m━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━\u001b[0m \u001b[32m389.7/389.7 kB\u001b[0m \u001b[31m2.4 MB/s\u001b[0m eta \u001b[36m0:00:00\u001b[0m00:01\u001b[0m00:01\u001b[0m\n",
"\u001b[?25hUsing cached aiosignal-1.3.1-py3-none-any.whl (7.6 kB)\n",
"Downloading frozenlist-1.4.1-cp312-cp312-macosx_11_0_arm64.whl (51 kB)\n",
"\u001b[2K \u001b[90m━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━\u001b[0m \u001b[32m51.9/51.9 kB\u001b[0m \u001b[31m4.1 MB/s\u001b[0m eta \u001b[36m0:00:00\u001b[0m\n",
"\u001b[?25hDownloading multidict-6.0.5-cp312-cp312-macosx_11_0_arm64.whl (29 kB)\n",
"Downloading yarl-1.9.4-cp312-cp312-macosx_11_0_arm64.whl (79 kB)\n",
"\u001b[2K \u001b[90m━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━\u001b[0m \u001b[32m79.4/79.4 kB\u001b[0m \u001b[31m6.4 MB/s\u001b[0m eta \u001b[36m0:00:00\u001b[0m\n",
"\u001b[?25hInstalling collected packages: multidict, frozenlist, yarl, aiosignal, aiohttp, edge-tts\n",
"Successfully installed aiohttp-3.9.3 aiosignal-1.3.1 edge-tts-6.1.10 frozenlist-1.4.1 multidict-6.0.5 yarl-1.9.4\n",
"Collecting pygame\n",
" Downloading pygame-2.5.2-cp312-cp312-macosx_11_0_arm64.whl.metadata (13 kB)\n",
"Downloading pygame-2.5.2-cp312-cp312-macosx_11_0_arm64.whl (12.3 MB)\n",
"\u001b[2K \u001b[90m━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━\u001b[0m \u001b[32m12.3/12.3 MB\u001b[0m \u001b[31m4.3 MB/s\u001b[0m eta \u001b[36m0:00:00\u001b[0m00:01\u001b[0m00:01\u001b[0mm\n",
"\u001b[?25hInstalling collected packages: pygame\n",
"Successfully installed pygame-2.5.2\n"
"Requirement already satisfied: pygame in /opt/homebrew/Caskroom/miniconda/base/lib/python3.12/site-packages (2.5.2)\n"
]
}
],
@@ -70,7 +48,7 @@
},
{
"cell_type": "code",
"execution_count": 8,
"execution_count": 2,
"id": "9aad6634-e833-4ec4-b285-84e051329712",
"metadata": {},
"outputs": [
@@ -78,6 +56,8 @@
"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"
]
}
@@ -88,7 +68,7 @@
"import pygame\n",
"\n",
"TEXT = \"\"\"\n",
"a,b,c,d,e,f,g,h,i,j,k,l,m,n,o,p,q,r,s,t,u,v,w,x,y,z\n",
"cup, father, head, hat, above, mother, bird, sheep, ship, horse, blue, foot, day, eye, boy, nose, mouth, ear, hair, pure, fire, hour\n",
"\"\"\"\n",
"\n",
"Wordlist = TEXT.split(\",\")\n",
@@ -174,7 +154,7 @@
},
{
"cell_type": "code",
"execution_count": 1,
"execution_count": 4,
"id": "00939422-fbf9-4842-b82a-b6106624c075",
"metadata": {},
"outputs": [
@@ -182,8 +162,6 @@
"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"
]
}
@@ -193,13 +171,15 @@
"import edge_tts\n",
"import pygame\n",
"\n",
"TEXT = \"a,and,at,bar,books,boys,buy,cheese,day,dog,dough,dramatic,ear,feeds,for,girl,here,in,it,Jane,leisure,loves,Now,nuts,on,or,outdoor,play,read,red,rooms,She,sunny,sure,the,there,thought,to,trees,under,unique,vowed,was,with,young\"\n",
"TEXT = \"cup, father, head, hat, above, mother, bird, sheep, ship, horse, blue, foot, day, eye, boy, nose, mouth, ear, hair, pure, fire, hour\"\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-GuyNeural', 'en-US-JennyNeural', 'en-GB-RyanNeural', 'en-GB-SoniaNeural']:\n",
" for VOICE in ['en-US-GuyNeural', 'en-US-JennyNeural']:\n",
" w = w.strip()\n",
" OUTPUT_FILE = f\"{w}-{VOICE.replace('GuyNeural', 'Guy-Male').replace('JennyNeural', 'Jenny-Female').replace('RyanNeural', 'Ryan-Male').replace('SoniaNeural', 'Sonia-Female').lower()}.mp3\"\n",
" # OUTPUT_FILE = f\"{w}-{VOICE.replace('GuyNeural', 'Guy-Male').replace('JennyNeural', 'Jenny-Female').replace('RyanNeural', 'Ryan-Male').replace('SoniaNeural', 'Sonia-Female').lower()}.mp3\"\n",
" OUTPUT_FILE = f\"{w}-{VOICE.replace('GuyNeural', 'Male').replace('JennyNeural', 'Female').lower()}.mp3\"\n",
" communicate = edge_tts.Communicate(w, VOICE)\n",
" await communicate.save(OUTPUT_FILE) \n",
"\n",

View File

@@ -14,94 +14,91 @@
## 元音
| 音标 | 发音 | 例词 | |
| ---- | -------------- | ---------- | -------------- |
| iː | **UK** **US** | sh**ee**p | **UK** **US** |
| ɪ | **UK** **US** | sh**i**p | **UK** **US** |
| ɑː | **UK** **US** | f**a**ther | **UK** **US** |
| æ | **UK** **US** | h**a**t | **UK** **US** |
| ʌ | **UK** **US** | c**u**p | **UK** **US** |
| ɔː | **UK** **US** | h**or**se | **UK** **US** |
| ɒ | **UK** | s**o**ck | **UK** |
| uː | **UK** **US** | bl**ue** | **UK** **US** |
| ʊ | **UK** **US** | f**oo**t | **UK** **US** |
| e | **UK** **US** | h**ea**d | **UK** **US** |
| ɜː | **UK** | b**ir**d | **UK** |
| ɝː | **US** | b**ir**d | **US** |
| ə | **UK** **US** | **a**bove | **UK** **US** |
| ɚ | **US** | moth**er** | **US** |
| eɪ | **UK** **US** | d**ay** | **UK** **US** |
| aɪ | **UK** **US** | eye | **UK** **US** |
| ɔɪ | **UK** **US** | b**oy** | **UK** **US** |
| əʊ | **UK** | n**o**se | **UK** |
| | **US** | n**o**se | **US** |
| | **UK** **US** | m**ou**th | **UK** **US** |
| ɪə | **UK** | ear | **UK** |
| eə | **UK** | h**air** | **UK** |
| ʊə | **UK** | p**ure** | **UK** |
| aɪə | **UK** | f**ire** | **UK** |
| aʊə | **UK** | hour | **UK** |
| Phonemes | Examples |
| -------- | ----------------------- |
| `ʌ` | c**u**p `/kʌp /` <span class="speak-word-inline" data-audio-us-male="/audios/us/cup-en-us-male.mp3" data-audio-us-female="/audios/us/cup-en-us-female.mp3"></span> |
| `ɑː` | f**a**ther `/ˈfɑː·ðɚ /` <span class="speak-word-inline" data-audio-us-male="/audios/us/father-en-us-male.mp3" data-audio-us-female="/audios/us/father-en-us-female.mp3"></span> |
| `e` | h**ea**d `/hed /` <span class="speak-word-inline" data-audio-us-male="/audios/us/head-en-us-male.mp3" data-audio-us-female="/audios/us/head-en-us-female.mp3"></span> |
| `æ` | h**a**t `/hæt /` <span class="speak-word-inline" data-audio-us-male="/audios/us/hat-en-us-male.mp3" data-audio-us-female="/audios/us/hat-en-us-female.mp3"></span> |
| `ə` | **a**bove `/əˈbʌv /` <span class="speak-word-inline" data-audio-us-male="/audios/us/above-en-us-male.mp3" data-audio-us-female="/audios/us/above-en-us-female.mp3"></span> |
| `ɚ` | moth**er** `/ˈmʌð·ɚ /` <span class="speak-word-inline" data-audio-us-male="/audios/us/mother-en-us-male.mp3" data-audio-us-female="/audios/us/mother-en-us-female.mp3"></span> |
| `ɝː` | b**ir**d `/bɝːd /` <span class="speak-word-inline" data-audio-us-male="/audios/us/bird-en-us-male.mp3" data-audio-us-female="/audios/us/bird-en-us-female.mp3"></span> |
| `iː` | sh**ee**p `/ʃiːp /` <span class="speak-word-inline" data-audio-us-male="/audios/us/sheep-en-us-male.mp3" data-audio-us-female="/audios/us/sheep-en-us-female.mp3"></span> |
| `ɪ` | sh**i**p `/ʃɪp /` <span class="speak-word-inline" data-audio-us-male="/audios/us/ship-en-us-male.mp3" data-audio-us-female="/audios/us/ship-en-us-female.mp3"></span> |
| `ɔː` | h**or**se `/hɔːrs /` <span class="speak-word-inline" data-audio-us-male="/audios/us/horse-en-us-male.mp3" data-audio-us-female="/audios/us/horse-en-us-female.mp3"></span> |
| `uː` | bl**ue** `/bluː /` <span class="speak-word-inline" data-audio-us-male="/audios/us/blue-en-us-male.mp3" data-audio-us-female="/audios/us/blue-en-us-female.mp3"></span> |
| `ʊ` | f**oo**t `/fʊt /` <span class="speak-word-inline" data-audio-us-male="/audios/us/foot-en-us-male.mp3" data-audio-us-female="/audios/us/foot-en-us-female.mp3"></span> |
| `eɪ` | d**ay** `/deɪ /` <span class="speak-word-inline" data-audio-us-male="/audios/us/day-en-us-male.mp3" data-audio-us-female="/audios/us/day-en-us-female.mp3"></span> |
| `aɪ` | **eye** `/aɪ /` <span class="speak-word-inline" data-audio-us-male="/audios/us/eye-en-us-male.mp3" data-audio-us-female="/audios/us/eye-en-us-female.mp3"></span> |
| `ɔɪ` | b**oy** `/bɔɪ /` <span class="speak-word-inline" data-audio-us-male="/audios/us/boy-en-us-male.mp3" data-audio-us-female="/audios/us/boy-en-us-female.mp3"></span> |
| `oʊ` | n**o**se `/noʊz /` <span class="speak-word-inline" data-audio-us-male="/audios/us/nose-en-us-male.mp3" data-audio-us-female="/audios/us/nose-en-us-female.mp3"></span> |
| `aʊ` | m**ou**th `/maʊθ /` <span class="speak-word-inline" data-audio-us-male="/audios/us/mouth-en-us-male.mp3" data-audio-us-female="/audios/us/mouth-en-us-female.mp3"></span> |
| `ɪr` | ear `/ɪr /` <span class="speak-word-inline" data-audio-us-male="/audios/us/ear-en-us-male.mp3" data-audio-us-female="/audios/us/ear-en-us-female.mp3"></span> |
| `er` | h**air** `/her /` <span class="speak-word-inline" data-audio-us-male="/audios/us/hair-en-us-male.mp3" data-audio-us-female="/audios/us/hair-en-us-female.mp3"></span> |
| `ʊr` | p**ure** `/pjʊr /` <span class="speak-word-inline" data-audio-us-male="/audios/us/pure-en-us-male.mp3" data-audio-us-female="/audios/us/pure-en-us-female.mp3"></span> |
| `aɪr` | f**ire** `/faɪr /` <span class="speak-word-inline" data-audio-us-male="/audios/us/fire-en-us-male.mp3" data-audio-us-female="/audios/us/fire-en-us-female.mp3"></span> |
| `aʊr` | hour `/aʊr/` <span class="speak-word-inline" data-audio-us-male="/audios/us/hour-en-us-male.mp3" data-audio-us-female="/audios/us/hour-en-us-female.mp3"></span> |
## 辅音
| 音标 | 发音 | 例词 | |
| ---- | -------------- | ----------- | -------------- |
| p | **UK** **US** | **p**en | **UK** **US** |
| b | **UK** **US** | **b**ook | **UK** **US** |
| t | **UK** **US** | **t**own | **UK** **US** |
| t̬ | **US** | cu**tt**ing | **US** |
| d | **UK** **US** | **d**ay | **UK** **US** |
| k | **UK** **US** | **c**at | **UK** **US** |
| g | **UK** **US** | **g**ive | **UK** **US** |
| f | **UK** **US** | **f**ish | **UK** **US** |
| v | **UK** **US** | **v**ery | **UK** **US** |
| θ | **UK** **US** | **th**ink | **UK** **US** |
| ð | **UK** **US** | **th**is | **UK** **US** |
| s | **UK** **US** | **s**ay | **UK** **US** |
| z | **UK** **US** | **z**oo | **UK** **US** |
| ʃ | **UK** **US** | **sh**e | **UK** **US** |
| ʒ | **UK** **US** | vi**si**on | **UK** **US** |
| tʃ | **UK** **US** | **ch**eese | **UK** **US** |
| dʒ | **UK** **US** | **j**ump | **UK** **US** |
| m | **UK** **US** | **m**oon | **UK** **US** |
| n | **UK** **US** | **n**ame | **UK** **US** |
| ŋ | **UK** **US** | si**ng** | **UK** **US** |
| l | **UK** **US** | **l**ook | **UK** **US** |
| r | **UK** **US** | **r**un | **UK** **US** |
| w | **UK** **US** | **w**e | **UK** **US** |
| j | **UK** **US** | **y**es | **UK** **US** |
| h | **UK** **US** | **h**and | **UK** **US** |
| Phonemes | Examples |
| -------- | ----------- |
| `p` | **p**en |
| `b` | **b**ook |
| `t` | **t**own |
| `t̬` | cu**tt**ing |
| `d` | **d**ay |
| `k` | **c**at |
| `g` | **g**ive |
| `f` | **f**ish |
| `v` | **v**ery |
| `s` | **s**ay |
| `z` | **z**oo |
| `θ` | **th**ink |
| `ð` | **th**is |
| `ʃ` | **sh**e |
| `ʒ` | vi**si**on |
| `h` | **h**and |
| `tʃ` | **ch**eese |
| `dʒ` | **j**ump |
| `m` | **m**oon |
| `n` | **n**ame |
| `ŋ` | si**ng** |
| `l` | **l**ook |
| `r` | **r**un |
| `w` | **w**e |
| `j` | **y**es |
## 其它音素
| | | | |
| ---- | ---- | ---- | ---- |
| | | | |
| | | | |
| --- | --- | --- | --- |
| | | | |
These sounds are found in some unstressed syllables:
| i | **UK** **US** | happ**y** | **UK** **US** |
| ---- | -------------- | ------------- | -------------- |
| u | **UK** **US** | sit**u**ation | **UK** **US** |
| i | **UK** **US** | happ**y** | **UK** **US** |
| --- | -------------- | ------------- | -------------- |
| u | **UK** **US** | sit**u**ation | **UK** **US** |
These sounds are found in some words that come from other languages:
| ɒ̃ | **UK** **US** | croiss**ant** | **UK** **US** |
| ---- | -------------- | ------------- | -------------- |
| x | **UK** **US** | lo**ch** | **UK** **US** |
| ɒ̃ | **UK** **US** | croiss**ant** | **UK** **US** |
| --- | -------------- | ------------- | -------------- |
| x | **UK** **US** | lo**ch** | **UK** **US** |
These syllables can be pronounced either with or without a vowel:
| əl | **UK** **US** | lab**el** | **UK** **US** |
| ---- | -------------- | -------------- | -------------- |
| əm | **UK** **US** | criticis**m** | **UK** **US** |
| ən | **UK** **US** | sudd**en** | **UK** **US** |
| ər | **UK** | diction**ar**y | **UK** |
| əl | **UK** **US** | lab**el** | **UK** **US** |
| --- | -------------- | -------------- | -------------- |
| əm | **UK** **US** | criticis**m** | **UK** **US** |
| ən | **UK** **US** | sudd**en** | **UK** **US** |
| ər | **UK** | diction**ar**y | **UK** |
## Stress and syllable division
| | | | |
| ------------------------------------------------------------ | ------------------- | ------ | ------------------------------------ |
| | | | |
| ------------------------------------------------------------- | ------------------- | ------ | ------------------------------------ |
| This symbol shows how the word can be divided into syllables: | | | |
| . | *syllable division* | system | /ˈsɪs.təm/ **UK** /ˈsɪs.təm/ **US** |
| | | | |
| . | *syllable division* | system | /ˈsɪs.təm/ **UK** /ˈsɪs.təm/ **US** |
| | | | |