๋ณธ๋ฌธ ๋ฐ”๋กœ๊ฐ€๊ธฐ

Platform/โ˜๏ธ Google Cloud

(4)
โ˜๏ธ Google Cloud * Speech to Text ์•Œ์•„๋ณด๊ธฐ ์ด ๊ธ€์—์„œ ์„ค๋ช…ํ•œ ๋‚ด์šฉ์˜ ์˜ˆ์ œ๋Š” Speech To Text ๋ฒ„์ „ 1.9X.XX, v1p1beta1 workspace๋ฅผ ์‚ฌ์šฉํ•˜๊ณ  ์žˆ์Šต๋‹ˆ๋‹ค. ๋ฒ„์ „๋ณ„๋กœ ํฌํ•จํ•˜๊ณ  ์žˆ๋Š” ๊ธฐ๋Šฅ์ด ์ƒ์ดํ•˜๋‹ˆ ์‹คํ–‰ํ•˜์‹ค ๋•Œ ๊ผญ ์ฐธ๊ณ ํ•˜์„ธ์š”! ๋ฐ”๋กœ ๋ˆ์„ ๋‚ด์ง€ ์•Š์•„๋„ $300์œผ ๋ฌด๋ฃŒ ํฌ๋ ˆ๋”ง์„ 12๊ฐœ์›”๊ฐ„ ์‚ฌ์šฉํ•  ์ˆ˜ ์žˆ์œผ๋ฉฐ, ๋ฌด๋ฃŒ ํ‰๊ฐ€ํŒ ์ข…๋ฃŒ ํ›„ ์ž๋™ ์ฒญ๊ตฌ๋˜์ง€ ์•Š๋Š”๋‹ค๊ณ  ํ•œ๋‹ค. ์‹ ์šฉ์นด๋“œ๋ฅผ ๋“ฑ๋กํ•˜๊ฒŒ ๋˜์–ด ์žˆ๋Š”๋ฐ ์ด๋Š” ์ž๋™ ๊ฐ€์ž…์„ ๋ฐฉ์ง€ํ•˜๊ธฐ ์ดํ•ด์„œ์ด๋ฉฐ ์‚ฌ์šฉ์ž๊ฐ€ ์œ ๋ฃŒ ๊ณ„์ •์œผ๋กœ ์ง์ ‘ ์—…๊ทธ๋ ˆ์ด๋“œํ•˜์ง€ ์•Š๋Š” ํ•œ ์š”๊ธˆ์ด ์ฒญ๊ตฌ๋˜์ง€ ์•Š๋Š”๋‹ค๊ณ  ๋‚˜์™€์žˆ๋‹ค. ํด๋ผ์šฐ๋“œ ์Œ์„ฑ ํ…์ŠคํŠธ Cloud Speech-to-Text ์Œ์„ฑ ํ…์ŠคํŠธ(STT) ๋ณ€ํ™˜์€ ๋จธ์‹ ๋Ÿฌ๋‹(๊ธฐ๊ณ„ํ•™์Šต)์„ ์‚ฌ์šฉํ•˜๋ฉฐ ์งง๊ฑฐ๋‚˜ ๊ธด ํ˜•์‹์˜ ์˜ค๋””์˜ค๋ฅผ ์‚ฌ์šฉํ•  ์ˆ˜ ์žˆ๋‹ค. Speech-to-text conversion power..
โ˜๏ธ Google Cloud * ํ…์ŠคํŠธ๋ฅผ ์ฝ์–ด์ฃผ๊ฒ ๋‹ˆ? for Python Text to Speach๋Š” 2018-06์›” ํ˜„์žฌ Protocol, Java, Node.JS, Python ์œผ๋กœ ์‚ฌ์šฉ๊ฐ€๋Šฅํ•ฉ๋‹ˆ๋‹ค. ์ด ํฌ์ŠคํŠธ์—์„œ๋Š” Python์œผ๋กœ ์‚ฌ์šฉํ•˜๋Š” ๋ฐฉ๋ฒ•์„ ํฌ์ŠคํŒ… ํ•˜์˜€์Šต๋‹ˆ๋‹ค. ์‚ฌ์šฉ ์ˆœ์„œ๋Š” Python ์™ธ์˜ ๋‹ค๋ฅธ ์–ธ์–ด๋„ ๋™์ผํ•˜๊ธฐ์— ์ˆœ์„œ๋งŒ ๋ณด์‹œ๊ณ , Java, Node.JS ๊ฐ™์€ ๊ฒฝ์šฐ ์•„๋ž˜ #์ฐธ์กฐ๋‚ด์šฉ์„ ํ™•์ธํ•˜์„ธ์š”. Google Cloud์˜ ๊ธฐ๋Šฅ์„ ์‚ฌ์šฉํ•˜๊ธฐ ์œ„ํ•ด์„œ๋Š” ๊ธฐ๋ณธ์ ์œผ๋กœ ๋‹ค์Œ๊ณผ ๊ฐ™์€ ์ ˆ์ฐจ๊ฐ€ ๋จผ์ € ์ด๋ฃจ์–ด์ ธ์•ผ ํ•ฉ๋‹ˆ๋‹ค. ๐Ÿ‘‰ Before Start Google Cloud Library ์‚ฌ์šฉ๋œ Package์˜ variable, method ์ •๋ณด๋ฅผ ์•Œ๊ณ  ์‹ถ์œผ๋ฉด ๋งํฌ๋ฅผ ์ฐธ์กฐํ•˜์„ธ์š”! Text To Speech ๋ผ์ด๋ธŒ๋Ÿฌ๋ฆฌ ์‚ฌ์šฉ ์ „ ํ˜น์‹œ๋ผ๋„ Google Cloud๋ฅผ ์‚ฌ์šฉํ•˜๊ธฐ ์œ„ํ•œ ๊ธฐ๋ณธ์ธ์ฆ์„ ํ•˜์ง€ ์•Š์•˜๋‹ค..
โ˜๏ธ Google Cloud * STT ์ธ์‹๋ฅ ์„ ๊ฐœ์„ ๋ณด์ž 1/3 ์ธ์‹๋ฅ ์ด ๋‚˜์˜์ง„ ์•Š์ง€๋งŒ ํŠน์ • ๋ถ€๋ถ„์—์„œ ์ธ์‹๋ฅ ์ด ๋งŽ์ด ๋–จ์–ด์ง€๊ณค ํ•œ๋‹ค. Watson STT๋Š” ๋ฐ์ดํ„ฐ๋ฅผ ํ•™์Šต์‹œํ‚ฌ ์ˆ˜ ์žˆ๋„๋ก ์„œ๋น„์Šค๋ฅผ ์ œ๊ณตํ•œ๋‹ค๊ณ  ์•Œ๊ณ  ์žˆ๋‹ค. ๊ทธ๋ ‡๋‹ค๋ฉด Google STT๋Š” ์–ด๋–จ๊นŒ? ์‚ฌ์šฉ์ž๊ฐ€ ์ง์ ‘ ํ•™์Šต์‹œํ‚ค๋Š” ๊ฒƒ์€ ์•„๋‹ˆ์ง€๋งŒ Google Cloud๋กœ data๋ฅผ ๋ณด๋‚ด ์‚ฌ์šฉ์ž์˜ data๋ฅผ ํ•™์Šต์‹œํ‚ฌ ์ˆ˜ ์žˆ๋‹ค. ๊ทธ ์™ธ์—๋„ ๋ช‡๊ฐ€์ง€ ์ธ์‹๋ฅ ์ด ์ข‹์•„์ง€๋Š” ์กฐ๊ฑด(?) ์ƒํ™ฉ(?) ๋“ค์ด ์žˆ๋‹ค๊ณ  ํ•˜๋‹ˆ ์‚ดํŽด๋ณด๋„๋ก ํ•˜์ž. 1. Sampling rate Setting SampleRateHertz ์˜ต์…˜์œผ๋กœ ์˜ค๋””์˜ค Samling rate๋ฅผ ์ง€์ •ํ•ฉ๋‹ˆ๋‹ค. ์ž…๋ ฅ์œผ๋กœ ์ „๋‹ฌ๋˜๋Š” data์™€ ๊ฐ™์€ ํ˜•์‹์„ ์‚ฌ์šฉํ•ด์•ผํ•˜๋ฉฐ Sampling rate ์ง€์› ๋ฒ”์œ„๋Š” 8000Hz ~ 48000Hz ์ž…๋‹ˆ๋‹ค. SampleRateHertz ์˜ต์…˜์œผ๋กœ Samling ..
โ˜๏ธ Google Cloud * ํ”„๋กœ์ ํŠธ ์‚ญ์ œ ์ข€ ํ•˜์ž ใ… .ใ…  1. Choice Project ๋กœ๊ทธ์ธ ํ›„ ์—ฌ๋Ÿฌ์˜ ํ”„๋กœ์ ํŠธ ์ค‘์—์„œ ์‚ญ์ œ๋ฅผ ์ง„ํ–‰ํ•  ํ”„๋กœ์ ํŠธ๋ฅผ ์„ ํƒํ•œ๋‹ค. ๋‚˜๋Š” CookMap์„ ์„ ํƒํ•˜์˜€๋‹ค. 2. Setting and Utility ์šฐ์ธก ์ƒ๋‹จ์— ํ”„๋กœํ•„ ์•„์ด์ฝ˜ ์˜†์— ์žˆ๋Š” ๊ฐ€๋กœ ์  ์„ธ๊ฐœ ์•„์ด์ฝ˜( ์„ค์ • ๋ฐ ์œ ํ‹ธ๋ฆฌํ‹ฐ )๋ฅผ ํด๋ฆญํ•œ๋‹ค. ํ•˜๋‹จ์˜ ํ”„๋กœ์ ํŠธ ์„ค์ •์„ ๋ˆŒ๋Ÿฌ์ค€๋‹ค. 3. Delete ์ƒ๋‹จ์— ์ข…๋ฃŒ ์ฐฝ์„ ๋ˆ„๋ฅด๋ฉด ํ”„๋กœ์ ํŠธ ์ข…๋ฃŒ๋ฅผ ์œ„ํ•œ ํŒ์—…์ด ๋œน๋‹ˆ๋‹ค. ํ”„๋กœ์ ํŠธ ID๋ฅผ ์ž…๋ ฅํ•ด์„œ ์ข…๋ฃŒ๋ฅผ ํ™•์ธํ•ด ์ฃผ์„ธ์š”. 4. Done ํ”„๋กœ์ ํŠธ๋ฅผ ์ข…๋ฃŒํ•˜๋Š” ์ค‘์ด๋ผ๋Š” ์•ˆ๋‚ด ์ฐฝ์ด ์ธํ„ฐ๋„ท ์ฐฝ ํ•˜๋‹จ์— ๋–ด๋‹ค๊ฐ€, ์ตœ์ข…์ ์œผ๋กœ ํ”„๋กœ์ ํŠธ ์‚ญ์ œ ๋Œ€๊ธฐ ์ค‘์ด๋ผ๋Š” ํŒ์—… ์ฐฝ์ด ๋œจ๋ฉด์„œ ํ™”๋ฉด์ด ์ „ํ™˜๋˜๋ฉด ์‚ญ์ œ ์™„๋ฃŒ์ž…๋‹ˆ๋‹ค.