์ด ํ์ด์ง์์๋ Speech-to-Text API์ Cloud ํด๋ผ์ด์ธํธ ๋ผ์ด๋ธ๋ฌ๋ฆฌ๋ฅผ ์์ํ๋ ๋ฐฉ๋ฒ์ ๋ณด์ฌ์ค๋๋ค. ํด๋ผ์ด์ธํธ ๋ผ์ด๋ธ๋ฌ๋ฆฌ๋ฅผ ์ฌ์ฉํ๋ฉด ์ง์๋๋ ์ธ์ด๋กGoogle Cloud API์ ์ฝ๊ฒ ์ก์ธ์คํ ์ ์์ต๋๋ค. ์์ ์์ฒญ์ ์๋ฒ์ ๋ณด๋ดGoogle Cloud API๋ฅผ ์ง์ ์ฌ์ฉํ ์ ์์ง๋ง ํด๋ผ์ด์ธํธ ๋ผ์ด๋ธ๋ฌ๋ฆฌ๋ ์์ฑํด์ผ ํ๋ ์ฝ๋ ์์ ํฌ๊ฒ ์ค์ฌ ์ฃผ๋ ๊ฐ์ํ ๊ธฐ๋ฅ์ ์ ๊ณตํฉ๋๋ค.
ํด๋ผ์ด์ธํธ ๋ผ์ด๋ธ๋ฌ๋ฆฌ ์ค๋ช ์์ Cloud ํด๋ผ์ด์ธํธ ๋ผ์ด๋ธ๋ฌ๋ฆฌ ๋ฐ ์ด์ Google API ํด๋ผ์ด์ธํธ ๋ผ์ด๋ธ๋ฌ๋ฆฌ์ ๋ํด ์์ธํ ์์๋ณด์ธ์.
ํด๋ผ์ด์ธํธ ๋ผ์ด๋ธ๋ฌ๋ฆฌ ์ค์น
C#
Visual Studio 2017 ์ด์์ ์ฌ์ฉํ๋ ๊ฒฝ์ฐ Nuget ํจํค์ง ๊ด๋ฆฌ์ ์ฐฝ์ ์ด๊ณ ๋ค์์ ์ ๋ ฅํฉ๋๋ค.Install-Package Google.Apis
.NET Core ๋ช ๋ น์ค ์ธํฐํ์ด์ค ๋๊ตฌ๋ฅผ ์ฌ์ฉํ์ฌ ์ข ์ ํญ๋ชฉ์ ์ค์นํ๋ ค๋ฉด ๋ค์ ๋ช ๋ น์ด๋ฅผ ์คํํฉ๋๋ค.
dotnet add package Google.Apis
์์ธํ ๋ด์ฉ์ C# ๊ฐ๋ฐ ํ๊ฒฝ ์ค์ ์ ์ฐธ์กฐํ์ธ์.
Go
go get cloud.google.com/go/speech/apiv1
์์ธํ ๋ด์ฉ์ Go ๊ฐ๋ฐ ํ๊ฒฝ ์ค์ ์ ์ฐธ์กฐํ์ธ์.
Java
If you are using Maven, add
the following to your pom.xml
file. For more information about
BOMs, see The Google Cloud Platform Libraries BOM.
If you are using Gradle, add the following to your dependencies:
If you are using sbt, add the following to your dependencies:
If you're using Visual Studio Code, IntelliJ, or Eclipse, you can add client libraries to your project using the following IDE plugins:
The plugins provide additional functionality, such as key management for service accounts. Refer to each plugin's documentation for details.
์์ธํ ๋ด์ฉ์ ์๋ฐ ๊ฐ๋ฐ ํ๊ฒฝ ์ค์ ์ ์ฐธ์กฐํ์ธ์.
Node.js
npm install @google-cloud/speech
์์ธํ ๋ด์ฉ์ Node.js ๊ฐ๋ฐ ํ๊ฒฝ ์ค์ ์ ์ฐธ์กฐํ์ธ์.
PHP
composer require google/apiclient
์์ธํ ๋ด์ฉ์ Google Cloud์์ PHP ์ฌ์ฉ์ ์ฐธ์กฐํ์ธ์.
Python
pip install --upgrade google-cloud-speech
์์ธํ ๋ด์ฉ์ Python ๊ฐ๋ฐ ํ๊ฒฝ ์ค์ ์ ์ฐธ์กฐํ์ธ์.
Ruby
gem install google-api-client
์์ธํ ๋ด์ฉ์ Ruby ๊ฐ๋ฐ ํ๊ฒฝ ์ค์ ์ ์ฐธ์กฐํ์ธ์.
์ธ์ฆ ์ค์
Google Cloud API ํธ์ถ์ ์ธ์ฆํ๊ธฐ ์ํด ํด๋ผ์ด์ธํธ ๋ผ์ด๋ธ๋ฌ๋ฆฌ๋ ์ ํ๋ฆฌ์ผ์ด์ ๊ธฐ๋ณธ ์ฌ์ฉ์ ์ธ์ฆ ์ ๋ณด(ADC)๋ฅผ ์ง์ํฉ๋๋ค. ๋ผ์ด๋ธ๋ฌ๋ฆฌ๋ ์ ์๋ ์์น ์งํฉ์์ ์ฌ์ฉ์ ์ธ์ฆ ์ ๋ณด๋ฅผ ์ฐพ๊ณ ์ด๋ฌํ ์ฌ์ฉ์ ์ธ์ฆ ์ ๋ณด๋ฅผ ์ฌ์ฉํด์ API์ ๋ํ ์์ฒญ์ ์ธ์ฆํฉ๋๋ค. ADC๋ฅผ ์ฌ์ฉํ๋ฉด ์ ํ๋ฆฌ์ผ์ด์ ์ฝ๋๋ฅผ ์์ ํ ํ์ ์์ด ๋ก์ปฌ ๊ฐ๋ฐ ๋๋ ํ๋ก๋์ ๊ณผ ๊ฐ์ ๋ค์ํ ํ๊ฒฝ์์ ์ ํ๋ฆฌ์ผ์ด์ ์ ์ฌ์ฉ์ ์ธ์ฆ ์ ๋ณด๋ฅผ ์ ๊ณตํ ์ ์์ต๋๋ค.ํ๋ก๋์ ํ๊ฒฝ์์ ADC๋ฅผ ์ค์ ํ๋ ๋ฐฉ๋ฒ์ ์๋น์ค์ ์ปจํ ์คํธ์ ๋ฐ๋ผ ๋ค๋ฆ ๋๋ค. ์์ธํ ๋ด์ฉ์ ์ ํ๋ฆฌ์ผ์ด์ ๊ธฐ๋ณธ ์ฌ์ฉ์ ์ธ์ฆ ์ ๋ณด ์ค์ ์ ์ฐธ์กฐํ์ธ์.
๋ก์ปฌ ๊ฐ๋ฐ ํ๊ฒฝ์ ๊ฒฝ์ฐ Google ๊ณ์ ๊ณผ ์ฐ๊ฒฐ๋ ์ฌ์ฉ์ ์ธ์ฆ ์ ๋ณด๋ฅผ ์ฌ์ฉํ์ฌ ADC๋ฅผ ์ค์ ํ ์ ์์ต๋๋ค.
-
After installing the Google Cloud CLI, initialize it by running the following command:
gcloud init
If you're using an external identity provider (IdP), you must first sign in to the gcloud CLI with your federated identity.
-
If you're using a local shell, then create local authentication credentials for your user account:
gcloud auth application-default login
You don't need to do this if you're using Cloud Shell.
If an authentication error is returned, and you are using an external identity provider (IdP), confirm that you have signed in to the gcloud CLI with your federated identity.
๋ก๊ทธ์ธ ํ๋ฉด์ด ํ์๋ฉ๋๋ค. ๋ก๊ทธ์ธํ๋ฉด ์ฌ์ฉ์ ์ธ์ฆ ์ ๋ณด๋ ADC์์ ์ฌ์ฉํ๋ ๋ก์ปฌ ์ฌ์ฉ์ ์ธ์ฆ ์ ๋ณด ํ์ผ์ ์ ์ฅ๋ฉ๋๋ค.
ํด๋ผ์ด์ธํธ ๋ผ์ด๋ธ๋ฌ๋ฆฌ ์ฌ์ฉ
๋ค์ ์์์์๋ ํด๋ผ์ด์ธํธ ๋ผ์ด๋ธ๋ฌ๋ฆฌ๋ฅผ ์ฌ์ฉํ๋ ๋ฐฉ๋ฒ์ ๋ณด์ฌ์ค๋๋ค.
Go
Java
Node.js
Python
์ถ๊ฐ ๋ฆฌ์์ค
C#
๋ค์ ๋ชฉ๋ก์๋ C#์ฉ ํด๋ผ์ด์ธํธ ๋ผ์ด๋ธ๋ฌ๋ฆฌ์ ๊ด๋ จ๋ ์ถ๊ฐ ๋ฆฌ์์ค์ ๋ํ ๋งํฌ๊ฐ ํฌํจ๋์ด ์์ต๋๋ค.
Go
๋ค์ ๋ชฉ๋ก์๋ Go์ฉ ํด๋ผ์ด์ธํธ ๋ผ์ด๋ธ๋ฌ๋ฆฌ์ ๊ด๋ จ๋ ์ถ๊ฐ ๋ฆฌ์์ค์ ๋ํ ๋งํฌ๊ฐ ํฌํจ๋์ด ์์ต๋๋ค.
Java
๋ค์ ๋ชฉ๋ก์๋ Java์ฉ ํด๋ผ์ด์ธํธ ๋ผ์ด๋ธ๋ฌ๋ฆฌ์ ๊ด๋ จ๋ ์ถ๊ฐ ๋ฆฌ์์ค์ ๋ํ ๋งํฌ๊ฐ ํฌํจ๋์ด ์์ต๋๋ค.
Node.js
๋ค์ ๋ชฉ๋ก์๋ Node.js์ฉ ํด๋ผ์ด์ธํธ ๋ผ์ด๋ธ๋ฌ๋ฆฌ์ ๊ด๋ จ๋ ์ถ๊ฐ ๋ฆฌ์์ค์ ๋ํ ๋งํฌ๊ฐ ํฌํจ๋์ด ์์ต๋๋ค.
PHP
๋ค์ ๋ชฉ๋ก์๋ PHP์ฉ ํด๋ผ์ด์ธํธ ๋ผ์ด๋ธ๋ฌ๋ฆฌ์ ๊ด๋ จ๋ ์ถ๊ฐ ๋ฆฌ์์ค์ ๋ํ ๋งํฌ๊ฐ ํฌํจ๋์ด ์์ต๋๋ค.
Python
๋ค์ ๋ชฉ๋ก์๋ Python์ฉ ํด๋ผ์ด์ธํธ ๋ผ์ด๋ธ๋ฌ๋ฆฌ์ ๊ด๋ จ๋ ์ถ๊ฐ ๋ฆฌ์์ค์ ๋ํ ๋งํฌ๊ฐ ํฌํจ๋์ด ์์ต๋๋ค.
Ruby
๋ค์ ๋ชฉ๋ก์๋ Ruby์ฉ ํด๋ผ์ด์ธํธ ๋ผ์ด๋ธ๋ฌ๋ฆฌ์ ๊ด๋ จ๋ ์ถ๊ฐ ๋ฆฌ์์ค์ ๋งํฌ๊ฐ ํฌํจ๋์ด ์์ต๋๋ค.