repo.or.cz
/
pauldeden-misc.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
trying on production (my real dir :-))
[pauldeden-misc.git]
/
setup_scriptures_for_mp3_player.py
blob
50423bf98d24f35e6a430c48c9b438c70b1c1b9e
1
#!/usr/bin/python
2
3
import
os
4
import
sys
5
6
files
=
sys
.
argv
[
1
:]
7
8
for
f
in
files
:
9
mp3file
=
f
10
wavfile
=
f
.
replace
(
".mp3"
,
".wav"
)
11
os
.
system
(
""" mpg123 -w
%s %s
"""
% (
wavfile
,
mp3file
))
12
os
.
remove
(
mp3file
)
13
os
.
system
(
""" lame -f
%s %s
"""
% (
wavfile
,
mp3file
))
14
os
.
remove
(
wavfile
)