Created
September 21, 2021 00:27
-
-
Save Leticia-Carraro/a0af8b85bece507129c12b6d8364bc80 to your computer and use it in GitHub Desktop.
Essa função transforma áudios de stereo para mono
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 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