I have a huge project written in c# using .Net 3.5 I need to use Unity3D for my project. I tried to import Unity into my project but I found out that it is not possible. So, now I want to import the code that I have written in C# into Unity. I created a library using the code that I already have, to import it into Unity and use it. But when I try to import it I receive the following error:
Unhandled Exception: System.TypeLoadException: Could not load type 'SpeechTools.ClsSpeechSynthesis' from assembly 'MySpeechSynthesizer, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null'. Could not load file or assembly 'System.Speech, Version=3.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35' or one of its dependencies.
I am using System.Speech in my library. It is not supported in Unity (Mono). I guess the problem is caused by this dependency.
Can anyone help me? Is there a way to write a wrapper around System.Speech.SpeechSynthesizer and use it in Unity?
I searched online and I found a lot of tutorials on writing wrappers for c++ codes but nothing for c# and .Net libraries.