Skip to content

Instantly share code, notes, and snippets.

@AdroitAnandAI
Created May 28, 2020 13:41
Show Gist options
  • Select an option

  • Save AdroitAnandAI/41683e323b2e478e70827f5987648590 to your computer and use it in GitHub Desktop.

Select an option

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