|
From: Kirill K. <kir...@sm...> - 2015-05-13 18:55:14
|
shorten(1) is very outdated, so there would be no benefit adopting it over nist sphere tools. Current programs that support .shn files and the shorten compression are ffmpeg/avconv, but I doubt they can directly uncompress a shorten'd .sph. It all gets complicated quickly. But using sox on uncompressed sets like TEDlium is probably more portable. If anyone has a sample shorten-compressed .sph file, send it my way please. -kkm > -----Original Message----- > From: Jan Trmal [mailto:jt...@gm...] > Sent: 2015-05-13 0315 > To: Kirill Katsnelson > Cc: Anthony Rousseau; Dan Povey; kal...@li... > Subject: RE: [Kaldi-developers] sph audio, sox vs sph2pipe > > I remember I tried several times and I had the problems with "shorten". > > Sox refuses to work with those sph files. > > What I did IIRC, I took shorten.exe (I don't remember where I got it, > but something can be found here: > http://www.rarewares.org/lossless.php), > which does not support sph format -- but has some switch that allows to > ignore first 1024 bytes of the recording (or something like that). That > binary produced either A/mu-law or 16bit-linear raw audio, which I > processed using sox as usuall. > > HTH > > y. > > > > > On May 13, 2015 7:40 AM, "Kirill Katsnelson" > <kir...@sm...> wrote: > > > It very likely does not. I did not know it was common though. > AFAIK, it just outputs a compressed stream, but I have no way to test. > > Can it be piped to ffmpeg or avconv? If I could get hold of a > compressed file example, I'd test. > > -kkm > > > -----Original Message----- > > From: Jan Trmal [mailto:jt...@gm...] > > Sent: 2015-05-12 2231 > > To: Anthony Rousseau > > Cc: Kirill Katsnelson; Dan Povey; kaldi- > > dev...@li... > > Subject: Re: [Kaldi-developers] sph audio, sox vs sph2pipe > > > > Guys, if I remember correctly, sox does support sph, but it > does > > not support sph with "shorten" compression, which is commonly > used in > > the ldc sph files. > > Y. > > > > On May 13, 2015 6:57 AM, "Anthony Rousseau" > > <ant...@li...> wrote: > > > > > > Dear Dan, > > > > I think sox has been supporting the NIST Sphere format > for a long > > time now, as I’ve been using it for years. Here is a sample > command > > line I use to do the WAV -> SPH conversion: > > $sox -q -t wav $file.wav -c 1 -B -r 16000 -b 16 -t sph > $file.sph > > > > Best, > > > > — > > Anthony > > > > > Le 13 mai 2015 à 01:16, Daniel Povey > <dp...@gm...> a écrit > > : > > > > > > I did not realize that sox supports sphere format. > Maybe this > > is new. > > > It would probably be a good idea to switch the scripts > over to > > using > > > sox, since it a more standard tool. But this may take > a little > > while > > > to switch over, as it's in the local/ parts of the > example > > scripts. > > > We'd also need, in that case, to add sox to the list > of > > dependencies > > > that we check while installing Kaldi. > > > If you can test whether it works in place of sph2pipe, > that > > would be a > > > good thing. > > > > > > Dan > > > > > > > > > On Tue, May 12, 2015 at 6:59 PM, Kirill Katsnelson > > > <kir...@sm...> wrote: > > >> Kaldi uses sph2pipe, although sox supports the .sph > format. > > Is the use of sph2pipe just a historical artifact, or is sox' > support > > for sphere incomplete/unreliable? > > >> > > >> I am asking because there is apparently no working > binary of > > sph2pipe on windows, and I did not port it. > > >> > > >> -kkm > > >> > > >> > > > ----------------------------------------------------------------------- > > - > > ------ > > >> One dashboard for servers and applications across > Physical- > > Virtual-Cloud > > >> Widest out-of-the-box monitoring support with 50+ > applications > > >> Performance metrics, stats and reports that give you > > Actionable Insights > > >> Deep dive visibility with transaction tracing using > APM > > Insight. > > >> > http://ad.doubleclick.net/ddm/clk/290420510;117567292;y > > >> _______________________________________________ > > >> Kaldi-developers mailing list > > >> Kal...@li... > > >> > https://lists.sourceforge.net/lists/listinfo/kaldi-developers > > > > > > > > > ----------------------------------------------------------------------- > > - > > ------ > > > One dashboard for servers and applications across > Physical- > > Virtual-Cloud > > > Widest out-of-the-box monitoring support with 50+ > applications > > > Performance metrics, stats and reports that give you > Actionable > > Insights > > > Deep dive visibility with transaction tracing using > APM > > Insight. > > > > http://ad.doubleclick.net/ddm/clk/290420510;117567292;y > > > _______________________________________________ > > > Kaldi-developers mailing list > > > Kal...@li... > > > > https://lists.sourceforge.net/lists/listinfo/kaldi-developers > > > > > > > > > ----------------------------------------------------------------------- > > - > > ------ > > One dashboard for servers and applications across > Physical- > > Virtual-Cloud > > Widest out-of-the-box monitoring support with 50+ > applications > > Performance metrics, stats and reports that give you > Actionable > > Insights > > Deep dive visibility with transaction tracing using APM > Insight. > > http://ad.doubleclick.net/ddm/clk/290420510;117567292;y > > _______________________________________________ > > Kaldi-developers mailing list > > Kal...@li... > > > https://lists.sourceforge.net/lists/listinfo/kaldi-developers > > > > |