954,568 Members — Technology Publication meets Social Media
Username:
Password:
Lost login information?
Have something to say? Contribute New Article Reply to this Article

problem with xml and speech recognition

I am trying to write a program using vb6.0 with sapi's speech recognition support. When I tried English everything came out alright. But when I swithed to Chinese, there's always this error when loading grammar and rules from an xml file. Why could it be? Anything to take special notice with when doing speech recognition with a language that is not English?
Thank you very much!

punchinello
Light Poster
29 posts since Sep 2009
Reputation Points: 10
Solved Threads: 0
 

I can't speak for anything about the speech recognition portion but you should make sure that you're using the processing instruction on your XML documents that has a character set defined to include all the symbols or text from that foreign language. If it doesn't have your symbols or character, they may not parse correctly.

Using the encoding attribute on the processing instruction

<?xml version="1.0" encoding="UTF-8"?>
iceandrews
Junior Poster
185 posts since May 2010
Reputation Points: 10
Solved Threads: 30
 

Thank you very much! I'll try UTF-8. :)

punchinello
Light Poster
29 posts since Sep 2009
Reputation Points: 10
Solved Threads: 0
 

UTF-8 worked. Thank you very much!

punchinello
Light Poster
29 posts since Sep 2009
Reputation Points: 10
Solved Threads: 0
 

This question has already been solved

Post: Markdown Syntax: Formatting Help
You