Closed sonic18 closed 6 years ago
If anyone comes into this problem, the fix is pretty easy use compile 'com.ibm.watson.developer_cloud:java-sdk:3.9.1' instead of compile 'com.ibm.watson.developer_cloud:android-sdk'
inside the application's build.gradle
I have read the documentation and then I followed instructions on https://github.com/watson-developer-cloud/android-sdk
It seems that there certain imports which are not functioning, such as
import com.ibm.watson.developer_cloud.language_translator.v2.LanguageTranslator;
import com.ibm.watson.developer_cloud.language_translator.v2.model.Language;
import com.ibm.watson.developer_cloud.speech_to_text.v1.SpeechToText;
import com.ibm.watson.developer_cloud.speech_to_text.v1.model.RecognizeOptions;
import com.ibm.watson.developer_cloud.speech_to_text.v1.model.SpeechResults;
import com.ibm.watson.developer_cloud.speech_to_text.v1.websocket.BaseRecognizeCallback;
import com.ibm.watson.developer_cloud.text_to_speech.v1.TextToSpeech;
import com.ibm.watson.developer_cloud.text_to_speech.v1.model.Voice;
whilst imports such as "import com.ibm.watson.developer_cloud.android.library.audio.StreamPlayer;" do work.
have the libraries been moved? or has the structure of the waston speech-to-text cloud api libary changed? a thought which came to my mind is that maybe the github project has not been updated?
When looking for other imports it seems like somethings have been changed for example "import com.ibm.watson.developer_cloud.speech_to_text.v1.SpeechToText;" (import doesn't work,for me) at the moment the import options I found for audio is "import com.ibm.watson.developer_cloud.android.library.audio.*;" (this does not contain the "SpeechToText" import)
Any input is greatly appreciated :)