Re: How to get the length of wav file?



"lgj573@xxxxxxxxx" <lgj573@xxxxxxxxx> writes:
Here is the code.But here will be some problem if I is called.
public static double getLength(String path) throws Exception {

This looks like Java. If you want help with Java code, you should
probably ask your question on a Java newsgroup. If you're using Perl,
File::Headerinfo::WAV will probably do what you want; I haven't used
it, but it claims to "extract useful information like their duration
and filesize" from WAV files. Audio::WAV also includes methods for
that, but it's more oriented towards working with the contents of WAV
files. If you need to do that sort of thing, it looks useful.

-=Eric
.



Relevant Pages

  • Re: [SLE] Console CD Ripping
    ... > Anyone recommend their favorite ... > and Jack are loaded, also the Java RE is running fine (jEdit loads great ... It *does* however create intermediate .wav files. ...
    (SuSE)
  • Re: BinaryReader and BinaryWriter and Endianess
    ... The BinaryWriters write multi-bytes ... E.g. Win .wav files write multi-byte ... Compare to write methods on Java that write data in big-endian ordered fashion. ...
    (microsoft.public.dotnet.framework)
  • Wav file transcription using CMU Sphinx-4 - need help
    ... I got Sphinx-4 installed on my windows XP and JSAPI set up. ... Since I don't know Java I am not able to proceed further :-( ... I am converting them to wav files now. ...
    (comp.speech.research)
  • RE: Calling a Web Service hosted on a Web Logic server from a C# SOAP
    ... > XXXServices) hosted on a Web Logic server from a C# SOAP client. ... > causes the client to crash. ... a Java client that accesses the same web service succeeds. ... Deploy the Java code as some kind of intermediate "translator" ...
    (microsoft.public.dotnet.framework.webservices)
  • Re: Microsoft Losing Interest in C#?
    ... > write tests in Java, translate them, and ensure that both versions act ... I think array covariance of primative types(or atleast ... and I wouldn't think that java code would be ... For me, personally, architectural conventions can go along way towards ...
    (microsoft.public.dotnet.languages.csharp)