Skip to content
This repository has been archived by the owner on Dec 11, 2021. It is now read-only.

hexeratops/mycroft-youtube-skill

master
Switch branches/tags

Name already in use

A tag already exists with the provided branch name. Many Git commands accept both tag and branch names, so creating this branch may cause unexpected behavior. Are you sure you want to create this branch?
Code

Latest commit

 

Git stats

Files

Permalink
Failed to load latest commit information.
Type
Name
Latest commit message
Commit time
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

mycroft-youtube

A skill to play youtube videos. It searches youtube for what you say to it, then it plays the first thing it finds in the results.

The python figures out the URL, then uses the external yt_player.sh file to pipe youtube-dl into mplayer to play the content. The plus side of this approach is that we never leave any files behind. The downside is that this makes the script incredibly dumb. It can only start/stop videos and not control the tracking.

In the future, this skill may be expanded to be able to queue up songs or even handle playlists, but for now, it just trys to play the video you ask it to play.

There is now volume control added to the project. This is mainly to act as a balance between the loudness of Mycroft's voice and the loudness of the audio it plays over youtube. It can be controlled by your voice (as per the examples) or set to a new default on home.mycroft.ai.

Special thanks to JarbasAI for providing the search utility for this project. Were it not for them, the project would have likely been archived.

Requirements

  • mpv player

Install Using MSM (Mycroft Skill Manager)

sudo msm install https://github.com/hexeratops/mycroft-youtube-skill

Install Manualy

sudo apt-get install mplayer
sudo mkdir -p /opt/mycroft/skills
cd /opt/mycroft/skills 
sudo git clone https://github.com/hexeratops/mycroft-youtube-skill 
pip install -r requirements.txt 

Using

  • Say youtube John Denver
  • Say youtube Rocky Mountain High
  • Say youtube search for Im a believer by the Monkees
  • Say increase youtube volume to 40 percent
  • Say decrease youtube volume to 20 percent

About

Allows mycroft to search for and play youtube videos via voice command.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published