Skip to content

Instantly share code, notes, and snippets.

View laubonghaudoi's full-sized avatar
😄
VSCode 譯緊粵語版!想幫手嘅聯繫我!

laubonghaudoi

😄
VSCode 譯緊粵語版!想幫手嘅聯繫我!
View GitHub Profile
@laubonghaudoi
laubonghaudoi / squirrel.custom.yaml
Last active February 22, 2021 15:56
鼠須管主題色配置
patch:
us_keyboard_layout: true
# 外观配置
style:
color_scheme: psionics # 选择配色方案
horizontal: false # 候选窗横向显示
inline_preedit: true # 关闭内嵌编码,这样就可以显示首行的拼音
corner_radius: 6 # 窗口圆角半径
border_height: 0 # 窗口边界高度,大于圆角半径才有效果
@laubonghaudoi
laubonghaudoi / A Dictionary Of Cantonese Slang.tsv
Last active January 12, 2024 06:58
rime-cantonese 待收錄詞庫
鴉烏婆 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
@laubonghaudoi
laubonghaudoi / simplified.md
Last active March 9, 2024 06:18
簡化字中官話同音合併但粵語發音唔同嘅字
簡化字及普通話拼音 傳統漢字及粵拼
松 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
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"