æµã ç»åãé³ã«å¤æããããã®é³ãmp3ã«å¤æãå度ãé³ããç»åã«æ»ãã å ã®ç»å mp3ã®å ´å mp2ã®å ´å .wmaã¯.mp3ã¨ã»ã¨ãã©åãã .oggã¯å ã®ç»åã¨å¤åãªã ã½ã¼ã¹ã³ã¼ã #!/usr/bin/env python #coding:utf-8 import Image, wave, subprocess input_file = "diana.jpg" output_file = "diana_out.jpg" img = Image.open(input_file) raw_data = img.tostring() # çãã¼ã¿ãå¼ãæã wav = wave.open("dianaXXXX.wav", "wb") # ã¢ãã©ã«ãï¼ï¼ãããããµã³ããªã³ã°ã¬ã¼ãã®è¨å® wav.setnchannels(1) wav.setsampwidth(2) wav.setfra
{{#tags}}- {{label}}
{{/tags}}