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!

Recommended Answers

All 3 Replies

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"?>

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

UTF-8 worked. Thank you very much!

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.