반응형 wav파일1 파이썬 코드로 wav 파일 gain 올리기 import wave import soundfile as sf # WAV 파일의 형식 확인 함수 def check_wave_format(file_path): with wave.open(file_path, 'rb') as wav_file: # WAV 파일의 형식 확인 print(f"Format: {wav_file.getsampwidth() * 8} bits per sample, {wav_file.getnchannels()} channels, {wav_file.getframerate()} frames per second") # 볼륨을 증폭하는 함수 def increase_volume(input_path, output_path, gain): # WAV 파일의 형식 확인 check_wave_format(inpu.. 2023. 12. 1. 이전 1 다음 반응형