Class com.shengzhiai.yugu.stcompat.TtsClientTest

9

tests

0

failures

0

ignored

0.485s

duration

100%

successful

Tests

Test Duration Result
argumentsAndThreads 0.041s passed
asyncDeliversOnTheMainThread 0.082s passed
bodyCarriesOnlyTheFieldsSetAndIsSignedWithThem 0.040s passed
createFromTheEngineUsesItsKeysAddressAndTimeouts 0.050s passed
createNeedsAnInitialisedEngineOrCredentials 0.051s passed
oneInfoLinePerCallWithoutSecretsOrText 0.036s passed
platformAndNetworkErrorsBecomeYuguApiException 0.063s passed
retriesReuseTheIdempotencyKeyAndTheGivenKeyIsUsed 0.047s passed
urlsAreResolvedAgainstTheBase 0.075s passed

Standard error

D/YuguStCompat: POST http://127.0.0.1:8080/api/v1/tts/generate attempt 1/3 key=b8f6eec842044b768fd01c7d7f6d375a appKey=ak*** signed=[text]
I/YuguStCompat: tts status=ok attempts=1 ms=6
D/YuguStCompat: POST http://127.0.0.1:8080/api/v1/tts/generate attempt 1/3 key=6a946df917d34bccbceb8803d3d10544 appKey=ak*** signed=[text]
I/YuguStCompat: tts status=ok attempts=1 ms=0
D/YuguStCompat: POST http://127.0.0.1:8080/api/v1/tts/generate attempt 1/3 key=094b16aef49b47da9503111dacd2463f appKey=ak*** signed=[text]
I/YuguStCompat: tts status=ok attempts=1 ms=1
D/YuguStCompat: POST http://127.0.0.1:8080/api/v1/tts/generate attempt 1/3 key=39a0074855ac4d1caaf627cac5e06954 appKey=ak*** signed=[text]
I/YuguStCompat: tts status=ok attempts=1 ms=1
D/YuguStCompat: POST http://127.0.0.1:8080/api/v1/tts/generate attempt 1/3 key=854d3ec8d5214863832b4b5cf60e4ed9 appKey=ak*** signed=[text]
I/YuguStCompat: tts status=ok attempts=1 ms=1
D/YuguStCompat: POST http://127.0.0.1:8080/api/v1/tts/generate attempt 1/3 key=f871a76b81e04f738dceaf6272eec451 appKey=ak*** signed=[text]
I/YuguStCompat: tts status=ok attempts=1 ms=1
D/YuguStCompat: POST http://127.0.0.1:8080/api/v1/tts/generate attempt 1/3 key=0a20c8c23a9848f8a810669ccb4bbf2c appKey=ak*** signed=[text]
I/YuguStCompat: tts status=ok attempts=1 ms=1
D/YuguStCompat: POST https://open.shengzhiai.com/api/v1/tts/generate attempt 1/3 key=f71a6d21a39e4fdb907453ea0b64ba38 appKey=ak*** signed=[text]
I/YuguStCompat: tts status=error code=2003 http=401 attempts=1 ms=1
D/YuguStCompat: POST https://open.shengzhiai.com/api/v1/tts/generate attempt 1/3 key=0189313eda2445359ccf932295ededcc appKey=ak*** signed=[text]
I/YuguStCompat: tts status=error code=40300 http=200 attempts=1 ms=1
D/YuguStCompat: POST https://open.shengzhiai.com/api/v1/tts/generate attempt 1/3 key=3b2a6a8cdd6f4f45baec45a93c03baac appKey=ak*** signed=[text]
W/YuguStCompat: retry 1/2 in 227 ms: NETWORK_ERROR
D/YuguStCompat: POST https://open.shengzhiai.com/api/v1/tts/generate attempt 2/3 key=3b2a6a8cdd6f4f45baec45a93c03baac appKey=ak*** signed=[text]
W/YuguStCompat: retry 2/2 in 444 ms: NETWORK_ERROR
D/YuguStCompat: POST https://open.shengzhiai.com/api/v1/tts/generate attempt 3/3 key=3b2a6a8cdd6f4f45baec45a93c03baac appKey=ak*** signed=[text]
I/YuguStCompat: tts status=error code=20009 http=0 attempts=3 ms=2
D/YuguStCompat: POST https://open.shengzhiai.com/api/v1/tts/generate attempt 1/3 key=9cde9e9c8ce944a48b67097c4c095cdb appKey=ak*** signed=[text]
W/YuguStCompat: retry 1/2 in 177 ms: HTTP 429 code=42900
D/YuguStCompat: POST https://open.shengzhiai.com/api/v1/tts/generate attempt 2/3 key=9cde9e9c8ce944a48b67097c4c095cdb appKey=ak*** signed=[text]
W/YuguStCompat: retry 2/2 in 346 ms: HTTP 429 code=42900
D/YuguStCompat: POST https://open.shengzhiai.com/api/v1/tts/generate attempt 3/3 key=9cde9e9c8ce944a48b67097c4c095cdb appKey=ak*** signed=[text]
I/YuguStCompat: tts status=error code=20009 http=429 attempts=3 ms=1
D/YuguStCompat: POST https://open.shengzhiai.com/api/v1/tts/generate attempt 1/3 key=22b6fc63ebce4481aa1432bd9567c57b appKey=ak*** signed=[text]
I/YuguStCompat: tts status=error code=90005 http=200 attempts=1 ms=1
D/YuguStCompat: POST https://open.shengzhiai.com/api/v1/tts/generate attempt 1/3 key=9fd307f0604a4197a934b4301ab34192 appKey=ak*** signed=[text]
I/YuguStCompat: tts status=error code=90005 http=200 attempts=1 ms=1
D/YuguStCompat: POST https://open.shengzhiai.com/api/v1/tts/generate attempt 1/3 key=e443bff3d28f415f938bc096c4005481 appKey=ak*** signed=[text]
I/YuguStCompat: tts status=error code=40400 http=404 attempts=1 ms=1
D/YuguStCompat: POST https://open.shengzhiai.com/api/v1/tts/generate attempt 1/3 key=e518c1193f7842969981246a9a637f9e appKey=ak*** signed=[text]
I/YuguStCompat: tts status=error code=90011 http=0 attempts=1 ms=0
D/YuguStCompat: POST https://open.shengzhiai.com/api/v1/tts/generate attempt 1/3 key=eebdbee61fa64c938e908755c3dbb87a appKey=ak-t*** signed=[text]
I/YuguStCompat: tts status=ok attempts=1 ms=1
D/YuguStCompat: POST https://open.shengzhiai.com/api/v1/tts/generate attempt 1/3 key=bad12a7d62a248318088a3f6371fcbf0 appKey=ak-t*** signed=[text]
I/YuguStCompat: tts status=error code=40001 http=400 attempts=1 ms=0
I/YuguStCompat: engine ready: appKey=engi*** base=http://10.0.0.1:8080 version=yugu-stkouyu-compat/2.3.0 (api 1.0.62)
D/YuguStCompat: POST http://10.0.0.1:8080/api/v1/tts/generate attempt 1/3 key=0ba9153868ac44038fb4937261cde10e appKey=engi*** signed=[text]
I/YuguStCompat: tts status=ok attempts=1 ms=1
D/YuguStCompat: POST https://sandbox.example.com/api/v1/tts/generate attempt 1/3 key=7e88508213fe4fc8bcad1a4444654504 appKey=engi*** signed=[text]
I/YuguStCompat: tts status=ok attempts=1 ms=0
D/YuguStCompat: POST https://sandbox.example.com/api/v1/tts/generate attempt 1/3 key=72483c9f556a4a3fa69dc5b04e2fda54 appKey=engi*** signed=[text]
I/YuguStCompat: tts status=ok attempts=1 ms=0
D/YuguStCompat: POST https://open.shengzhiai.com/api/v1/tts/generate attempt 1/3 key=4ed884a5586b41c78b6b2b0e029465a1 appKey=ak*** signed=[text, language, voice, format, speed, pitch, volume, sampleRate, emotion, pinyin, genre]
I/YuguStCompat: tts status=ok attempts=1 ms=1
D/YuguStCompat: POST https://open.shengzhiai.com/api/v1/tts/generate attempt 1/3 key=62a7044e735d4c68a890533c8b196b56 appKey=ak*** signed=[text]
I/YuguStCompat: tts status=ok attempts=1 ms=1
D/YuguStCompat: POST https://open.shengzhiai.com/api/v1/tts/generate attempt 1/3 key=77c5296703bf47439299e736de866f1a appKey=ak*** signed=[text]
I/YuguStCompat: tts status=ok attempts=1 ms=1
D/YuguStCompat: POST https://open.shengzhiai.com/api/v1/tts/generate attempt 1/3 key=732a4e983ad74bb8ae235dc2b4633033 appKey=ak*** signed=[text]
I/YuguStCompat: tts status=error code=40001 http=400 attempts=1 ms=1
D/YuguStCompat: POST https://open.shengzhiai.com/api/v1/tts/generate attempt 1/3 key=order-42 appKey=ak*** signed=[text]
W/YuguStCompat: retry 1/2 in 227 ms: HTTP 503 code=50200
D/YuguStCompat: POST https://open.shengzhiai.com/api/v1/tts/generate attempt 2/3 key=order-42 appKey=ak*** signed=[text]
W/YuguStCompat: retry 2/2 in 444 ms: TIMEOUT
D/YuguStCompat: POST https://open.shengzhiai.com/api/v1/tts/generate attempt 3/3 key=order-42 appKey=ak*** signed=[text]
I/YuguStCompat: response replayed for Idempotency-Key order-42
I/YuguStCompat: tts status=ok attempts=3 replayed ms=2