From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.1.3 (2006-06-01) on yquem.inria.fr X-Spam-Level: X-Spam-Status: No, score=0.0 required=5.0 tests=AWL autolearn=disabled version=3.1.3 X-Original-To: caml-list@yquem.inria.fr Delivered-To: caml-list@yquem.inria.fr Received: from discorde.inria.fr (discorde.inria.fr [192.93.2.38]) by yquem.inria.fr (Postfix) with ESMTP id B5D88BC0B for ; Mon, 4 Dec 2006 12:46:30 +0100 (CET) Received: from furbychan.cocan.org (furbychan.cocan.org [80.68.91.176]) by discorde.inria.fr (8.13.6/8.13.6) with ESMTP id kB4BkS6j026594 (version=TLSv1/SSLv3 cipher=EDH-RSA-DES-CBC3-SHA bits=168 verify=NO) for ; Mon, 4 Dec 2006 12:46:30 +0100 Received: from rich by furbychan.cocan.org with local (Exim 3.35 #1 (Debian)) id 1GrCDd-00042x-00; Mon, 04 Dec 2006 11:42:45 +0000 Date: Mon, 4 Dec 2006 11:42:45 +0000 To: Vu Ngoc San Cc: caml-list@inria.fr Subject: Re: [Caml-list] reading audio Message-ID: <20061204114243.GA13275@furbychan.cocan.org> References: <4573E826.1080803@ujf-grenoble.fr> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <4573E826.1080803@ujf-grenoble.fr> User-Agent: Mutt/1.5.9i From: Richard Jones X-Miltered: at discorde with ID 45740A94.000 by Joe's j-chkmail (http://j-chkmail.ensmp.fr)! X-Spam: no; 0.00; 0100,:01 ocaml:01 bigarray:01 blog:98 blog:98 wrote:01 caml-list:01 data:02 bytes:03 library:03 dec:05 marketing:93 marketing:93 file:08 file:08 On Mon, Dec 04, 2006 at 10:19:34AM +0100, Vu Ngoc San wrote: > is there a library available for reading wav files in ocaml and, say, > convert it to a bigarray or something equivalent ? The WAV format is pretty simple. Have you tried just mapping the file? You'll need to ignore the first "data samples" covering the first 44 bytes of the file (the header). http://ccrma.stanford.edu/courses/422/projects/WaveFormat/ Rich. -- Richard Jones, CTO Merjis Ltd. Merjis - web marketing and technology - http://merjis.com Internet Marketing and AdWords courses - http://merjis.com/courses - NEW! Merjis blog - http://blog.merjis.com - NEW!