University of Southern CaliforniaUSC
USC ICT TwitterUSC ICT FacebookUSC ICT YouTube

Using VHMsg to send and receive wstring or wchar * strings | General SmartBody Discussion | Forum


Please consider registering

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
Using VHMsg to send and receive wstring or wchar * strings
March 3, 2017
3:26 am
Forum Posts: 29
Member Since:
September 30, 2014
sp_UserOfflineSmall Offline

Hello SmartBody community,

I am developping a conversational agent system in French language, which works quite well, except for the fact that I have to spell phrases for speech synthesis phonetically, which has some limitations. I would need to send non-ASCII characters through VHMsg, which I extensively used for communications in my distributed architecture.

By looking at the source code of the VHMsg API, I have noticed that all strings get converted to ASCII when going through VHMsg. Does anyone know if there is a particular reason to it (i.e. what would happen if I removed this conversion and sent utf-8 strings for my BML instructions)?

I have seen however that there are some functions to set a callback function working with wchar. Would that allow to correctly receive strings sent from a C# program to a C++ program via VHMsg (my speech recognition module is in C# and my decision module is in C++)?

Thanks in advance for your answers,


March 3, 2017
10:56 am
Forum Posts: 944
Member Since:
December 1, 2011
sp_UserOfflineSmall Offline

I haven't looked at that issue specifically - seems like a good idea to allow for utf-8 (or unicode..?) through vhmsg. However, there may be other aspects of SmartBody that aren't set up to handle non-English languages.

You could certainly make that change in the VHMSG library and see what happens...


Forum Timezone: America/Los_Angeles

Most Users Ever Online: 733

Currently Online: bonadio56, irmawy11
28 Guest(s)

Currently Browsing this Page:
1 Guest(s)

Member Stats:

Guest Posters: 61

Members: 11750

Moderators: 3

Admins: 4

Forum Stats:

Groups: 1

Forums: 5

Topics: 409

Posts: 2264