Created
May 28, 2020 13:41
-
-
Save AdroitAnandAI/41683e323b2e478e70827f5987648590 to your computer and use it in GitHub Desktop.
Audio Frame Rate
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
def audio_rate_set(filepath): | |
audio = AudioSegment.from_wav(filepath) | |
audio = audio.set_frame_rate(16000) | |
audio = audio.export('tester.wav',format='wav') | |
return audio | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment