Showing
17 changed files
with
86 additions
and
2 deletions
LICENSE.txt
0 → 100644
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
public/audios/0.mp3
0 → 100644
No preview for this file type
public/audios/1.mp3
0 → 100644
No preview for this file type
public/audios/2.mp3
0 → 100644
No preview for this file type
public/audios/3.mp3
0 → 100644
No preview for this file type
public/audios/Command_makeAudio.txt
0 → 100644
1 | +curl -v -X POST "https://kakaoi-newtone-openapi.kakao.com/v1/synthesize" \ | ||
2 | +-H "Content-Type: application/xml" \ | ||
3 | +-H "Authorization: {KAKAO API KEY}" \ | ||
4 | +-d '<speak><voice name="WOMAN_READ_CALM">정상</voice> </speak>' > 0.mp3 | ||
5 | + | ||
6 | +curl -v -X POST "https://kakaoi-newtone-openapi.kakao.com/v1/synthesize" \ | ||
7 | +-H "Content-Type: application/xml" \ | ||
8 | +-H "Authorization: {KAKAO API KEY}" \ | ||
9 | +-d '<speak><voice name="WOMAN_READ_CALM">마스크를 정확히 착용하세요.</voice></speak>' > 1.mp3 | ||
10 | + | ||
11 | +curl -v -X POST "https://kakaoi-newtone-openapi.kakao.com/v1/synthesize" \ | ||
12 | +-H "Content-Type: application/xml" \ | ||
13 | +-H "Authorization: {KAKAO API KEY}" \ | ||
14 | +-d '<speak><voice name="WOMAN_READ_CALM">시작</voice> </speak>' > 4.mp3 |
public/images/0.jpg
0 → 100644
34.2 KB
public/images/1.jpg
0 → 100644
403 KB
public/images/2.jpg
0 → 100644
41.5 KB
1 | body { | 1 | body { |
2 | - padding: 50px; | 2 | + padding-top: 5px; |
3 | + padding-bottom: 20px; | ||
3 | font: 14px "Lucida Grande", Helvetica, Arial, sans-serif; | 4 | font: 14px "Lucida Grande", Helvetica, Arial, sans-serif; |
4 | } | 5 | } |
5 | 6 | ||
6 | a { | 7 | a { |
7 | color: #00B7FF; | 8 | color: #00B7FF; |
8 | } | 9 | } |
10 | + | ||
11 | +/* 헤더 */ | ||
12 | +header{ | ||
13 | + height:70px; | ||
14 | + background-image: linear-gradient(120deg, #a1c4fd 0%, #c2e9fb 100%); | ||
15 | + -webkit-box-shadow: inset 0 -2px 5px rgba(0,0,0,.1); | ||
16 | + box-shadow: inset 0 -2px 5px rgba(0,0,0,.1); | ||
17 | +} | ||
18 | + | ||
19 | +.header_name{ | ||
20 | + margin: 15px; | ||
21 | + margin-left : 30px; | ||
22 | + float: left; | ||
23 | + font-size: 30px ; | ||
24 | + color: white; | ||
25 | +} | ||
26 | + | ||
27 | +/* footer */ | ||
28 | +footer{ | ||
29 | + padding: 40px 0; | ||
30 | + color: #999; | ||
31 | + text-align: center; | ||
32 | + background-color: #f9f9f9; | ||
33 | + border-top: 1px solid #e5e5e5; | ||
34 | +} | ||
35 | + | ||
36 | +/* 메인 div를 나누기 위한 것. */ | ||
37 | +.box1{ | ||
38 | + float: left; | ||
39 | + width: 550px; | ||
40 | + padding:10px; | ||
41 | + margin:10px; | ||
42 | +} | ||
43 | + | ||
44 | +.box2{ | ||
45 | + display: inline-block; | ||
46 | + width: 35%; | ||
47 | + padding:10px; | ||
48 | + margin:10px; | ||
49 | + margin-left: 30px; | ||
50 | + | ||
51 | +} | ||
52 | + | ||
53 | +/* box2안의 이미지와 입력폼에 관한 css */ | ||
54 | +.alert_image{ | ||
55 | + width:100%; | ||
56 | +} | ||
57 | + | ||
58 | +.col-lg-6{ | ||
59 | + margin-top: 10px; | ||
60 | + width:100% | ||
61 | +} | ||
... | \ No newline at end of file | ... | \ No newline at end of file | ... | ... |
readme_img/1.png
0 → 100644
45.5 KB
readme_img/2.png
0 → 100644
89 KB
readme_img/3.png
0 → 100644
33.3 KB
readme_img/logo.png
0 → 100644
2.26 KB
... | @@ -3,7 +3,24 @@ var router = express.Router(); | ... | @@ -3,7 +3,24 @@ var router = express.Router(); |
3 | 3 | ||
4 | /* GET home page. */ | 4 | /* GET home page. */ |
5 | router.get('/', function(req, res, next) { | 5 | router.get('/', function(req, res, next) { |
6 | - res.render('index', { title: 'Express' }); | 6 | + res.render('index', { title: 'MWD' , url: "/images/1.jpg"}); |
7 | +}); | ||
8 | + | ||
9 | +/* predict() 의 결과를 querystring으로 받아 그것에 맞는 이미지와 음성파일을 보내준다. */ | ||
10 | +/* /data?id=n 의 형태로 id값을 전달해 준다. */ | ||
11 | +router.get('/data', function(req, res, next){ | ||
12 | + | ||
13 | + id = req.query.id; | ||
14 | + | ||
15 | + data = { | ||
16 | + image : "/images/"+id+".jpg", | ||
17 | + audio : "/audios/"+id+".mp3" | ||
18 | + } | ||
19 | + //데이터 확인 | ||
20 | + console.log(data); | ||
21 | + //보내주기. | ||
22 | + res.send(data); | ||
7 | }); | 23 | }); |
8 | 24 | ||
9 | module.exports = router; | 25 | module.exports = router; |
26 | + | ... | ... |
This diff is collapsed. Click to expand it.
-
Please register or login to post a comment