음성 API 합성 샘플을 테스트 하고 있는데요. (활성화도 되어 있음)
- 연결은 되지만 중간에 아래와 같은 메시지가 나오면 … -d xml 부분도 커맨드가 없다고 나옵니다. 이유를 알고 싶습니다.
curl -v -X POST “https://kakaoi-newtone-openapi.kakao.com/v1/synthesize” \
-H “Content-Type: application/xml”
-H “Authorization: KakaoAK 82557963e8b885aafd0e1c09349bd7e4” \
- Trying 121.53.202.215:443…
- TCP_NODELAY set
- Connected to kakaoi-newtone-openapi.kakao.com (121.53.202.215) port 443 (#0)
- ALPN, offering http/1.1
- Cipher selection: ALL:!EXPORT:!EXPORT40:!EXPORT56:!aNULL:!LOW:!RC4:@STRENGTH
- successfully set certificate verify locations:
- CAfile: /etc/pki/tls/certs/ca-bundle.crt
CApath: none - TLSv1.2 (OUT), TLS header, Certificate Status (22):
- TLSv1.2 (OUT), TLS handshake, Client hello (1):
- TLSv1.2 (IN), TLS handshake, Server hello (2):
- TLSv1.2 (IN), TLS handshake, Certificate (11):
- TLSv1.2 (IN), TLS handshake, Server finished (14):
- TLSv1.2 (OUT), TLS handshake, Client key exchange (16):
- TLSv1.2 (OUT), TLS change cipher, Change cipher spec (1):
- TLSv1.2 (OUT), TLS handshake, Finished (20):
- TLSv1.2 (IN), TLS change cipher, Change cipher spec (1):
- TLSv1.2 (IN), TLS handshake, Finished (20):
- SSL connection using TLSv1.2 / AES256-SHA
- ALPN, server accepted to use http/1.1
- Server certificate:
- subject: C=KR; ST=Jeju-do; L=Jeju-si; O=Kakao Corp.; CN=*.kakao.com
- start date: Sep 10 00:00:00 2020 GMT
- expire date: Oct 11 12:00:00 2021 GMT
- subjectAltName: host “kakaoi-newtone-openapi.kakao.com” matched cert’s “*.kakao.com”
- issuer: C=US; O=DigiCert Inc; OU=www.digicert.com; CN=Thawte TLS RSA CA G1
- SSL certificate verify ok.
POST /v1/synthesize HTTP/1.1
Host: kakaoi-newtone-openapi.kakao.com
User-Agent: curl/7.65.0
Accept: /
Content-Type: application/xml
Authorization: KakaoAK 82557963e8b885aafd0e1c09349bd7e4
- Mark bundle as not supporting multiuse
< HTTP/1.1 204 No Content
< Server: openresty
< Date: Wed, 06 Jan 2021 10:58:54 GMT
< Content-Type: audio/mpeg
< Connection: keep-alive
< Access-Control-Allow-Origin: *
< Vary: Origin
< X-Tts-Length: 0
< X-Tts-Session-Id: f43c2b5983475d88fc3463219b11ade534414811
< X-Tts-Text:
< - Connection #0 to host kakaoi-newtone-openapi.kakao.com left intact
- Closing connection -1
curl: (3) URL using bad/illegal format or missing URL
✘
/home/mobaxterm > -d ' 그는 그렇게 말했습니다.
잘 지냈어? 나도 잘 지냈어.
금요일이 좋아요. ’ > result.mp3