Skip to content

Play Youtube Videos from terminal to VLC with SpeechRecognition and YoutubeAPI v3

Notifications You must be signed in to change notification settings

xaviruvpadhiyar98/YoutubeAutomation

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

14 Commits
 
 
 
 
 
 
 
 

Repository files navigation

YoutubeAutomation

Play Youtube Videos from terminal to VLC with SpeechRecognition and YoutubeAPI v3

Dependecies

  1. SpeechRecognition library
  2. VlC player
  3. GoogleAPI Client for youtubeAPI key

Installation

git clone https://github.com/xaviruvpadhiyar98/YoutubeAutomation.git
cd YoutubeAutomation/ 
pip install speechRecognition 
apt install vlc

This is the demo for voice automation to search for a youtube video and play on the vlc without using browser This requires the Youtube API v3 Key which you need to add in the code and then run the file

You can find the key using google account

Before you start You need a Google Account to access the Google API Console, request an API key, and register your application.

Create a project in the Google Developers Console and obtain authorization credentials so your application can submit API requests.

After creating your project, make sure the YouTube Data API is one of the services that your application is registered to use:

Go to the API Console and select the project that you just registered. Visit the Enabled APIs page. In the list of APIs, make sure the status is ON for the YouTube Data API v3. If your application will use any API methods that require user authorization, read the authentication guide to learn how to implement OAuth 2.0 authorization.For more infomation visit https://developers.google.com/youtube/v3/getting-started

Usage

Run on one terminal

vlc --intf telnet --telnet-password admin

Run on another terminal or on new tab on terminal

python BackgroundListeningwithVoiceControl.py

or if this doesnt work properly Run on another terminal or on new tab on terminal

python AddedVoiceControl.py

About

Play Youtube Videos from terminal to VLC with SpeechRecognition and YoutubeAPI v3

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages