diff --git a/README.md b/README.md index ace35e8..f24baf9 100644 --- a/README.md +++ b/README.md @@ -56,7 +56,7 @@ nosetests . ```python import sox # create trasnformer -tfm = sox.Transformer('path/to/input_audio.wav', 'path/to/output/audio.aiff') +tfm = sox.Transformer() # trim the audio between 5 and 10.5 seconds. tfm.trim(5, 10.5) # apply compression @@ -64,7 +64,7 @@ tfm.compand() # apply a fade in and fade out tfm.fade(fade_in_len=1.0, fade_out_len=0.5) # create the output file. -tfm.build() +tfm.build('path/to/input_audio.wav', 'path/to/output/audio.aiff') # see the applied effects tfm.effects_log > ['trim', 'compand', 'fade'] @@ -75,14 +75,14 @@ Concatenate 3 audio files: ```python import sox # create combiner -cbn = sox.Combiner( - ['input1.wav', 'input2.wav', 'input3.wav'], output.wav, 'concatenate' -) +cbn = sox.Combiner() # pitch shift combined audio up 3 semitones cbn.pitch(3.0) # convert output to 8000 Hz stereo cbn.convert(samplerate=8000, channels=2) # create the output file -cbn.build() +cbn.build( + ['input1.wav', 'input2.wav', 'input3.wav'], output.wav, 'concatenate' +) ``` diff --git a/setup.py b/setup.py index 0d8742e..256c4f8 100644 --- a/setup.py +++ b/setup.py @@ -5,7 +5,7 @@ setup( name='sox', - version='1.1.8', + version='1.1.9', description='Python wrapper around SoX.',