Closed WaterBlueNewWorld closed 2 years ago
Hi, I'll need to check if there's someone in our team who knows Dart. Meanwhile,
Hi, sorry for the late response, in regards your questions:
lib
, outside that folder the file main.dart
is located with the code that calls my dll called LibMicCognitive.dll
.Thanks for the response in this matter, I'll update once I test the sample you suggested.
Small update on the results from the example you asked me @pankopon: The sample application performed the task without fails.
Also a small side note, the sample app uses .NET 3.1 and mine needs to use .NET 6 in order to compile with AOT. I dont know if this affects on how the sdk works.
@WaterBlueNewWorld Here's one more thing to try:
LibMicCognitive.dll
, all Microsoft.CognitiveServices.Speech.*
dlls) in the same directory.If it still doesn't work then it seems the Speech SDK is not compatible with Dart at the moment. In that case, please consider using one of the supported programming languages for your application instead. Unfortunately we don't have anyone with Dart experience in the Speech SDK team, and there are no plans to develop Dart specific support for now.
It worked! Followed your steps and the library worked perfectly Now i only have to handle special characters because some spanish words contain special chararcters but I can handle that on my side, many many thanks @pankopon
Great to hear you got it working! I'm closing this issue as resolved, please create a new item if further support is needed.
I'm somewhat new in to creating libraries and C#, so i want to know if there is really a possibility for this, but, I want to create a library that can depend on the speech cognitive services in order to use it with FFI through dart code. I've trying by myself using the microsoft docs about the speech SDK and a github repo from a medium article which provides an example on how to make interop with C# and Dart. So far I got this:
When i compile the project and then try to use the .dll library file on my dart code I get the following error:
If there are limitations for this workaround let me know too. Many thanks.