Using VHMsg to send and receive wstring or wchar * strings | General SmartBody Discussion | Forum
September 30, 2014
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,
December 1, 2011
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...
Most Users Ever Online: 733
Currently Browsing this Page:
Guest Posters: 61
Newest Members:irmawy11, apatheticrecept, tinyjug77, ednamasseys36, minhxu, muddledtwilight, overtcatcall96, bonadio56, playton96, wmmer164