How to Download Videos from YouTube and Embed Subtitles in Batch
All I want to do is download some courses that are very helpful for me on YouTube, embed Zh-Hans subtitles in the videos, and then submit them to Chinese websites that do not support external subtitles.
This can help Chinese students who are not fluent in English and cannot access YouTube.
How to Convert Video to Text
If the audio is in Mandarin, I found that XFyun FlySpeechRecognizer does a great job at this, it can even recognize some simple English words in mixed language audio.
You donβt need to train a machine learning model from scratch to do this.
Meeting with Rama
I have admired the Foundation series for a long time, and this is the first complete Clarke novel I have read.
How to build tesseract 4 beta on macOS
1 | brew info tesseract |
The result of recognizing Simplified Chinese is a bit terrible.
I noticed that it added a new neural network system based on LSTM after 4.0.0+.
But it needs to be built from source code on macOS.
Fortunately, the manual on its README.md has detailed instructions.
Struct Codable Alamofire Generics
I wrote about Swift Generics in Protocols and Enums half a year ago to solve the problem of converting network response data to generic types.
After Swift 4, JSONSerialization method is a bit outdated.
When updating, I found a better solution.
How to schedule iMessages on Mac
First, open Terminal
on your Mac, then follow these steps to copy and paste the following command lines:
Send iMessage by Shell
1 | file="$HOME/Documents/sendiMessage.sh" |
You will see a file opened by the default TextEdit application that displays:
1 | #/bin/zsh |