Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up

Extension to control mopidy without screen

License

NotificationsYou must be signed in to change notification settings

ulilicht/mopidy-ttsgpio

 
 

Repository files navigation

Latest PyPI versionNumber of PyPI downloadsTravis CI build statusTest coverage

Controll mopidy without screen using GPIO and TTS

For example if you play "Rather Be - Clean Bandit" you will hear:

http://translate.google.com/translate_tts?tl=en&q=rather%20be%20by%20clean%20bandit

TTS (Text To Speech) is used from google translate (It is not documented but it works).

The idea is to develop with GPIO buttons something similar to3rd generation Ipod shuffle control

Features

  • Play/Pasue
  • Next/Previous track
  • Select playlist
  • Hear the song name (Text To Speech)
  • Exit mopidy
  • Shutdown
  • Restart
  • Check IP

Installation

To use this extension you need an internet conection for the tts.

Install by running:

pip install Mopidy-TtsGpio

To access the GPIO pins in the raspberry pi you have to run mopidy with sudo:

sudo mopidy

Configuration

Before starting Mopidy, you must add configuration forMopidy-TtsGpio to your Mopidy configuration file:

[ttsgpio]debug_gpio_simulate = false # Set true to emulate GPIO buttons with on screen buttonspin_button_main = 17pin_button_next = 22pin_button_previous = 23pin_button_vol_up = 24pin_button_vol_down = 25

You can set the pins you would like to use. The numbers are in BCM mode. You can checkhere to see the numbers for your board.The buttons must be connected to GROUND.

Example:

[pin 17] - [Button] - [Ground]

Controls

  • main: play/pause. In menu select item
  • main longpress: enter/exit menu
  • vol_up longpress: repeat last sentence
  • vol_down longpress: set the volume 0
  • next: in menu navigate to next item
  • previous: in menu navigate to next item

Project resources

Changelog

v1.0.0

  • First working version

v0.1.0 (UNRELEASED)

  • Initial release.

About

Extension to control mopidy without screen

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • Python100.0%

[8]ページ先頭

©2009-2025 Movatter.jp