1
Vote

SpeechBasics-WPF using ASCII instead of UTF8

description

at SpeechBasics-WPF sample, there is the command
new MemoryStream(Encoding.ASCII.GetBytes(Properties.Resources.SpeechGrammar_en)))
but since the grammar file is in UTF8 format it should better be
new MemoryStream(Encoding.UTF8.GetBytes(Properties.Resources.SpeechGrammar_en)))
to conver speech recognition for other languages in the future that aren't covered by ASCII

(this could potentially be a hard to spot problem if one uses copy-paste from this sample)

comments