2013-10-11 20:44:27 +05:30
# IPod Shuffle 4g Scripts
##shuffle.py
Python script for building the Track and Playlist database for the newer gen IPod Shuffle.
Forked from the [shuffle-db-ng project ](https://code.google.com/p/shuffle-db-ng/ )
Just put your audio files into the mass storage of your IPod and shuffle.py will do the rest
```bash
$ python shuffle.py -h
2014-06-25 10:41:36 +04:00
usage: shuffle.py [-h] [--disable-voiceover] [--rename-unicode]
[--track-gain TRACK_GAIN]
path
2013-10-11 20:44:27 +05:30
positional arguments:
path
optional arguments:
2014-06-25 10:41:36 +04:00
-h, --help show this help message and exit
--disable-voiceover Disable Voiceover Feature
--rename-unicode Rename Files Causing Unicode Errors, will do minimal
required renaming
--track-gain TRACK_GAIN
2014-06-28 19:38:01 +05:30
Store this volume gain (0-99) for all tracks; 0
(default) means no gain and is usually fine; e.g. 60
is very loud even on minimal player volume
2013-10-11 20:44:27 +05:30
```
2013-10-11 20:48:02 +05:30
#### Additions to the original
2013-10-11 20:44:27 +05:30
* Option to disable voiceover
* Initialize the IPod Directory tree
2013-10-12 23:42:34 +05:30
* Using the --rename-unicode flag, filenames with strange characters and different language are renamed which avoids the script to crash with a Unicode Error
2013-10-11 20:48:02 +05:30
2014-02-17 21:11:39 -05:00
#### Dependencies
This script requires:
* [Python 2.7 ](http://www.python.org/download/releases/2.7/ )
* [Mutagen ](https://code.google.com/p/mutagen/ )
2014-06-24 04:26:06 +04:00
* [PicoSpeaker ](http://picospeaker.tk/readme.php ) -- for non-Russian files
* [RHVoice (master branch, 3e31edced402a08771d2c48c73213982cbe9333e) ](https://github.com/Olga-Yakovleva/RHVoice ) -- for Russian files only
* [SoX ](http://sox.sourceforge.net ) -- for Russian files only
2014-02-17 21:11:39 -05:00
##### Ubuntu
`apt-get install python-mutagen libttspico*`
##### Arch Linux
2016-01-13 03:20:30 +05:30
From the **Extra** repository: `pacman -S python2 mutagen` and from the AUR: `svox-pico-bin` ([link ](https://aur.archlinux.org/packages/svox-pico-bin/ ))
2014-02-17 21:11:39 -05:00
2014-06-24 04:16:39 +04:00
##### Gentoo Linux
2014-06-26 21:41:34 +04:00
```bash
PYTHON_TARGETS="python2_7" emerge -av media-libs/mutagen
layman --add=ikelos
layman --overlays="https://raw.githubusercontent.com/ahippo/rhvoice-gentoo-overlay/master/repositories.xml" --fetch --add=ahippo-rhvoice-overlay
ACCEPT_KEYWORDS="~amd64" emerge -av app-accessibility/svox app-accessibility/rhvoice
```
References to the overlays above: [ikelos ](http://git.overlays.gentoo.org/gitweb/?p=dev/ikelos.git;a=summary ), [ahippo-rhvoice-overlay ](https://github.com/ahippo/rhvoice-gentoo-overlay )
2014-06-24 04:16:39 +04:00
2013-10-11 20:48:02 +05:30
##TODO
* Last.fm Scrobbler
* Qt frontend
2013-10-12 23:42:34 +05:30
##EXTRA READING
2014-06-02 14:11:21 +00:00
* [Using shuffle.py and Rhythmbox for easy syncing of playlists and songs ](http://nims11.wordpress.com/2013/10/12/ipod-shuffle-4g-under-linux/ )
2013-10-12 23:42:34 +05:30