This project is test for Google Cloud Speech API. You can use voice recognition via the API. Only you have to do is to get API key and boot machine by docker (or clone this project and boot Sinatra).
- Download "Dockerfile"
wget https://raw.githubusercontent.com/dogwood008/google_cloud_speech_recognition_sample/master/Dockerfile
- Replace by your language in "Dockerfile"
ENV LANGUAGE_CODE ja-JP
- Replace by your api key in "Dockerfile"
ENV API_KEY YourAPIKeyHere
- Build
docker build -t dogwood008/google_cloud_speech_recognition_sample .
- Run
docker run -p 4567:4567 -it dogwood008/google_cloud_speech_recognition_sample
- Access
http://localhost:4567
- Clone this repository
git clone https://github.com/dogwood008/google_cloud_speech_recognition_sample.git
- Install gems
bundle install
- Run with your language and API key
LANGUAGE_CODE=ja-JP API_KEY=your_api_key_here bundle exec ruby recog.rb
- Access
http://localhost:4567
--
Google Cloud Speech APIを使用して、音声認識のテストをすることができます。 必要なのはAPIキーを取得して、Dockerコンテナを起動するだけ(または今プロジェクトクローンしてSinatraを起動する)です。
- "Dockerfile"をダウンロード
wget https://raw.githubusercontent.com/dogwood008/google_cloud_speech_recognition_sample/master/Dockerfile
- "Dockerfile"を編集、言語を置換
ENV LANGUAGE_CODE ja-JP
- "Dockerfile"を編集、APIキーを置換
ENV API_KEY YourAPIKeyHere
- ビルド
docker build -t dogwood008/google_cloud_speech_recognition_sample .
- 実行
docker run -p 4567:4567 -it dogwood008/google_cloud_speech_recognition_sample
- アクセス
http://localhost:4567
- このリポジトリをクローン
git clone https://github.com/dogwood008/google_cloud_speech_recognition_sample.git
- gemをインストール
bundle install
- 自分の言語とAPIキーを入れて実行
LANGUAGE_CODE=ja-JP API_KEY=your_api_key_here bundle exec ruby recog.rb
- アクセス
http://localhost:4567