Class com.shengzhiai.yugu.stcompat.TtsClientTest

9

tests

0

failures

0

ignored

0.709s

duration

100%

successful

Tests

Test Duration Result
argumentsAndThreads 0.093s passed
asyncDeliversOnTheMainThread 0.091s passed
bodyCarriesOnlyTheFieldsSetAndIsSignedWithThem 0.054s passed
createFromTheEngineUsesItsKeysAddressAndTimeouts 0.073s passed
createNeedsAnInitialisedEngineOrCredentials 0.051s passed
oneInfoLinePerCallWithoutSecretsOrText 0.090s passed
platformAndNetworkErrorsBecomeYuguApiException 0.125s passed
retriesReuseTheIdempotencyKeyAndTheGivenKeyIsUsed 0.047s passed
urlsAreResolvedAgainstTheBase 0.085s passed

Standard error

D/YuguStCompat: POST http://127.0.0.1:8080/api/v1/tts/generate attempt 1/3 key=b757417454164f72872533c60685b498 appKey=ak*** signed=[text]
I/YuguStCompat: tts status=ok attempts=1 ms=2
D/YuguStCompat: POST http://127.0.0.1:8080/api/v1/tts/generate attempt 1/3 key=56310b103ebd440abf4b00f76654be27 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=fde739dc0d0d4d2d9d88401fdd0e6785 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=93a6618c08fb4ee7867824f2d30e9dec 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=c1c61459505744339a2eed586ca1e6c7 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=09b0b143b0e94660b956dfe135f78c42 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=23dbdd8edf2e4e7b9acf95c68e793d4e appKey=ak*** signed=[text]
I/YuguStCompat: tts status=ok attempts=1 ms=2
D/YuguStCompat: POST https://open.shengzhiai.com/api/v1/tts/generate attempt 1/3 key=749a464393a74896ae0c024d72f3bb15 appKey=ak*** signed=[text]
I/YuguStCompat: tts status=error code=2003 http=401 attempts=1 ms=3
D/YuguStCompat: POST https://open.shengzhiai.com/api/v1/tts/generate attempt 1/3 key=0a7c20c4ea7947008d970730dcae16e0 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=361dcf40457a4b92a304a813d647bb1e 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=361dcf40457a4b92a304a813d647bb1e 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=361dcf40457a4b92a304a813d647bb1e 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=c37cd4b37b9e4a0fb5f12e40c897cd52 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=c37cd4b37b9e4a0fb5f12e40c897cd52 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=c37cd4b37b9e4a0fb5f12e40c897cd52 appKey=ak*** signed=[text]
I/YuguStCompat: tts status=error code=20009 http=429 attempts=3 ms=2
D/YuguStCompat: POST https://open.shengzhiai.com/api/v1/tts/generate attempt 1/3 key=4ed2f728230c4a11a9c128cbe7d4024a 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=81386c42b3454bcbbd14e8574058f072 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=e2aec3eb28474277bd81c76c455d44e9 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=ea5cd4349e09426d9ae55d663d5aa19e appKey=ak*** signed=[text]
I/YuguStCompat: tts status=error code=90011 http=0 attempts=1 ms=1
D/YuguStCompat: POST https://open.shengzhiai.com/api/v1/tts/generate attempt 1/3 key=01799fde428f47238c1acbedfc34c234 appKey=ak-t*** 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=ac3e59d366844fe081abc848af51bc42 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=ec63ad45b2a64b2b9e6921a3afc9bb15 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=86273a6c97e54ec1a9e8090940b35697 appKey=engi*** signed=[text]
I/YuguStCompat: tts status=ok attempts=1 ms=2
D/YuguStCompat: POST https://sandbox.example.com/api/v1/tts/generate attempt 1/3 key=dd18dbd9468b4cad8567dd235f3e9fdf appKey=engi*** 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=ad4da3e458734a37931840f11569e599 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=17035081630b489c8c2d2c432d862c28 appKey=ak*** 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=3d8e4c8a5a1a4043aa3d12a3fb860fba 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=c6ec9832ea8c458792434c584f0e4f96 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=4