簡化字及普通話拼音 | 傳統漢字及粵拼 |
---|---|
松 sōng | 鬆 sung1 松 cung4 |
只 zhī / zhǐ | 只 zi2 隻 zek3 |
复 fù | 複 fuk1 復 fuk6 |
里 lǐ | 里 lei5 裏 leoi5 |
斗 dǒu / dòu | 鬥 dau3 斗 dau2 |
仆 pū / pú | 仆 puk1 僕 buk6 |
折 zhé | 折 zit3 摺 zip3 |
郁 yù | 鬱 wat1 郁 juk1 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import librosa | |
import torch | |
from transformers import pipeline | |
from time import time | |
# Load the audio file | |
y, sr = librosa.load('test.mp3', sr=16000) | |
MODEL_NAME = "alvanlii/whisper-small-cantonese" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
鴉烏婆 | aa1 wu1 po2 | |
---|---|---|
阿八 | aa3 baat3 | |
阿差 | aa3 caa1 | |
港燦 | aa3 caan3 | |
阿燦 | aa3 caan3 | |
阿蟲介紹嚟 | aa3 cung4 gaai3 siu6 lai4 | |
阿蟲介紹我嚟 | aa3 cung4 gaai3 siu6 ngo5 lai4 | |
阿大 | aa3 daai2 | |
阿頂 | aa3 ding2 | |
阿飛 | aa3 fei1 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
patch: | |
us_keyboard_layout: true | |
# 外观配置 | |
style: | |
color_scheme: psionics # 选择配色方案 | |
horizontal: false # 候选窗横向显示 | |
inline_preedit: true # 关闭内嵌编码,这样就可以显示首行的拼音 | |
corner_radius: 6 # 窗口圆角半径 | |
border_height: 0 # 窗口边界高度,大于圆角半径才有效果 |