From owner-freebsd-multimedia@FreeBSD.ORG Fri Dec 31 02:43:10 2004 Return-Path: Delivered-To: freebsd-multimedia@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id DDB9616A4CE for ; Fri, 31 Dec 2004 02:43:10 +0000 (GMT) Received: from S1.cableone.net (smtp1.cableone.net [24.116.0.227]) by mx1.FreeBSD.org (Postfix) with ESMTP id 8147B43D46 for ; Fri, 31 Dec 2004 02:43:10 +0000 (GMT) (envelope-from v.velox@vvelox.net) Received: from fennec.24-119-122-191.cpe.cableone.net (unverified [24.119.123.89]) by S1.cableone.net (CableOne SMTP Service S1) with ESMTP id 5899872 for multiple; Thu, 30 Dec 2004 19:45:25 -0700 Date: Thu, 30 Dec 2004 18:43:14 -0600 From: Vulpes Velox To: WMC Message-ID: <20041230184314.6bd90341@fennec.24-119-122-191.cpe.cableone.net> In-Reply-To: <6.0.1.1.2.20041230153428.03096e70@mailsvr.xxiii.com> References: <6.0.1.1.2.20041230153428.03096e70@mailsvr.xxiii.com> X-Mailer: Sylpheed-Claws 0.9.13 (GTK+ 1.2.10; i386-portbld-freebsd5.3) Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit X-IP-stats: Incoming Last 1, First 23, in=33, out=0, spam=0 X-External-IP: 24.119.123.89 X-Abuse-Info: Send abuse complaints to abuse@cableone.net cc: freebsd-multimedia@freebsd.org Subject: Re: Music on Hold via FreeBSD Server X-BeenThere: freebsd-multimedia@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Multimedia discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 31 Dec 2004 02:43:11 -0000 On Thu, 30 Dec 2004 15:41:38 -0500 WMC wrote: > Greetings, > > I have an existing FreeBSD 5.x server I'm trying to use to feed > music or announcements on-hold into our phone system (yeah - I know > the legalities of using copyrighted stuff.) > > I installed a sound card, wired it up, and hacked together a simple > little script to run the mpg123 package to continuously playback a > few mp3 files. > > Couple questions: > * What command-line program would you suggest for playing > uncompressed audio files in this scenario? There are hundreds of > entries in Ports, and I'd rather not spend a month trying them all. For uncompressed stuff, I've found snd to be nice. Another posibility is mplayer. For looping them, I would just use find to make a list of files dumped to a file, and then randomly select one to be played. To randomly select something, just use rand, ports/textproc/rand. > * Has anyone else done something similar to this, and would you care > to share a script to keep it running continuously? Not something exactly like this, but I have something similar used for randomly setting my background.