This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import requests | |
| import time | |
| API_TOKEN = {{your token here}} | |
| HEADERS = {'Authorization': f'Bearer {API_TOKEN}'} | |
| # get my actor | |
| r = requests.get('https://typecast.ai/api/actor', headers=HEADERS) | |
| my_actors = r.json()['result'] |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 11์ 7์ผ ์คํ (ํ์ง๋ง ์ค์ ์ผ ์๋ ์๋?) ๋ด์ค์ ๋๋ค. | |
| <break time="1000ms" /> | |
| <unknown time="1000ms" /> | |
| ์ ๋์ ํ๋ฃจ ์๋๊ณ ์ ๊ตญ ๋๋ถ๋ถ ์ง์ญ์ ๊ธฐ์จ์ด ์ด์ ๋ณด๋ค 10๋ ๋๊ฒ ๋จ์ด์ก์ต๋๋ค. | |
| ๋ด์ผ์ ์ค๋๋ณด๋ค ๋ ์์ํ๊ฒ ๊ณ ๋ชจ๋ ๊ธฐ์จ์ด ์กฐ๊ธ ์ค๋ฅด์ง๋ง, ์ฃผ๋ง๋ถํฐ ๋ค์ ์ถ์์ง ์ ๋ง์ ๋๋ค. | |
| <break time="1000ms" /> | |
| ๋ณ์์์ ์น๋ฃ๋ฅผ ๋ฐ๋ค๊ฐ ๋๋ง์น ํน์๊ฐ๋ ํผ์์ ๊น๊ธธ์๊ฐ ๋์ฃผ 70์ฌ ์๊ฐ ๋ง์ ์ด์ ฏ๋ฐค ๊ฒฝ๊ธฐ๋ ์์ ๋ถ์์ ๋ถ์กํ์ต๋๋ค. | |
| ๊น๊ธธ์๋ ์ฒดํฌ ์งํ "๋์ฃผ๊ณํ์ด๋ ์กฐ๋ ฅ์๊ฐ ์์๋ค"๊ณ ์ฃผ์ฅํ์ต๋๋ค. | |
| <break time="1000ms" /> | |
| ์ ํ์ฑ ๊ตญ๊ฐ๋ํ ๋จํํฌ ์จ๊ฐ ๊ฒฐํผ ์๋์๋ ์ ์ ์กฐ ์จ์ ์ฌ๊ธฐ ํ์ ๊ณต๋ฒ์ผ๋ก ์ ๊ฑด๋ผ 10์๊ฐ ๊ฐ๊น์ด ์กฐ์ฌ๋ฅผ ๋ฐ๊ณ ๊ท๊ฐํ์ต๋๋ค. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import sys | |
| import base64 | |
| import hmac | |
| from hashlib import sha1 | |
| from datetime import datetime, timezone | |
| # https://docs.aws.amazon.com/ko_kr/AmazonS3/latest/userguide/RESTAuthentication.html | |
| def make_signature(timestamp, company, endpoint, method, secret_key): | |
| string_to_signin = '\n'.join([ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import os | |
| import time | |
| import requests | |
| API_TOKEN = {{your API token}} | |
| REFERENCE_AUDIO_FILENAME = {{your audio filename}} | |
| HEADERS = {'Authorization': f'Bearer {API_TOKEN}'} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import requests | |
| API_TOKEN = {{your token here}} | |
| HEADERS = {'Authorization': f'Bearer {API_TOKEN}'} | |
| # get my actor | |
| r = requests.get('https://typecast.ai/api/actor', headers=HEADERS) | |
| my_actors = r.json()['result'] | |
| my_first_actor = my_actors[0] | |
| my_first_actor_id = my_first_actor['actor_id'] |
OlderNewer