©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

WaveSurfer failed setting sample frequency

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





PostPosted: Wed Jun 16, 2004 12:51 pm    Post subject: WaveSurfer failed setting sample frequency Reply with quote

Since I have installed a soundblaster extigy from Creative Labs, I can't play sound files opened with WaveSurfer, if their sample rates are different from 48kHz, whereas I can play them with the linux command "play". The following error message appears : "Failed setting sample frequency" (details at the end of this mail). My OS is linux. I used the 1.6.4 version of WaveSurfer, both binary and tcl.

This problem occurs both with raw files and wav files, and I tested both 8000 and 16000 Hz sample rate. Note that only 48000 Hz sample rate is proposed when opening a raw file.

Does anyone have a solution ? (except converting all files to 48kHz !)

GaŽl Mahť

*******************
Detailed error msg :

Failed setting sample frequency.
while executing
"$s play -start $d(playStartPos) -end $d(playEndPos) -filter $d(mapFilter) -command [namespace code [list playDone $w]]"
(procedure "play" line 36)
invoked from within
"play .x.s2"
(in namespace inscope "::wsurf" script line 1)
invoked from within
"namespace inscope ::wsurf {play .x.s2}"
invoked from within
".x.s2.titlebar.playbutton invoke"
("uplevel" body line 1)
invoked from within
"uplevel #0 [list $w invoke]"
(procedure "tkButtonUp" line 7)
invoked from within
"tkButtonUp .x.s2.titlebar.playbutton
"
(command bound to event)
Back to top
Geoffrey



Joined: 03 Feb 2003
Posts: 32
Location: Belgium

PostPosted: Thu Jun 17, 2004 11:12 am    Post subject: Reply with quote

Hi

For what I saw in the wavesurfer code (wsurf.tcl, InterpretRawDialog), the rates proposed by WaveSurfer are those returned by the "snack::audio" function, when called with "rates".
This probably means that the soundcard Snack checks does not support other rates than 48 kHz. Are you sure the right sound card is used and/or it is properly configured ?

HTH
Geoffrey
Back to top
View users profile Send private message
GaŽl Mahť
Guest





PostPosted: Thu Jun 17, 2004 4:08 pm    Post subject: Reply with quote

Thank you for your answer !

According to http://exaudio.sourceforge.net/, "the sound card only plays at 48 KHz. So, to play audio files with other rates, the player program must be able to do rate conversion (sox can do this, and so can xmms)".

How does the "snack::audio" function works ? Is there a way to make it convert the rate, as sox does ?

Otherwise, do you know free wavesurfer-like programs based on sox ?

GaŽl Mahť
Back to top
kare



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

PostPosted: Fri Jun 18, 2004 2:26 pm    Post subject: Reply with quote

If you download and use the source version, i.e. install Tcl/Tk and then run wavesurfer.tcl from the source distribution you can get it to work like sox/xmms with one tiny source code modification.

edit wsurf1.6/wsurf.tcl, line 3154, that starts "-command "
add this at the end of the line: " -devicerate 48000"

I'll think about how to add this fix in the next release, there are other issues...

/KŚre
Back to top
View users profile Send private message Visit posters website
gael.mahe



Joined: 16 Jun 2004
Posts: 2

PostPosted: Tue Jun 22, 2004 4:52 pm    Post subject: Reply with quote

Thank you.
I did it, it works, but the problem is that it works like xmms : the sound is metalical, with extraneaous high frequencies.
How does this function "play" works ? Is it possible to base it on the linux command sox (or play), which provides a conversion without error ?

GaŽl
Back to top
View users profile Send private message
kare



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

PostPosted: Wed Jun 23, 2004 10:09 pm    Post subject: Reply with quote

This is a sore spot indeed. And it's high on the todo list. But I haven't found the time yet. I will definitely fix it because that type of sound card is becoming more frequent and it's not complicated to fix. We get a lot of vacation time in Sweden so don't expect a fix for a while though...

KŚre
Back to top
View users profile Send private message Visit posters website
gael.mahe



Joined: 16 Jun 2004
Posts: 2

PostPosted: Thu Jun 24, 2004 9:46 am    Post subject: Reply with quote

ok, I will wait !

GaŽl
Back to top
View users profile Send private message
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