Giter VIP home page Giter VIP logo

elephant's Introduction

Getting started

brew install ffmpeg pnpm i

Demo login with [email protected]

Search Ahmed Subhi Mansour

image

Commands

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_

Google API KEY

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

Watson

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

Track usage from here image

login to the cloud above and search for "speech to text" then click plan.

Algolia

I registered using [email protected], login using federated login

color console

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

Scheduling

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

Read article

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 


Ubuntu

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/


Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.