Skip to content

Instantly share code, notes, and snippets.

@Leticia-Carraro
Created September 21, 2021 00:27
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 Leticia-Carraro/a0af8b85bece507129c12b6d8364bc80 to your computer and use it in GitHub Desktop.
Save Leticia-Carraro/a0af8b85bece507129c12b6d8364bc80 to your computer and use it in GitHub Desktop.
Essa função transforma áudios de stereo para mono
def stereo_para_mono(nome_arquivo_audio):
sound = AudioSegment.from_wav(nome_arquivo_audio)
sound = sound.set_channels(1)
sound.export(nome_arquivo_audio, format="wav")
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment