Azure-Samples / Cognitive-Speech-STT-Windows

Windows SDK for the Microsoft Speech-to-Text API, part of Cognitive Services
https://www.microsoft.com/cognitive-services/en-us/speech-api
Other
112 stars 89 forks source link

.net Core implementation of the speechclient.dll #43

Closed lokeshkumarn closed 6 years ago

lokeshkumarn commented 6 years ago

How to use the SpeechClient.dll in .net core web app

priyaravi20 commented 6 years ago

Not possible with this library. We will releasing another SDK early nest year to address this issue.

lokeshkumarn commented 6 years ago

Thank you I was trying to use it Web api but I am getting C++ module failed to load, is that because it is being used in .net core

lokeshkumarn commented 6 years ago

Even in Web API 2.0 its not working [BadImageFormatException: Could not load file or assembly 'SpeechClient' or one of its dependencies. An attempt was made to load a program with an incorrect format.] System.Reflection.RuntimeAssembly._nLoad(AssemblyName fileName, String codeBase, Evidence assemblySecurity, RuntimeAssembly locationHint, StackCrawlMark& stackMark, IntPtr pPrivHostBinder, Boolean throwOnFileNotFound, Boolean forIntrospection, Boolean suppressSecurityChecks) +0 System.Reflection.RuntimeAssembly.nLoad(AssemblyName fileName, String codeBase, Evidence assemblySecurity, RuntimeAssembly locationHint, StackCrawlMark& stackMark, IntPtr pPrivHostBinder, Boolean throwOnFileNotFound, Boolean forIntrospection, Boolean suppressSecurityChecks) +36 System.Reflection.RuntimeAssembly.InternalLoadAssemblyName(AssemblyName assemblyRef, Evidence assemblySecurity, RuntimeAssembly reqAssembly, StackCrawlMark& stackMark, IntPtr pPrivHostBinder, Boolean throwOnFileNotFound, Boolean forIntrospection, Boolean suppressSecurityChecks) +152 System.Reflection.RuntimeAssembly.InternalLoad(String assemblyString, Evidence assemblySecurity, StackCrawlMark& stackMark, IntPtr pPrivHostBinder, Boolean forIntrospection) +77 System.Reflection.RuntimeAssembly.InternalLoad(String assemblyString, Evidence assemblySecurity, StackCrawlMark& stackMark, Boolean forIntrospection) +21 System.Reflection.Assembly.Load(String assemblyString) +28 System.Web.Configuration.CompilationSection.LoadAssemblyHelper(String assemblyName, Boolean starDirective) +38

zhouwangzw commented 6 years ago

For using with Web API, could you please try C# Service Library? It should work with Web API, but probably not with WebCore. We are currently working on a new version which supports WebCore.

lokeshkumarn commented 6 years ago

Service library not responding wss://xxxxxxxxxxxxxxxxxxxxxxxx.api.cris.ai/speech/recognition/interactive/cognitiveservices/v1 Continously calling the GetAuthorizationTokenAsync -- > FetchToken method in the IAuthorizationProvider

zhouwangzw commented 6 years ago

it seems that the URL you were using points to Custom Speech Service (cris.ai). Which service are you using for speech recognition?