From anthony at interlink.com.au Tue Aug 2 00:42:43 2005 From: anthony at interlink.com.au (Anthony Baxter) Date: Mon, 1 Aug 2005 15:42:43 -0700 Subject: [Shtoom] Doug play and record at the same time In-Reply-To: <42ED4259.2080403@latteier.com> References: <42EBD426.7070206@latteier.com> <42ED4259.2080403@latteier.com> Message-ID: <200508011542.45277.anthony@interlink.com.au> On Sunday 31 July 2005 14:27, Amos Latteier wrote: > Hi, > > I don't know if anyone is interested or not, but here are some patches > that fix doug to allow legs to record and play independently. Great, thanks! I'll commit this shortly - I'm at OSCON this week, and right now I'm making sure the shtoom talk I'm giving on Wednesday morning is as polished as I can manage it. > P.S. If anyone is working on doug, get it touch with me. I have lots of > ideas. For example, yesterday I hacked together an app that allows you > to define a voice menu system with an ini file. I'd love to share. Certainly I'm working on it - this is the sort of thing that's very nice. At some point in the next couple of weeks I plan to write up the plans I have for doug - I've written enough scripts with it that I have ideas about Making It Much Better now. Anthony -- Anthony Baxter It's never too late to have a happy childhood. From adam at sherman.ca Tue Aug 2 03:07:12 2005 From: adam at sherman.ca (Adam Sherman) Date: Mon, 1 Aug 2005 21:07:12 -0400 Subject: [Shtoom] Doug play and record at the same time In-Reply-To: <200508011542.45277.anthony@interlink.com.au> References: <42EBD426.7070206@latteier.com> <42ED4259.2080403@latteier.com> <200508011542.45277.anthony@interlink.com.au> Message-ID: <15FBF50C-4738-49AE-89DE-0DA12125A07B@sherman.ca> On Aug 1, 2005, at 18:42, Anthony Baxter wrote: >> P.S. If anyone is working on doug, get it touch with me. I have >> lots of >> ideas. For example, yesterday I hacked together an app that allows >> you >> to define a voice menu system with an ini file. I'd love to share. > > Certainly I'm working on it - this is the sort of thing that's very > nice. > At some point in the next couple of weeks I plan to write up the > plans I > have for doug - I've written enough scripts with it that I have > ideas about > Making It Much Better now. I'm anxious to hear everyone's ideas! I've been playing with doug a bit and find it very exciting. Thanks all, A. -- Adam Sherman Technologist +1 (613) 482-2672 adam at sherman.ca From amos at latteier.com Thu Aug 11 23:48:25 2005 From: amos at latteier.com (Amos Latteier) Date: Thu, 11 Aug 2005 14:48:25 -0700 Subject: [Shtoom] How to turn off stun w/ doug? Message-ID: <42FBC7A9.7000606@latteier.com> Hi, I'm trying to figure out how to make doug not use STUN. Looking through shtoom/opts.py it looks like I can add this to my config file: [network] nat=none stun_policy=never However, when I do this, I still see: NAT preference says to use both In my logs, and doug still uses stun. It seems that doug is rewriting my config file and erasing the network options group. In general I don't really understand the preferences system. I see how to set my config file by overriding configFileName in DougApplication subclasses, and I figured some things out by examining opts.py but I don't really understand the intention of the system. It looks like I can perhaps override some options via the boot() method... Any suggestions? Thanks! -Amos From anthony at interlink.com.au Fri Aug 12 07:52:58 2005 From: anthony at interlink.com.au (Anthony Baxter) Date: Thu, 11 Aug 2005 22:52:58 -0700 Subject: [Shtoom] Doug play and record at the same time In-Reply-To: <42ED4259.2080403@latteier.com> References: <42EBD426.7070206@latteier.com> <42ED4259.2080403@latteier.com> Message-ID: <200508112253.02432.anthony@interlink.com.au> On Sunday 31 July 2005 14:27, Amos Latteier wrote: > Hi, > > I don't know if anyone is interested or not, but here are some patches > that fix doug to allow legs to record and play independently. This has been committed as revision 1593 on the svn trunk. Thanks for the patch! Anthony -- Anthony Baxter It's never too late to have a happy childhood. From solipsis at pitrou.net Wed Aug 17 14:35:51 2005 From: solipsis at pitrou.net (Antoine Pitrou) Date: Wed, 17 Aug 2005 14:35:51 +0200 Subject: [Shtoom] possible typo in shtoom/stun.py Message-ID: <1124282151.16527.4.camel@p-dvsi-395-20.rd.francetelecom.fr> Hi, We are re-using Shtoom's STUN implementation in our LGPL'd project (http://solipsis.netofpeers.net/) and I've found a likely typo in shtoom/stun.py. In the StunDiscoveryProtocol class, the __init__ resolves the servers' host name sequentially (which can take some time if one the DNS servers does not answer): self.servers = [(socket.gethostbyname(host), port) for host, port in servers] whereas there is another method which is supposed to resolve them in parallel afterwards: def _resolveStunServers(self, localAddress): self.localAddress = localAddress # reactor.resolve the hosts! for host, port in self.servers: d = reactor.resolve(host) d.addCallback(lambda x,p=port: self.initialStunRequest((x, p))) I suppose one of these two resolutions is redundant and useless. Is there a reason for doing them both in sequence? In my code, I've happily disabled the first one. Regards Antoine. From ploum at frimouvy.org Tue Aug 16 14:01:12 2005 From: ploum at frimouvy.org (Lionel Dricot) Date: Tue, 16 Aug 2005 14:01:12 +0200 Subject: [Shtoom] Shtoom does not start with dmix enabled Message-ID: <1124193672.14971.3.camel@localhost.localdomain> Message CC to Andrew Bennetts, as he asked me to send this mail Hello, I've tried today deb packages of shtoom under Hoary. ( http://people.ubuntu.com/~daf/packages/ ) But I cannot start shtoom because : shtoomphone /usr/lib/python2.4/site-packages/shtoom/ui/gnomeui/main.py:25: GtkWarning: gtk_w idget_grab_default: assertion `GTK_WIDGET_CAN_DEFAULT (widget)' failed gettext.textdomain()) app is audioPref is None ALSA lib pcm_dmix.c:812:(snd_pcm_dmix_open) The dmix plugin supports only playba ck stream Traceback (most recent call last): File "/usr/bin/shtoomphone", line 54, in ? main() File "/usr/bin/shtoomphone", line 33, in main app._audio = getAudioDevice() File "/usr/lib/python2.4/site-packages/shtoom/audio/__init__.py", line 62, in getAudioDevice dev = audioint.Device() File "/usr/lib/python2.4/site-packages/shtoom/audio/baseaudio.py", line 7, in __init__ self.openDev() File "/usr/lib/python2.4/site-packages/shtoom/audio/alsa.py", line 43, in open Dev alsaaudio.PCM_NONBLOCK, device) alsaaudio.ALSAAudioError: Argument invalide zsh: exit 1 shtoomphone For your information, I have dmix enabled and : shtoominfo Shtoom, version 0.3alpha0 Using python version 2.4.1 Using twisted version 1.3.0rc1 Running on Linux i686 2.6.10-5-k7 Available audio interfaces: ossaudio, echoaudio, fileaudio, alsaaudio Available user interfaces: text, gnome Available codecs: mulaw Local IP address: 192.168.2.100 No UPnP-capable device discovered STUN says NAT type: FullCone And the mapper we'd use is: Don't hesitate to contact me if you want further test. Lionel https://wiki.ubuntu.com/Ploum