Did I find the right examples for you? yes no      Crawl my project      Python Jobs

All Samples(8)  |  Call(8)  |  Derive(0)  |  Import(0)
In which we convert the audio

src/p/o/portify-HEAD/tests/test_converter.py   portify(Download)
    fname = '%s/Input/flac/%s.flac' % (cwd, name)
    c = converter.Converter(fname, 'mp3')
    c.convertaudio()
    oname = '%s/Output/flac/%s.mp3' % (cwd, name)
    tools.eq_(oname, c.destfilename)
    fname = '%s/Input/flac/%s.flac' % (cwd, name)
    c = converter.Converter(fname, 'mp3')
    c.convertaudio()
    oname = '%s/Output/flac/%s.mp3' % (cwd, name)
    tools.eq_(oname, c.destfilename)
    fname = '%s/Input/flac/%s.flac' % (cwd, name)
    c = converter.Converter(fname, 'mp3')
    c.convertaudio()
    c.movetags()
    oname = '%s/Output/flac/%s.mp3' % (cwd, name)
    fname = '%s/Input/flac/%s.flac' % (cwd, name)
    c = converter.Converter(fname, 'ogg')
    c.convertaudio()
    c.movetags()
    oname = '%s/Output/flac/%s.ogg' % (cwd, name)

src/p/o/portify-1.0/tests/test_converter.py   portify(Download)
    fname = '%s/Input/flac/%s.flac' % (cwd, name)
    c = converter.Converter(fname, 'mp3')
    c.convertaudio()
    oname = '%s/Output/flac/%s.mp3' % (cwd, name)
    tools.eq_(oname, c.destfilename)
    fname = '%s/Input/flac/%s.flac' % (cwd, name)
    c = converter.Converter(fname, 'mp3')
    c.convertaudio()
    oname = '%s/Output/flac/%s.mp3' % (cwd, name)
    tools.eq_(oname, c.destfilename)
    fname = '%s/Input/flac/%s.flac' % (cwd, name)
    c = converter.Converter(fname, 'mp3')
    c.convertaudio()
    c.movetags()
    oname = '%s/Output/flac/%s.mp3' % (cwd, name)
    fname = '%s/Input/flac/%s.flac' % (cwd, name)
    c = converter.Converter(fname, 'ogg')
    c.convertaudio()
    c.movetags()
    oname = '%s/Output/flac/%s.ogg' % (cwd, name)