From hubert at MIT.EDU Sat Oct 15 21:41:50 2005 From: hubert at MIT.EDU (Hubert Pham) Date: Sat, 15 Oct 2005 15:41:50 -0400 Subject: [Shtoom] Mac OS X coreaudio Message-ID: <4EC6B8D1-5A21-4F6D-A685-F98903141508@mit.edu> Hi, I've had wonderful success with the current shtoom (svn head), namely with running shtoomphone on linux. Shtoomphone registers with an asterisk server, places and receives phone calls, and it's all fantastic. I would love to run shtoomphone on Mac OS X, but I'm having some trouble with making the audio to work. Specifically, when I run: % python2.4 shtoomphone.py I see: app is NAT pref sez both audioPref is None Installing coreaudio callback Device name: Built-in Audio Running: 0 Sample rate: 44100.0 Buffer frame size: 512 Output stream description: Sample rate: 44100.0 Format ID: 1819304813 Format flags: 11 Bytes per packet: 8 Bytes per frame: 8 Channels per frame: 2 Bits per channel: 32 done. Exception exceptions.TypeError: 'callback() takes exactly 2 arguments (1 given)' in 'coreaudio.audioDeviceIOCallback' ignored Exception exceptions.TypeError: 'callback() takes exactly 2 arguments (1 given)' in 'coreaudio.audioDeviceIOCallback' ignored ...ad infinitum (but nothing else happens) I should note that I very recently installed Donovan Preston's pyx coreaudio module from: http://soundfarmer.com/content/code/coreaudio/ and I was able to get his test program to work (catest.py), so I'm confident that the coreaudio module is installed properly. However, I noticed that in shtoom/audio/osxaudio.py, on line 123, the declaration for the 'callback' method takes in two parameters: def callback(self, buffer) ...so my guess is Python is complaining because Donovan's pyx coreaudio module calls the 'callback' method with only one parameter (namely, just 'self'). It's not clear to me that the pyx coreaudio code I downloaded has an audio input interface, but Shtoom's callback () method (with the 'buffer' parameter) seems to suggest otherwise. Perhaps I have an 'outdated' version of pyx coreaudio? Many thanks! hubert From dp at ulaluma.com Mon Oct 17 20:41:01 2005 From: dp at ulaluma.com (Donovan Preston) Date: Mon, 17 Oct 2005 11:41:01 -0700 Subject: [Shtoom] pyx coreaudio In-Reply-To: <43515FE4.7080105@mit.edu> References: <43515FE4.7080105@mit.edu> Message-ID: <7F33F44F-47C5-4977-9C05-C6823D95BEA8@ulaluma.com> I'm ccing the shtoom list because this mail also contains an answer to Hubert's public question to the list. On Oct 15, 2005, at 1:00 PM, Hubert Pham wrote: > Hi Donovan, > > I've installed your pyx coreaudio, and I am delighted to have > playback hooks into Mac OS X coreaudio from python. > > I'm also looking for a way to capture recorded audio as well. I was > wondering if the CoreAudio audio input interface is something pyx > coreaudio already exposes -- and if not, whether it's a path you've > explored. I'm not familiar with Mac OS X development myself, so I'm > wondering what pitfalls might await. Hi, As you seem to have noticed from your post to the Shtoom mailing list, there were two different versions of the coreaudio module I produced with Pyrex. The one on my website merely returned a list of samples. The one that Shtoom used for a while took a single inout parameter, "buffer", which contained the input from the microphone and which you mutated in place to produce output. However, I think your problems with Shtoom stem from the fact that it is not capable of using the coreaudio module any more, but it still tries to detect if it is there. Shtoom contains built-in audio support in the form of ShtoomCoreAudio.framework. I spent some time generalizing this framework and intended to release it as PyCoreAudio.framework, a replacement for my coreaudio module, but I haven't finished this yet. The solution to your Shtoom problems mentioned publicly on the list should be simply to remove the coreaudio module. You will probably also have to use the Xcode project to build it and run the built .app instead of running Shtoom from the command line. dp From yuricgomes at dee.ufcg.edu.br Fri Oct 21 02:20:09 2005 From: yuricgomes at dee.ufcg.edu.br (Yuri de Carvalho Gomes) Date: Thu, 20 Oct 2005 22:20:09 -0200 Subject: [Shtoom] SHTOOM Message-ID: <1129854009.43583439b5ed6@webmail.ee.ufcg.edu.br> Hi, I would like to know how I can contribute with shtoom project. I did some modifications on shtoom softphone and added videoconferencing to him (tkinter interface). Visit our project: http://tesla/wiki/index.php/VoIP http://www.dee.ufcg.edu.br/~nokia bye -- Yuri de Carvalho Gomes Homepage: http://www.dee.ufcg.edu.br/~yuricgomes From fs at beebits.com Mon Oct 24 09:51:10 2005 From: fs at beebits.com (Frank Scholz) Date: Mon, 24 Oct 2005 09:51:10 +0200 Subject: [Shtoom] SHTOOM In-Reply-To: <1129854009.43583439b5ed6@webmail.ee.ufcg.edu.br> References: <1129854009.43583439b5ed6@webmail.ee.ufcg.edu.br> Message-ID: <435C926E.8070409@beebits.com> Hi Yuri, > I would like to know how I can contribute with shtoom project. I did some > modifications on shtoom softphone and added videoconferencing to him (tkinter > interface). best thing would be to create a patch against the current svn-version, document your changes and if your extension is somewhere reasonable I'm sure Anthony will integrate it in the project. > Visit our project: > http://tesla/wiki/index.php/VoIP could you pls resend that tesla link with an external address? > http://www.dee.ufcg.edu.br/~nokia unfortunatelly my Portuguese is a bit rusty ;-). Is there some information available in English too? Regards, Frank From fs at beebits.com Mon Oct 24 10:20:06 2005 From: fs at beebits.com (Frank Scholz) Date: Mon, 24 Oct 2005 10:20:06 +0200 Subject: [Shtoom] shtoom VoIP/chat crossover Message-ID: <435C9936.4060708@beebits.com> Hi, I wrote a little article about my shtoom/twisted/nevow sandbox app I'm currently working on to better understand shtoom/twisted/.../the world/... http://netzflocken.de/articles/2005/10/23/shtoom-voip-chat-crossover Maybe it is helpful to someone to recognize how easy with shtoom voice based and e.g. text data based applications can be merged. And perhaps the guy on #shtoom who asked two/three weeks ago about the Festival integration even can take some hints out of this for his own phone app. ;-) Regards, Frank From Stefan.Alfredsson at kau.se Fri Oct 28 15:14:08 2005 From: Stefan.Alfredsson at kau.se (Stefan Alfredsson) Date: Fri, 28 Oct 2005 15:14:08 +0200 Subject: [Shtoom] echoaudio patch Message-ID: <20051028131408.GA5873@sa-pc.cs.kau.se> Hello, When using the 'echo' audio driver, shtoom exists with an exception: ---------------------------------------------------- ... File "/tmp/sl/shtoom/shtoom/app/phone.py", line 76, in play_wav_file self._audio.playWaveFile(fullfname) File "/tmp/sl/shtoom/shtoom/audio/converters.py", line 328, in playWaveFile if not self._d.isOpen(): exceptions.AttributeError: EchoAudioDevice instance has no attribute 'isOpen' ---------------------------------------------------- The following patch makes EchoAudioDevice inherit AudioDevice, just as the other drivers, and therefore also the isOpen(). $ svn diff echoaudio.py Index: echoaudio.py =================================================================== --- echoaudio.py (revision 1651) +++ echoaudio.py (working copy) @@ -2,11 +2,12 @@ # A special audio device. It merely echoes back what you send it. +import baseaudio from converters import MediaLayer opened = None -class EchoAudioDevice: +class EchoAudioDevice(baseaudio.AudioDevice): def __init__(self): self._data = '' From anthony at interlink.com.au Fri Oct 28 16:15:48 2005 From: anthony at interlink.com.au (Anthony Baxter) Date: Sat, 29 Oct 2005 00:15:48 +1000 Subject: [Shtoom] audio issues with phone fixed Message-ID: <200510290015.48223.anthony@interlink.com.au> For a while now, the phone's had some issues with the audio. I believe these are now all fixed. Please let me know if I missed anything. Anthony -- Anthony Baxter It's never too late to have a happy childhood. From anthony at interlink.com.au Fri Oct 28 16:17:16 2005 From: anthony at interlink.com.au (Anthony Baxter) Date: Sat, 29 Oct 2005 00:17:16 +1000 Subject: [Shtoom] echoaudio patch In-Reply-To: <20051028131408.GA5873@sa-pc.cs.kau.se> References: <20051028131408.GA5873@sa-pc.cs.kau.se> Message-ID: <200510290017.16979.anthony@interlink.com.au> On Friday 28 October 2005 23:14, Stefan Alfredsson wrote: > Hello, > > When using the 'echo' audio driver, shtoom exists with an > exception: > The following patch makes EchoAudioDevice inherit AudioDevice, just > as the other drivers, and therefore also the isOpen(). Whoops! Nice catch - fixed. Thanks, Anthony -- Anthony Baxter It's never too late to have a happy childhood. From anthony at interlink.com.au Fri Oct 28 20:10:35 2005 From: anthony at interlink.com.au (Anthony Baxter) Date: Sat, 29 Oct 2005 04:10:35 +1000 Subject: [Shtoom] gmane.comp.voip.shtoom Message-ID: <200510290410.35906.anthony@interlink.com.au> FWIW, someone's set up gmane.comp.voip.shtoom. Could be useful if you prefer to read your mailing lists that way. * Newsgroup name: gmane.comp.voip.shtoom * Mailing list address: shtoom at python.org * The gateway is bi-directional * Address encryption is off * Spam detection is on * The list is described as: "Discussion about Shtoom - a Python VoIP softphone" * News URL: news://news.gmane.org/gmane.comp.voip.shtoom * Web URL: http://dir.gmane.org/gmane.comp.voip.shtoom -- Anthony Baxter It's never too late to have a happy childhood. From smurf at smurf.noris.de Fri Oct 28 22:47:42 2005 From: smurf at smurf.noris.de (Matthias Urlichs) Date: Fri, 28 Oct 2005 22:47:42 +0200 Subject: [Shtoom] gmane.comp.voip.shtoom In-Reply-To: <200510290410.35906.anthony@interlink.com.au> References: <200510290410.35906.anthony@interlink.com.au> Message-ID: <20051028204742.GX23503@kiste.smurf.noris.de> Hi, Anthony Baxter: > FWIW, someone's set up gmane.comp.voip.shtoom. Could be useful if you > prefer to read your mailing lists that way. > That was me, for exactly that reason. -- Matthias Urlichs | {M:U} IT Design @ m-u-it.de | smurf at smurf.noris.de Disclaimer: The quote was selected randomly. Really. | http://smurf.noris.de - - Fun things to do in an elevator: Ask each passenger getting on if you can push the button for them. -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 189 bytes Desc: Digital signature URL: