Print Page | Close Window

WSR add/edit/remove words from the user dictionary

Printed From: MSSpeech-Forum
Category: Windows™ Speech Recognition Forums
Forum Name: New Users & General Questions
Forum Description: Ask questions, give and get answers.
URL: https://www.msspeech-forum.com/forum_posts.asp?TID=319
Printed Date: 17/Nov/2024 at 10:16am
Software Version: Web Wiz Forums 12.02 - http://www.webwizforums.com


Topic: WSR add/edit/remove words from the user dictionary
Posted By: engnrman
Subject: WSR add/edit/remove words from the user dictionary
Date Posted: 11/Sep/2013 at 2:11pm
I want to programmatically add/edit/remove words and pronunciations from the .dat file under the UserLexicons directory (or more commonly referred to as the "user dictionary"). I would also like to be able to add a recording of the word like the correction dialog for WSR Shared recognizer does through C#. My program is in C# and I would like to utilize the system.speech namespace and not have to utilize SAPI to do so. Anyone?



Replies:
Posted By: antihadron
Date Posted: 16/Sep/2013 at 11:56am
Sorry I don't know of any way to do that through .NET system.speech.  
Does not look like (easy) access to the user dictionaries is even available through SAPI.  

my suggestion is to look at the lexicon interface
http://msdn.microsoft.com/en-us/library/ms717899%28v=vs.85%29.aspx - http://msdn.microsoft.com/en-us/library/ms717899(v=vs.85).aspx

Oddly enough some sort of code sample is available here
http://msdn.microsoft.com/en-us/library/ms812511.aspx - http://msdn.microsoft.com/en-us/library/ms812511.aspx







Print Page | Close Window

Forum Software by Web Wiz Forums® version 12.02 - http://www.webwizforums.com
Copyright ©2001-2019 Web Wiz Ltd. - https://www.webwiz.net