University of Southern CaliforniaUSC
USC ICT TwitterUSC ICT FacebookUSC ICT YouTube

python use TTSspeech | General SmartBody Discussion | Forum

Avatar

Please consider registering
guest

sp_LogInOut Log In sp_Registration Register

Register | Lost password?
Advanced Search

— Forum Scope —




— Match —





— Forum Options —





Minimum search word length is 3 characters - maximum search word length is 84 characters

sp_Feed Topic RSS sp_TopicIcon
python use TTSspeech
August 11, 2015
4:17 am
Avatar
Member
Members
Forum Posts: 9
Member Since:
May 18, 2015
sp_UserOfflineSmall Offline

Hi Manager,

 

Thanks for providing us with such a powerful open source motion library.

 

Currently, I am trying python api and I found out the speech function does not work well. The first problem is that the TTsRelay cannot accept the bml command sent by SmartBody.  I fix this by setting the VHMsgManager enable to true.

 

But now, though the TtsRelay can receive the command and make reactions, the SmartBody does not receive any reply from TtsRelay, I check the Xposition of Joint "open" and it remains 0.

 

I try the same code in SBGUI and it works well, so I doubt that there is something wrong with the initialization. Could you please tell me what do I need to prepare for the Speech function?

Thanks 

August 12, 2015
6:16 am
Avatar
Admin
Forum Posts: 983
Member Since:
December 1, 2011
sp_UserOfflineSmall Offline

Do you mean that you are running SmartBody directly within Python (and not as part of sbgui?)

If that's the case, the reason it does not work is that you probably running the command:

 

scene.getVHMsgManager().poll()

 

every step to check for a new, incoming message. sbgui does this as part of the simulation loop. 

Let me know if adding that fixes your problem.

 

Ari

August 13, 2015
3:35 am
Avatar
Member
Members
Forum Posts: 9
Member Since:
May 18, 2015
sp_UserOfflineSmall Offline

Thanks so much!!!!!!!!!!!!!!! This problem has been solved perfectly. I am so stupid that I miss this important step in sbgui.

 

By the way, I am able to find out what sbgui does in sbm_main.cpp, am I? What else file do I need to look at if I would like to know how sbgui works especially how it simulates and initializes?

August 13, 2015
4:16 am
Avatar
Admin
Forum Posts: 983
Member Since:
December 1, 2011
sp_UserOfflineSmall Offline

Glad it worked.

Look at sbm_main.cpp around line 1240, and also the SBScene::update() function.

 

Ari

Forum Timezone: America/Los_Angeles

Top Posters:

jwwalker: 80

jyambao: 52

rbaral: 47

adiaz: 30

WargnierP: 29

lucky7456969: 28

mbarros: 28

avida.matt: 26

JonathanW: 24

laguerre: 23

Member Stats:

Guest Posters: 69

Members: 122101

Moderators: 3

Admins: 4

Forum Stats:

Groups: 1

Forums: 5

Topics: 531

Posts: 2495