list custom tones in iOS settings by generating `/Media/iTunes_Control/iTunes/Ringtones.plist`
Project description
generate Ringtones.plist
for custom iOS ring and alert tones
list custom tones in iOS settings by generating /Media/iTunes_Control/iTunes/Ringtones.plist
pip install ioscustomringtones
Instructions
-
convert audio files to
.m4a
, then rename to.m4r
:ffmpeg -i some_tone.wav some_tone.m4a mv some_tone.m4a some_tone.m4r
-
mount the
/Media/
directory of your iOS device to your local filesystem (this does not require a jailbroken device):mkdir ~/iPhone_Media/ ifuse ~/iPhone_Media/
-
copy your
.m4r
files to~/iPhone_Media/iTunes_Control/Ringtones/
:cp ~/Music/Ringtones/*.m4r ~/iPhone_Media/iTunes_Control/Ringtones/
-
install
ioscustomringtones
withpip
:pip install ioscustomringtones
-
pass the directory you mounted to the
generate_ios_ringtones_plist
command (see more options below):generate_ios_ringtones_plist ~/iPhone_Media/
Usage: generate_ios_ringtones_plist [OPTIONS] MEDIA_DIRECTORY reads existing `.m4r` files in `/Media/iTunes_Control/Ringtones/` and writes `/Media/iTunes_Control/iTunes/Ringtones.plist` on an iOS device ╭─ Arguments ─────────────────────────────────────────────────────────╮ │ * media_directory PATH path to `/Media/` on the iOS device │ │ [default: None] │ │ [required] │ ╰─────────────────────────────────────────────────────────────────────╯ ╭─ Options ───────────────────────────────────────────────────────────╮ │ --alerts-threshold INTEGER number of seconds │ │ under which to │ │ assume sound is │ │ an alert tone vs │ │ a ringtone │ │ [default: 10] │ │ --binary --no-binary whether to write │ │ `.plist` in │ │ binary format (as │ │ opposed to XML) │ │ [default: binary] │ │ --list-tones --no-list-tones print tones to │ │ stdout │ │ [default: │ │ no-list-tones] │ │ --dryrun --no-dryrun write to file; │ │ otherwise print │ │ to stdout │ │ [default: dryrun] │ │ --help Show this message │ │ and exit. │ ╰─────────────────────────────────────────────────────────────────────╯
-
unmount the
/Media/
directory from your local filesystem:sudo umount ~/iPhone/
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
ioscustomringtones-1.0.0.tar.gz
(16.6 kB
view hashes)
Built Distribution
Close
Hashes for ioscustomringtones-1.0.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 4394fea834176848285e837f3f35e0e55fc0fd5659d4ea204de8d6a03943a7d2 |
|
MD5 | 0337381b1f991f8b9f8c49a0a9035ff5 |
|
BLAKE2b-256 | 45d0d257ce2c34b83ff269311418653b075c521b31beb6cc1928be7968f578d0 |