2017 © Pedro Peláez
 

library cloud-speech

Cloud Speech Client for PHP

image

google/cloud-speech

Cloud Speech Client for PHP

  • Thursday, July 19, 2018
  • by bshaffer
  • Repository
  • 36 Watchers
  • 6 Stars
  • 23,681 Installations
  • PHP
  • 1 Dependents
  • 0 Suggesters
  • 5 Forks
  • 0 Open issues
  • 31 Versions
  • 43 % Grown

The README.md

Google Cloud Speech for PHP

Idiomatic PHP client for Cloud Speech., (*1)

Latest Stable Version Packagist, (*2)

NOTE: This repository is part of Google Cloud PHP. Any support requests, bug reports, or development contributions should be directed to that project., (*3)

Enables easy integration of Google speech recognition technologies into developer applications. Send audio and receive a text transcription from the Speech-to-Text API service., (*4)

Experimental Notice for V2 Surface

Please note the V2 API surface is currently considered experimental and as a result it is subject to change., (*5)

Installation

To begin, install the preferred dependency manager for PHP, Composer., (*6)

Now install this component:, (*7)

$ composer require google/cloud-speech

This component supports both REST over HTTP/1.1 and gRPC. In order to take advantage of the benefits offered by gRPC (such as streaming methods) please see our gRPC installation guide., (*8)

Authentication

Please see our Authentication guide for more information on authenticating your client. Once authenticated, you'll be ready to start making requests., (*9)

Sample

use Google\Cloud\Speech\V1\RecognitionConfig\AudioEncoding;
use Google\Cloud\Speech\V1\RecognitionConfig;
use Google\Cloud\Speech\V1\StreamingRecognitionConfig;

$recognitionConfig = new RecognitionConfig();
$recognitionConfig->setEncoding(AudioEncoding::FLAC);
$recognitionConfig->setSampleRateHertz(44100);
$recognitionConfig->setLanguageCode('en-US');
$config = new StreamingRecognitionConfig();
$config->setConfig($recognitionConfig);

$audioResource = fopen('path/to/audio.flac', 'r');

$responses = $speechClient->recognizeAudioStream($config, $audioResource);

foreach ($responses as $element) {
    // doSomethingWith($element);
}

Version

This component is considered GA (generally available). As such, it will not introduce backwards-incompatible changes in any minor or patch releases. We will address issues and requests with the highest priority., (*10)

Next Steps

  1. Understand the official documentation.
  2. Take a look at in-depth usage samples.

The Versions

16/03 2018

v0.11.3

0.11.3.0

Cloud Speech Client for PHP

  Sources   Download

Apache-2.0

The Requires

 

26/02 2018

v0.11.2

0.11.2.0

Cloud Speech Client for PHP

  Sources   Download

Apache-2.0

The Requires

 

01/02 2018

v0.11.1

0.11.1.0

Cloud Speech Client for PHP

  Sources   Download

Apache-2.0

The Requires

 

23/01 2018

v0.11.0

0.11.0.0

Cloud Speech Client for PHP

  Sources   Download

Apache-2.0

The Requires

 

29/12 2017

v0.10.2

0.10.2.0

Cloud Speech Client for PHP

  Sources   Download

Apache-2.0

The Requires

 

22/12 2017

v0.10.1

0.10.1.0

Cloud Speech Client for PHP

  Sources   Download

Apache-2.0

The Requires

 

16/12 2017

v0.10.0

0.10.0.0

Cloud Speech Client for PHP

  Sources   Download

Apache-2.0

The Requires

 

02/12 2017

v0.9.0

0.9.0.0

Cloud Speech Client for PHP

  Sources   Download

Apache-2.0

The Requires

 

15/11 2017

v0.8.1

0.8.1.0

Cloud Speech Client for PHP

  Sources   Download

Apache-2.0

The Requires

 

17/10 2017

v0.8.0

0.8.0.0

Cloud Speech Client for PHP

  Sources   Download

Apache-2.0

The Requires

 

12/09 2017

v0.7.0

0.7.0.0

Cloud Speech Client for PHP

  Sources   Download

Apache-2.0

The Requires

 

25/08 2017

v0.6.2

0.6.2.0

Cloud Speech Client for PHP

  Sources   Download

Apache-2.0

The Requires

 

02/08 2017

v0.6.1

0.6.1.0

Cloud Speech Client for PHP

  Sources   Download

Apache-2.0

The Requires

 

12/07 2017

v0.6.0

0.6.0.0

Cloud Speech Client for PHP

  Sources   Download

Apache-2.0

The Requires

 

01/07 2017

v0.5.0

0.5.0.0

Cloud Speech Client for PHP

  Sources   Download

Apache-2.0

The Requires

 

22/05 2017

v0.4.0

0.4.0.0

Cloud Speech Client for PHP

  Sources   Download

Apache-2.0

The Requires

 

14/04 2017

v0.3.0

0.3.0.0

Cloud Speech Client for PHP

  Sources   Download

Apache-2.0

The Requires

 

31/03 2017

v0.2.0

0.2.0.0

Cloud Speech Client for PHP

  Sources   Download

Apache-2.0

The Requires

 

10/03 2017

v0.1.0

0.1.0.0

Cloud Speech Client for PHP

  Sources   Download

Apache-2.0

The Requires