www.micro-examples.com
Microcontroller circuits and source code examples
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 
 

Programing/changing standard entry from the audio table

 
Post new topic   Reply to topic    www.micro-examples.com Forum Index -> General Discussion About VR Stamp
View previous topic :: View next topic  
Author Message
ktaa



Joined: 30 Oct 2007
Posts: 2

PostPosted: Tue Oct 30, 2007 7:42 pm    Post subject: Programing/changing standard entry from the audio table Reply with quote

Hi,
I am working with sensory VR DEMO example called svsleep. But in order to customize this for our project, I need to change some standard audio annoucements that is programmed into the system.

For example when I look into the file svsleep\speech\sv_patgen.h file, I see a sound table is being defined SNDTBL_SV_PATGEN. For example, I want to change (extern far cdata SX_level5) to a different speech ( lets say "max level"). How do I program this new sound or how can I link a new audio to any project?

Thanks for your help.
AA
Back to top
View user's profile Send private message
BrunoG
Site Admin


Joined: 22 Nov 2005
Posts: 636

PostPosted: Wed Oct 31, 2007 2:32 am    Post subject: Reply with quote

Hello,

you can do it with Sensory's Quick Synthesys 4 tool.
there is a short tutorial for QS4 in this VRSTAMP project page :
http://www.micro-examples.com/public/microex-navig/doc/088-vrstamp-voice-controlled-led-light-show.html
_________________
BrunoG, Administrator
Back to top
View user's profile Send private message Send e-mail
ktaa



Joined: 30 Oct 2007
Posts: 2

PostPosted: Sat Nov 03, 2007 4:37 am    Post subject: Reply with quote

Hi BrounoG,

Thanks. I have tried to include a test1.h which includes all the wavefile of your lightshow example. Then I tried to use the SNDTBL_TEST1 in teh svsleep example in sensory\FC3_0_7\csamples\svsleep\svsleep.c. I keep getting the following error.

Undefined extern name 'SNDTBL_TEST1' in module "SVSLEEP'

the test1.h is same as your led_lightshow example. I am pasting some sample lines from svsleep.c, teh way I changed it.

Appreciate your help.

Thanks
AA


#include "speech\test1.h"

....

...


{
_PlaySnd(SND_repeat, (long)&SNDTBL_TEST1, SX_FULL_VOL);
_PlaySnd(SND_repeat, (long)&SNDTBL_TEST1, SX_FULL_VOL);
}
else if (error)
_PlaySnd(SND_try_again, (long)&SNDTBL_TEST1, SX_FULL_VOL);
else
_PlaySnd(SND_ok, (long)&SNDTBL_TEST1, SX_FULL_VOL);
}


...
...
Back to top
View user's profile Send private message
BrunoG
Site Admin


Joined: 22 Nov 2005
Posts: 636

PostPosted: Sun Nov 04, 2007 10:52 pm    Post subject: Reply with quote

as you can see in the project, there is an object file called LEDLIGHTSHOW.MCO in the QS4 directory : this file is produced by QS4,
it contains the compressed sounds.
the definitions in the .H file only point to the sound segments of this object file.
_________________
BrunoG, Administrator
Back to top
View user's profile Send private message Send e-mail
Display posts from previous:   
Post new topic   Reply to topic    www.micro-examples.com Forum Index -> General Discussion About VR Stamp All times are GMT + 1 Hour
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot 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 © 2001, 2005 phpBB Group