Git Product home page Git Product logo

google_cloud_speech_recognition_sample's Introduction

What is this project?

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).

How to setup

With Docker

  1. Download "Dockerfile"
  • wget https://raw.githubusercontent.com/dogwood008/google_cloud_speech_recognition_sample/master/Dockerfile
  1. Replace by your language in "Dockerfile"
  • ENV LANGUAGE_CODE ja-JP
  1. Replace by your api key in "Dockerfile"
  • ENV API_KEY YourAPIKeyHere
  1. Build
  • docker build -t dogwood008/google_cloud_speech_recognition_sample .
  1. Run
  • docker run -p 4567:4567 -it dogwood008/google_cloud_speech_recognition_sample
  1. Access
  • http://localhost:4567

Without Docker

  1. Clone this repository
  • git clone https://github.com/dogwood008/google_cloud_speech_recognition_sample.git
  1. Install gems
  • bundle install
  1. Run with your language and API key
  • LANGUAGE_CODE=ja-JP API_KEY=your_api_key_here bundle exec ruby recog.rb
  1. Access
  • http://localhost:4567

--

このプロジェクトは何?

Google Cloud Speech APIを使用して、音声認識のテストをすることができます。 必要なのはAPIキーを取得して、Dockerコンテナを起動するだけ(または今プロジェクトクローンしてSinatraを起動する)です。

セットアップ方法

Dockerを使う場合

  1. "Dockerfile"をダウンロード
  • wget https://raw.githubusercontent.com/dogwood008/google_cloud_speech_recognition_sample/master/Dockerfile
  1. "Dockerfile"を編集、言語を置換
  • ENV LANGUAGE_CODE ja-JP
  1. "Dockerfile"を編集、APIキーを置換
  • ENV API_KEY YourAPIKeyHere
  1. ビルド
  • docker build -t dogwood008/google_cloud_speech_recognition_sample .
  1. 実行
  • docker run -p 4567:4567 -it dogwood008/google_cloud_speech_recognition_sample
  1. アクセス
  • http://localhost:4567

Dockerを使わない場合

  1. このリポジトリをクローン
  • git clone https://github.com/dogwood008/google_cloud_speech_recognition_sample.git
  1. gemをインストール
  • bundle install
  1. 自分の言語とAPIキーを入れて実行
  • LANGUAGE_CODE=ja-JP API_KEY=your_api_key_here bundle exec ruby recog.rb
  1. アクセス
  • http://localhost:4567

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.