Google-Cloud-Speech
view release on metacpan or search on metacpan
0.05 Tue May 15 11:47:00 2017
- Added Auth.pm to MANIFEST file
0.04 Tue May 15 11:47:00 2017
- POD cleanup and version bump
0.03 Tue Apr 25 18:55:00 2017
- Update Speech.pm to use Service Account credentials insteadd of API Key.
0.02 Sun Apr 20 09:45:23 2017
- Fixed some minor bugs and updated pod
0.01 Sun Apr 19 23:20:50 2017
- Very first version, just for own purpose
- [Google Cloud Speech API documentation](https://cloud.google.com/speech/docs)
## Quick Start
```sh
$ cpanm install Google::Cloud::Speech
```
## Authentication
This library uses Service Account credentials to connect to Google Cloud services.
### To create, Google Service Account Key:
* Login to Google Apps Console and select your project
* Click on create credentials-> service account key.
* Select a service account and key type as JSON and click on create and downlaoded the JSON file.
For more details visit the [Authentication Guide](https://developers.google.com/identity/protocols/application-default-credentials).
## Example
### Asynchronous speech recognition
```perl
use Google::Cloud::Speech;
use Data::Dumper;
lib/Google/Cloud/Speech.pm view on Meta::CPAN
=head2 C<secret_file>
Loads the JSON file from Google with the client ID informations.
$speech->secret_file('/my/google/app/project/sp/json/file');
To create, Google Service Account Key:
1) Login to Google Apps Console and select your project
2) Click on create credentials-> service account key.
4) Select a service account and key type as JSON and click on create and downlaoded the JSON file.
See L<Google API Doc|https://developers.google.com/identity/protocols/application-default-credentials> for more details about API authentication.
=head2 encoding
my $encoding = $speech->encoding('linear16');
Encoding of audio data to be recognized.
Acceptable values are:
* linear16 - Uncompressed 16-bit signed little-endian samples.
(LINEAR16)
( run in 0.436 second using v1.01-cache-2.11-cpan-4d50c553e7e )