[Shtoom] Sound quality

ashwani kumar ashwaniwin at hotmail.com
Wed Dec 21 11:51:59 CET 2005


Hi,
I m using shtoom 0.2
I have added g729 codec
but the conversation quality is not good i used this code i given below
plz tell me how can i solve this problem


try:
    import g729
except ImportError:
    g729 = None
class PCM16toG729Conv(NullConv):
    def __init__(self, *args, **kwargs):
        if gsm is not None:
            self._encoder = None
            self._decoder = None
        NullConv.__init__(self, *args, **kwargs)
    def read(self, count=33):
        indata = self._d.read(320)
        encdata = self._encoder.va_g729a_encoder(self,indata)
        return encdata

    def write(self, data):
        if len(data) != 33:
            print "warning: didn't see 33 bytes of data, but %s"%len(data)
        decdata = self._decoder.va_g729a_decoder(data,self,1)
        self._d.write(decdata)
        return 33

if g729 is None:
    del PCM16toG729Conv


Thanx
Ashwani

_________________________________________________________________
Sexy, sultry, sensuous. - see why Bipasha Basu is all that and more. Try MSN 
Search http://server1.msn.co.in/Profile/bipashabasu.asp




More information about the Shtoom mailing list