Coder Social home page Coder Social logo

p5-google-cloud-speech's Introduction

p5-Google-Cloud-Speech

This Perl module allows developers to convert audio to text by applying powerful neural network models.

Quick Start

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

Example

Asynchronous speech recognition

use Google::Cloud::Speech;
use Data::Dumper;

my $speech = Google::Cloud::Speech->new(
    file    => 'test.wav',
    api_key => 'XXXXXXXXXXXX'
);

my $operation = $speech->asyncrecognize();
my $is_done = $operation->is_done;

until($is_done) {
    if ($is_done = $operation->is_done) {
        print Dumper $operation->results;
    }
}

Synchronous speech recognition

use Google::Cloud::Speech;
use Data::Dumper;

my $speech = Google::Cloud::Speech->new(
    file    => 'test.wav',
    api_key => 'XXXXXXXXXXXX'
);

my $operation = $speech->syncrecognize();
print Dumper $operations->results;

COPYRIGHT AND LICENCE

Copyright (C) 2017 by Prajith P

This is free software; you can redistribute it and/or modify it under the same terms as the Perl 5 programming language system itself.

p5-google-cloud-speech's People

Contributors

prajithp avatar

Watchers

James Cloos avatar  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.