How do you access the System.Speech framework in m

2019-02-18 07:39发布

问题:

Related: Is "System.Speech.Recognition" namespace available in mono framework?

I'm aware that the System.Speech namespace is available in mono according to this link but I'm not sure how to access it using MonoDevelop. When I try to add a reference to the namespace under Projects > Edit References, System.Speech is just not there. Whenever I try to build with the keyword using System.Speech I'm given the error:

Error CS0234: The type or namespace name `Speech' does not exist in the namespace `System'. Are you missing an assembly reference? (CS0234) (Assembly-CSharp).

I'm running OSX but I'm under the impression that mono is a full implementation of the .NET framework so I should be able to access it, since I can access other .NET libraries.

Any help would be appreciated!!

回答1:

Maybe you have misunderstood the charts,

http://go-mono.com/status/

The first column is for .NET 4.0 vs .NET 4.5, which is purely the comparison of Microsoft's stuffs. Thus, System.Speech is listed there.

You can see that when Mono's stuffs are compared to Microsoft's, System.Speech is not listed.

That simply indicates Mono does not yet attack in this area, and which is meaningful. System.Speech heavily relies on Microsoft's speech engine inside Microsoft Windows platforms, which Mono is not easy to clone on other platforms.



标签: c# .net mono