Skip to content

Commit

Permalink
v1.3.5
Browse files Browse the repository at this point in the history
  • Loading branch information
twardoch committed Jul 6, 2023
1 parent db4bb43 commit 48b54f2
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
3 changes: 2 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

AudioStretchy is a Python library and CLI tool that which performs fast, high-quality time-stretching of WAV/MP3 files without changing their pitch. Works well for speech, can time-stretch silence separately. The library is a wrapper around David Bryant’s [audio-stretch](https://github.com/dbry/audio-stretch) C library.

_Version: 1.3.4_
_Version: 1.3.5_

## Features

Expand Down Expand Up @@ -149,6 +149,7 @@ audio_stretch.save(file=WAVDataAsBytesIO, format="wav")

## Changelog

- v1.3.5: fix for MP3 writing
- v1.3.2: fix for MP3 opening
- v1.3.0: actually working on Windows as well
- v1.2.x: working on macOS and Linux
Expand Down
2 changes: 1 addition & 1 deletion src/audiostretchy/stretch.py
Original file line number Diff line number Diff line change
Expand Up @@ -151,7 +151,7 @@ def save_mp3(self, audio_file: BinaryIO, bit_rate: int = 128, quality: int = 5):
encoder.set_sample_rate(self.framerate)
encoder.set_channels(self.nchannels)
encoder.set_quality(quality)
encoder.set_mod(
encoder.set_mode(
mp3.MODE_STEREO if nchannels == 2 else mp3.MODE_SINGLE_CHANNEL
)
encoder.write(self.pcm)
Expand Down

0 comments on commit 48b54f2

Please sign in to comment.