Skip to content
This repository has been archived by the owner on Nov 16, 2023. It is now read-only.

Jar file not found #1

Open
pallaviMN opened this issue Jun 5, 2018 · 22 comments
Open

Jar file not found #1

pallaviMN opened this issue Jun 5, 2018 · 22 comments

Comments

@pallaviMN
Copy link

Hi Team,

src/main/jniLibs/com.microsoft.cognitiveservices.speech.jar , this jar is not found but mentioned in the gradle file of the module

@fmegen
Copy link

fmegen commented Jun 25, 2018

Hi,

the jar file should be in the example/main/java/jnilibs/ folder.

could you please check if the file exists in the location mentioned.

@pallaviMN
Copy link
Author

@fmegen , no its not there

@pallaviMN
Copy link
Author

@fmegen any update on this

@fmegen
Copy link

fmegen commented Jul 19, 2018

We updated the SDK to version 0.5.0. With this version,. the SDK supports Android.

This version includes documenation and sample code for Android. The Android libraries are now hosted in a maven repository.

Please have a look here for pointers:
https://docs.microsoft.com/en-us/azure/cognitive-services/speech-service/
https://docs.microsoft.com/en-us/azure/cognitive-services/speech-service/quickstart-java-android

@pallaviMN
Copy link
Author

@fmegen , is it available for iOS as well?

@fmegen
Copy link

fmegen commented Jul 19, 2018

iOS is on our list, but there is currently no estimated date.

@saroup
Copy link

saroup commented Oct 10, 2018

I had the same issue and followed the links that @fmegen mentions above. However, now I am running into cannot resolve symbol for:
import com.microsoft.cognitiveservices.speech.SessionEventType;
import com.microsoft.cognitiveservices.speech.SpeechFactory;
import com.microsoft.cognitiveservices.speech.util.Task;
import com.microsoft.cognitiveservices.speech.util.TaskRunner;

I am using implementation 'com.microsoft.cognitiveservices.speech:client-sdk:1.0.0'

@fmegen
Copy link

fmegen commented Oct 11, 2018

@saroup please update your code as these types are no longer available with the speech sdk 1.0.0,
in particular:
the speechfactory has been removed. just new SpeechRecognizer() instead.
SpeechConfig and AudioConfig replace the old from*() functions of the speech factory.
Task now uses the standard java tasks.
Session event type has been replaced with the independent events instead of a flag.

hope that helps

kind regards,
friedel

@saroup
Copy link

saroup commented Oct 11, 2018

@fmegen thanks for your reply. Yes I did figure that much but the code in this repo needs to be updated accordingly. MainActivity.java still have old references.

@fmegen
Copy link

fmegen commented Oct 11, 2018

@saroup,
This sample repository refers to the Speech Devices SDK. The Speech Devices SDK does indeed use an earlier version of the Speech SDK.

please use the samples for the speech SDK which you can find here
https://github.com/Azure-Samples/cognitive-services-speech-sdk

@saroup
Copy link

saroup commented Oct 11, 2018

I indeed want to use the Speech Devices SDK but I missed this information about it using an earlier version of the speech SDK. Which should be included in the missing jar file that we refer to in this issue, right?

@saroup
Copy link

saroup commented Oct 11, 2018

@fmegen I was able to compile the app. However, when I run it on an ARM emulator I get this runtime error:
E/AndroidRuntime: FATAL EXCEPTION: main
Process: com.microsoft.coginitiveservices.speech.samples.sdsdkstarterapp, PID: 12566
java.lang.UnsatisfiedLinkError: dalvik.system.PathClassLoader[DexPathList[[zip file "/data/app/com.microsoft.coginitiveservices.speech.samples.sdsdkstarterapp-2/base.apk", zip file "/data/app/com.microsoft.coginitiveservices.speech.samples.sdsdkstarterapp-2/split_lib_dependencies_apk.apk", zip file "/data/app/com.microsoft.coginitiveservices.speech.samples.sdsdkstarterapp-2/split_lib_slice_0_apk.apk", zip file "/data/app/com.microsoft.coginitiveservices.speech.samples.sdsdkstarterapp-2/split_lib_slice_1_apk.apk", zip file "/data/app/com.microsoft.coginitiveservices.speech.samples.sdsdkstarterapp-2/split_lib_slice_2_apk.apk", zip file "/data/app/com.microsoft.coginitiveservices.speech.samples.sdsdkstarterapp-2/split_lib_slice_3_apk.apk", zip file "/data/app/com.microsoft.coginitiveservices.speech.samples.sdsdkstarterapp-2/split_lib_slice_4_apk.apk", zip file "/data/app/com.microsoft.coginitiveservices.speech.samples.sdsdkstarterapp-2/split_lib_slice_5_apk.apk", zip file "/data/app/com.microsoft.coginitiveservices.speech.samples.sdsdkstarterapp-2/split_lib_slice_6_apk.apk", zip file "/data/app/com.microsoft.coginitiveservices.speech.samples.sdsdkstarterapp-2/split_lib_slice_7_apk.apk", zip file "/data/app/com.microsoft.coginitiveservices.speech.samples.sdsdkstarterapp-2/split_lib_slice_8_apk.apk", zip file "/data/app/com.microsoft.coginitiveservices.speech.samples.sdsdkstarterapp-2/split_lib_slice_9_apk.apk"],nativeLibraryDirectories=[/data/app/com.microsoft.coginitiveservices.speech.samples.sdsdkstarterapp-2/lib/arm, /system/lib, /vendor/lib]]] couldn't find "libMicrosoft.CognitiveServices.Speech.java.bindings.so"
at java.lang.Runtime.loadLibray"

Do you know why can this be happening? It seems to be some mismatch in the libraries I am using.

@fmegen
Copy link

fmegen commented Oct 12, 2018

I will follow up with more details.

@wilsonchua20
Copy link

how do i use speechonfig and audioconfig classes?

@wolfma61
Copy link
Contributor

@wilsonchua20 - probably a different issue you shouldn't just attach to an open issue.
Search for SpeechConfig or AudioConfig in the samples. It is being used at various places.
If you have a specific problem. please open a new issue with details
thx
Wolfgang

@BlueAnthony
Copy link

There is still no "com.microsoft.cognitiveservices.speech.jar".

@fmegen
Copy link

fmegen commented Aug 5, 2019

@BlueAnthony could you please elaborate more about your configuration setup. thanks!

@deepakgarg444
Copy link

deepakgarg444 commented Oct 15, 2019

Hi, i tried using microsoft speech service, but it says
Missing artifact com.microsoft.cognitiveservices.speech:client-sdk:jar:1.7.0
I am using maven dependencies from this sample:
https://github.com/Azure-Samples/cognitive-services-speech-sdk/blob/master/quickstart/java-jre/pom.xml
Am i missing something here

@mahilleb-msft
Copy link

Hi @deepakgarg444, what is the device / OS you're using this with? This repository is about the Speech Devices SDK (https://docs.microsoft.com/en-us/azure/cognitive-services/speech-service/speech-devices-sdk-android-quickstart) while the reference you're pointing to is for related to the Speech SDK (https://docs.microsoft.com/en-us/azure/cognitive-services/speech-service/quickstart-java-jre).

@deepakgarg444
Copy link

Hi @mahilleb-msft , Actually i want to use Speech SDK for Speech to text conversion on macOS.
So, i was checking this sample for Speech SDK, and from here i tried adding this dependency:

<repositories>
   <repository>
     <id>maven-cognitiveservices-speech</id>
     <name>Microsoft Cognitive Services Speech Maven Repository</name>
     <url>https://csspeechstorage.blob.core.windows.net/maven/</url>
   </repository>
 </repositories>
 <!-- </repositories> -->
 <!-- <dependencies> -->
 <dependencies>
   <dependency>
     <groupId>com.microsoft.cognitiveservices.speech</groupId>
     <artifactId>client-sdk</artifactId>
     <version>1.7.0</version>
   </dependency>
 </dependencies>

But it is giving me this error:
Missing artifact com.microsoft.cognitiveservices.speech:client-sdk:jar:1.7.0

@deepakgarg444
Copy link

(https://docs.microsoft.com/en-us/azure/cognitive-services/speech-service/quickstart-java-jre)
Here also, it is asking to add the dependencies mentioned above for macOS.

@mahilleb-msft
Copy link

@deepakgarg444 - could you file a fresh issue here please: https://github.com/Azure-Samples/cognitive-services-speech-sdk/issues.
This will get more / the right visibility ...

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

8 participants