brew install ffmpeg pnpm i
Demo login with [email protected]
node . links channel=CHANNELID gkey=APIKEY
_get all video links for a given channel_
node . links channel=UC4rHVwTcnphaetXGQu47nxg gkey=AIzaSyAk0R8OXbsQpnl8ARgzoOres4--6KeAbAo
node . audio
_will process audio for the same channel_
node . text wkey="JEdz0OitMVYsY79hSyUEpcHOCuaLo11i9o3"
_will transcribe one video_
node . db akey="e4dcaa7f084a6d533ed69aaafe890d82"
_will save to algolia_
node . clean
_will clean audio, text and db folders and remove orphans or erronious transcription or db writes_
You must have a GOOGLE_API_KEY.
Create credentials and enable youetube key I created a map key first and then got an error then had to enable youtube
https://console.cloud.google.com/google/maps-apis/credentials?project=jawad-333216
here is youtube https://console.cloud.google.com/apis/api/youtube.googleapis.com/overview?project=jawad-333216
Signup for a new IBM Cloud account and enter credit card info . First account created used [email protected] federated.
Search "speech to text" service and then create one. select closest location, and free plan. Agree to terms and conditions and click create
click manage and copy API Key and URL, then issue this command with these copied values
node . text wkey=COPIED_API_KEY wurl=COPIED_URL
You only have to provide those parameters once, subsequent runs can just be
node . text
login to the cloud above and search for "speech to text" then click plan.
I registered using [email protected], login using federated login
To color console.log messages
console.log('\x1b[7m', "message","\x1b[0m");
If you use ansi color your must reset using "\x1b[0m" Here is the reference for ansi colors
How to transcribe using IBM Watson https://alexzywiak.github.io/getting-a-written-transcript-for-a-youtube-video-using-ibm-watson-2/index.html
launchctl list | grep hudhud
launchctl unload /Library/LaunchAgents/com.hudhud-audio.daemon.plist
launchctl unload /Library/LaunchAgents/com.hudhud-text.daemon.plist
launchctl unload /Library/LaunchAgents/com.hudhud-db.daemon.plist
sudo vi /Library/LaunchAgents/com.hudhud-audio.daemon.plist
sudo vi /Library/LaunchAgents/com.hudhud-text.daemon.plist
sudo vi /Library/LaunchAgents/com.hudhud-db.daemon.plist
launchctl load /Library/LaunchAgents/com.hudhud-audio.daemon.plist
launchctl load /Library/LaunchAgents/com.hudhud-text.daemon.plist
launchctl load /Library/LaunchAgents/com.hudhud-db.daemon.plist
first time
sudo cp com.hudhud-audio.daemon.plist /Library/LaunchAgents/com.hudhud-audio.daemon.plist
sudo cp com.hudhud-text.daemon.plist /Library/LaunchAgents/com.hudhud-text.daemon.plist
sudo cp com.hudhud-db.daemon.plist /Library/LaunchAgents/com.hudhud-db.daemon.plist
sudo cp /Library/LaunchAgents/com.hudhud-audio.daemon.plist com.hudhud-audio.daemon.plist
sudo cp /Library/LaunchAgents/com.hudhud-text.daemon.plist com.hudhud-text.daemon.plist
sudo cp /Library/LaunchAgents/com.hudhud-db.daemon.plist com.hudhud-db.daemon.plist
To prepare an ubunto machine
sudo apt-get update
sudo curl -L https://yt-dl.org/downloads/latest/youtube-dl -o /usr/local/bin/youtube-dl
sudo chmod a+rx /usr/local/bin/youtube-dl
sudo apt install python3-pip
pip3 install --upgrade youtube-dl
sudo apt-get install python-is-python3
cp ./export/*.* .
node . audio > /dev/null 2>&1 & node . text > /dev/null 2>&1 &
jobs -l
``
https://write.corbpie.com/how-to-install-upgrade-youtube-dl-on-ubuntu-20-04/
https://askubuntu.com/questions/942930/usr-bin-env-python-no-such-file-or-directory
## Resources
Download english subtitles https://www.diycaptions.com/
Transcribe arabic https://anthiago.com/transcript/
Inquirer https://www.digitalocean.com/community/tutorials/nodejs-interactive-command-line-prompts
Search example
https://www.algolia.com/doc/guides/building-search-ui/getting-started/react/