©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

how to play 2 file , or combine 2 alaw file into single wav

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





PostPosted: Mon Dec 01, 2003 9:36 am    Post subject: how to play 2 file , or combine 2 alaw file into single wav Reply with quote

anybody can help me:
in wavesurfer, how to play 2 file same time
another question how to combine 2 alaw file into single wav (sterio)
thankx !
<a href=mailto:nick.tu@msa.hinet.net> mail to nicholas </a>
Back to top
kare



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

PostPosted: Wed Dec 03, 2003 3:00 pm    Post subject: Reply with quote

WaveSurfer can't play two files at the same time currently, you could probably remove the line dissalowing this and get it to work though.

Combining two files into one can be done through some magic in the console window
This script would do the job:

sound l -load left.wav
sound r -load right.wav
sound s -channels 2
s length [l length]
for {set i 0} {$i < [l length]} {incr i} {
s sample $i [l sample $i] [r sample $i]
}
s write stereo.wav

Might be easier to use the above in a Snack script file though. http://www.speech.kth.se/snack/

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