Displaying 1 result from an estimated 1 matches for "inwav".
Did you mean:
inav
2009 Feb 24
0
any help with pyogg and pyvorbis?
...he
right header and so on, but no data has been written.
The python-example is the following:
_____________________________
#!/usr/bin/env python
'''An example of encoding using the Python wave module'''
import ogg.vorbis, wave
fout = open('out.ogg', 'wb')
inwav = wave.open('in.wav','rb')
channels = inwav.getnchannels()
vd = ogg.vorbis.VorbisInfo(channels = channels,
rate = inwav.getframerate(),
quality = 0.2).analysis_init()
os = ogg.OggStreamState(5)
map(os.packetin, vd.headerout())
og...