Collectives™ on Stack Overflow
Find centralized, trusted content and collaborate around the technologies you use most.
Learn more about Collectives
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
Learn more about Teams
So I have:
C:\Program Files (x86)\Reference Assemblies\Microsoft\Framework.NETFramework\v4.0\Profile\Client\
System.Speech.dll
...and I can add the reference to
Visual Studio
but
using System.Speech
etc won't register with the console, and therefore speech synthesis and recognition does not work.
Would appreciate any and all help, thanks!
–
–
–
–
–
You need to add a reference to the
System.Speech
assembly, then you are free to use speech like so:
using System;
using System.Speech; // <-- sounds like what you are using, not necessary for this example
using System.Speech.Recognition; // <--- you need this
namespace ConsoleApplication2
class Program
static void Main(string[] args)
using (SpeechRecognizer recognizer = new SpeechRecognizer())
// do something
Adding reference
Just in case, here is the reference I am using (via project.References.Add Reference...):
It is not necessary to use the Browse function. I'm assuming you are not using COM too.
Tell me more
MSDN, "SpeechRecognizer Class", https://msdn.microsoft.com/en-us/library/system.speech.recognition.speechrecognizer(v=vs.110).aspx
–
–
Its a little out of date but this tutorial shows you how to get started using the System.speech class
It sounds like what you are doing now is trying to use the class directly. The first step is to make an instance of the SpeechSynthesizer
or SpeechRecognizer
class with which you can perform the System.speech actions.
Thanks for contributing an answer to Stack Overflow!
- Please be sure to answer the question. Provide details and share your research!
But avoid …
- Asking for help, clarification, or responding to other answers.
- Making statements based on opinion; back them up with references or personal experience.
To learn more, see our tips on writing great answers.