Beispiel #1
0
 def system(self, cmd):
     return proctools.system("%s >/dev/null 2>&1" % cmd)
Beispiel #2
0
def rmd2ogg(src, dst):
    from pycopia import proctools
    cmd = 'rmdtopvf "%s" | pvftolin -C -U | oggenc -Q -r -B 8 -C 1 -R 8000 --genre voicemail -o "%s" -' % (
        src, dst)
    if os.path.isfile(src):
        return proctools.system(cmd)
Beispiel #3
0
 def system(self, cmd):
     return proctools.system("%s >/dev/null 2>&1" % cmd)
Beispiel #4
0
def rmd2ogg(src, dst):
    from pycopia import proctools
    cmd = 'rmdtopvf "%s" | pvftolin -C -U | oggenc -Q -r -B 8 -C 1 -R 8000 --genre voicemail -o "%s" -' % (src, dst)
    if os.path.isfile(src):
        return proctools.system(cmd)