|
From: '2+ <ele...@gm...> - 2010-03-10 17:56:37
|
hi have started learning sox in order to play virrually generated sound-files via subprocess.py acutually this is what i've tried: subprocess.Popen(["play", "-t", "raw", "-r", "44100", "-"], stdin=subprocess.PIPE).communicate(instance.create_a_["h'[_thing) well it might be sonething like raw_thing | play -t raw -r 44100 - in cmdln but it complains that the encoding is not specified cannot figure out how to what am i missing? the raw data generated works fime with ecasound via subprocess .. pygame and pyao also handles it it's an array ['h'] prepared for wave.py i get the same error with things piped from mpg321 -s file.mp3 am on ubuntu-jaunty-x86 and my sox is v14.2.0 thanx in advance! -- SaRiGaMa's Oil Vending Orchestra is podcasting: http://sarigama.namaste.jp/podcast/rss.xml |