amsn in OpenBSD works fine. However when one msn contact send me a voice clip amsn return one error. Unfortunately it work only with libsnack.
To compile libsnack in OpenBSD do the following steps.
1. Download the source of tcl snack 2.2.10 from
http://ttp://www.speech.kth.se/snack/dist/snack2.2.10.tar.gz2. Apply the following patches
$ diff generic/jkFormatMP3.c generic/jkFormatMP3.c.bak
1312c1312
< //#include <math.h>
---
> #include <math.h>
$ diff unix/jkAudIO_oss.c unix/jkAudIO_oss.c.bak
29c29
< #ifdef __OpenBSD__
---
> #ifdef __NetBSD__
$ diff unix/Makefile.in unix/Makefile.in.bak
7c7
< TK_INCPATH = @TK_SRC_DIR@/generic
---
> TK_INCPATH = /usr/local/include/tk8.4/
3. Configure, Make and Make install
$./configure --with-tcl=/usr/local/lib/tcl8.4/ --with-tk=/usr/local/lib/tk8.4/ --prefix=/usr/local/
$ make
$ make install
4. Copy library to amsn utils dir
$ cp -R /usr/local/lib/tcl8.4/snack2.2 /path/to/amsn_src/utils/linux/
5. Apply the following patch under amsn
$ svn diff .
Index: audio.tcl
===================================================================
--- audio.tcl (revision 9067)
+++ audio.tcl (working copy)
@@ -6,10 +6,19 @@
# Since Mac and Windows have the snack 2.2.10 binaries shipped with amsn,we can require the exact version safely.. linux is trickier because
# the user can install whatever version he wants (and all 2.2.x versions have a 'package provide 2.2')
proc require_snack { } {
if {[package provide snack] != ""} {
return
} elseif {[OnLinux] } {
package require snack
+ } elseif {[OnBSD] } {
+ if { [catch {
+ load [file join utils linux snack2.2 libsnack.so]
+ source [file join utils linux snack2.2 snack.tcl]
+ } ] } {
+ package require snack
+ }
} elseif {[OnWin] } {
if { [catch {
load [file join utils windows snack2.2 libsnack.dll]
6. Compile and install amsn
$ ./configure
$ make
$ make install
7. Enable the mic in OpenBSD. To enable the mic as record device in OpenBSD use the mixerctl command
$ mixerctl inputs.mic.mute=off
inputs.mic.mute: on -> off
$ mixerctl record.source=mic
record.source: line -> mic
8. Enjoy it :-D
The screnshoot show one voiceclip received

The screnshoot show one voiceclip sent

Unfortunately these patch does NOT apply to svn of amsn, becuase snack doesn't has an official port in OpenBSD. This post is only informative from how it compile snack and enable it in OpenBSD.
I will try to talk with OpenBSD Ports Team to integrate snack and amsn to official ports.
Additonaly I have one question. When I received one voiceclip it sound fine, but when I record one voiceclip my msn contact hear it as slowmotion (ultratumba :-D)
Can you help me? the files with bad sound are:
contact@hotmail.com_14 Oct 2007 @ 22_10_41.wav
And the
contact@hotmail.com_14 Oct 2007 @ 22_10_41_encoded.wav file I can't hear it beacuse mplayer had the following error
Audio file file format detected.
==========================================================================
Cannot find codec for audio format 0x28E.
Read DOCS/HTML/en/codecs.html!