©2003 Kåre Sjölander and Jonas Beskow
Introduction Download Documentation Links Forum
WaveSurfer user forum

FAQ  FAQ
Search  Search
Memberlist  Memberlist
Register  Register
Profile  Profile
Login  Login

endian conversion

 
Post new topic   Reply to topic    www.speech.kth.se/wavesurfer Forum Index -> WaveSurfer
View previous topic :: View next topic  
Author Message
minkyul



Joined: 21 Apr 2004
Posts: 1

PostPosted: Wed Apr 21, 2004 10:21 pm    Post subject: endian conversion Reply with quote

Is there any way to convert big endian into little endian ( or vice versa) and save in converted format? Thanks in advance.

Minkyu
Back to top
View users profile Send private message AIM Address
kare



Joined: 16 Aug 2002
Posts: 371
Location: KTH, Centre for Speech Technology

PostPosted: Thu Apr 22, 2004 12:22 pm    Post subject: Reply with quote

WaveSurfer does this conversion automatically when saving any sound file.
For example, little endian is used when saving in WAV format and big endian is used when saving in AU format.

If you want to save in raw format (no header) and specify the byte order explicitly you could try this on the WaveSurfer console (on the File menu):

[[::wsurf::GetCurrent] cget -sound] write fileL.raw -byteorder little

[[::wsurf::GetCurrent] cget -sound] write fileB.raw -byteorder big

Kåre
Back to top
View users profile Send private message Visit posters website
Display posts from previous:   
Post new topic   Reply to topic    www.speech.kth.se/wavesurfer Forum Index -> WaveSurfer All times are GMT + 1 Hour
Page 1 of 1

 
Jump to:  
You can post new topics in this forum
You can reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB 2.0.1 © 2001, 2002 phpBB Group