ich zur Zeit der Verwendung von IBM Watson Text-to-Speech-API bin zu vermeiden, von Java SDKwas alle sind Symbole nicht von Watson-Dienst unterstützt BadRequestException
-Code als
TextToSpeech textToSpeech = new TextToSpeech();
textToSpeech.setUsernameAndPassword(username, password);
ServiceCall<InputStream> inputStreamServiceCall = textToSpeech.synthesize(text, Voice.EN_ALLISON, AudioFormat.OGG);
InputStream in = inputStreamServiceCall.execute();
folgt Während Text in Sprache umzuwandeln immer folgende Ausnahme
com.ibm.watson.developer_cloud.service.exception.BadRequestException: at com.ibm.watson.developer_cloud.service.WatsonService.processServiceCall(WatsonService.java:416) ~[java-sdk-3.3.0.jar:na] at com.ibm.watson.developer_cloud.service.WatsonService$1.execute(WatsonService.java:179) ~[java-sdk-3.3.0.jar:na]
com.ibm.watson.developer_cloud.service.WatsonService processServiceCall SEVERE: GET https://stream.watsonplatform.net/text-to-speech/api/v1/synthesize?text=Question%20%20%3Cbreak%20time%3D%221s%22/%3E%20Use%20the%20figure%20below%20to%20answer%20the%20following%20question.%20If%20AC||DE,%20which%20of%20the%20following%20justifies%20%CE%94ABC%20~%20%CE%94DBE?%20%20%3Cbreak%20time%3D%221s%22/%3E%20%20Answer%20Choices%20%20%20%3Cbreak%20time%3D%221s%22/%3E%20%20Choice%20A%20%20%3Cbreak%20time%3D%221s%22/%3E%20%20%20Definition%20of%20Similar%20Triangles%20%20%20%3Cbreak%20time%3D%221s%22/%3E%20%20Choice%20B%20%20%3Cbreak%20time%3D%221s%22/%3E%20%20%20SAS%20Similarity%20Theorem%20%20%20%3Cbreak%20time%3D%221s%22/%3E%20%20Choice%20C%20%20%3Cbreak%20time%3D%221s%22/%3E%20%20%20SSS%20Similarity%20Theorem%20%20%20%3Cbreak%20time%3D%221s%22/%3E%20%20Choice%20D%20%20%3Cbreak%20time%3D%221s%22/%3E%20%20%20AA%20Similarity%20Postulate%20&voice=en-US_AllisonVoice&accept=audio/ogg;%20codecs%3Dopus , status: 400, error:
ich dieses Problem gelöst haben durch folgende Symbole ersetzen „“ © - '' ▒ „{} |. '\ mit Platz
Bitte schlagen Sie vor, welche Symbole vom Watson Service nicht unterstützt werden.