2017-03-22 7 views
0

私はAzureのBing Speech APIに問題があります。テキストの長さが1000文字を超えていて、音声が生成されない場合、テキストを生成する別の方法はありますか? SSML入力がサポートされているものよりも大きい場合に返されます -413エラーbing speech

HTTP/413 RequestEntityTooLargeは:ここでは

java.io.IOException: Server returned HTTP response code: 413 for URL: https://speech.platform.bing.com/synthesize at sun.net.www.protocol.http.HttpURLConnection.getInputStream0(Unknown Source) at sun.net.www.protocol.http.HttpURLConnection.getInputStream(Unknown Source) at sun.net.www.protocol.https.HttpsURLConnectionImpl.getInputStream(Unknown Source) at com.microsoft.cognitiveservices.ttssample.TTSService.Synthesize(TTSService.java:84) at com.microsoft.cognitiveservices.ttssample.TTSSample.main(TTSSample.java:86)

答えて

0

413が何を意味するのかである:ここでは

はエラーです。

https://www.microsoft.com/cognitive-services/en-us/speech-api/documentation/api-reference-rest/bingvoiceoutput

それは限界が何であるかを述べたが、いくつかの実験は、859文字の長さは877にはないが、動作していることを示し、ここで私は見つけることができません。限界はその中間にあるようだ。

だから、各リクエストで最大量のテキストを送信する必要があると思います。

関連する問題