Giter Club home page Giter Club logo

google-speech's Introduction

Google Text to Speech & Speech to Text API

Follow some steps:-

  1. Go to the https://console.cloud.google.com/home/dashboard page.
  2. Select your project and then click "Enable APIs and Services", select "Cloud Text-to-Speech API" and "Cloud Speech-to-Text API", then enable both with billing information.
  3. In the console page, go to the "IAM and admin" -> "Service account" -> "KEYS" page and then create a JSON Key, then download, rename it as g-service-acc-key.json & place it at the root of the app directory.
  4. Check out the PHP grpc extension. If not exists, then install gRPC for PHP with the following command:-
  $ sudo apt-get install autoconf
  $ sudo apt-get install zlib1g-dev
  $ sudo apt-get install php-dev 
  $ sudo apt-get install php-pear

You can also install extension and dependency packages with the $ sudo apt-get install autoconf zlib1g-dev php-dev php-pear command. Referenced by https://cloud.google.com/php/grpc .

  1. Add extension=grpc.so to the php.ini file.
  2. Create a composer.json file with the following commands: -
{
    "require": {
        "google/cloud-text-to-speech": "^1.3",
        "google/apiclient": "^2.12",
        "google/cloud-speech": "^1.5",
        "grpc/grpc": "^1.38"
    }
}
  1. Now, install the packages by the command composer install then browse the script recorder-default.html(chrome/mozila) or recorder-polyfill.html(chrome/mozila/safari) and ...
  2. Enjoy :)

google-speech's People

Contributors

souravmsh avatar

Watchers

 avatar

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.