Skip to content

Instantly share code, notes, and snippets.

@AdroitAnandAI
Created May 28, 2020 13:41
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save AdroitAnandAI/41683e323b2e478e70827f5987648590 to your computer and use it in GitHub Desktop.
Save AdroitAnandAI/41683e323b2e478e70827f5987648590 to your computer and use it in GitHub Desktop.
Audio Frame Rate
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