[asterisk-users] Integration of Google Speech API V2

Rahul MathuR rahul.ultimate at gmail.com
Wed Jul 19 05:39:48 CDT 2017


Hi Mark,

Thanks for replying.

Yes, I put my API key. I can see request going over HTTPS and then I get
response from Google Cloud that I do not have the access and this is an
invalid key. However, when I use the same key in .json format in the Google
samples, I get a successful response.

# ----------------------------- #
#   User defined parameters:    #
# ----------------------------- #
# Speech API key                #
my $key = "<MY-KEY";

# Default language              #
my $language = "en-US";

# Default max silence timeout   #
my $timeout = 2;

# Absolute Recording timeout    #
my $abs_timeout = -1;

# Default interrupt key         #
my $intkey = "#";

# Input audio sample rate       #
# Leave blank to auto-detect    #
my $samplerate = "";

# Profanity filter              #
my $pro_filter = 0;

# Use speex                     #
my $use_speex = 0;

# Use SSL                       #
my $use_ssl = 1;

# Verbose debugging messages    #
my $debug = 0;

On Wed, Jul 19, 2017 at 3:59 PM, Mark Wiater <mark.wiater at greybeam.com>
wrote:

> I've had Lefteris' code running for a few years without a problem.
>
> I don't have a service key but I have entered my API key in the script in
> the 'User defined parameters' section. You did that, right? What do the
> other user defined parameters in your script look like?
>
>
> On 7/19/2017 4:37 AM, Rahul MathuR wrote:
>
> Hi,
>
> I'm trying to integrate Google cloud speech recognition v2 in it. I can
> get the audio recorded, have created Service key and API key but whenever I
> try to access it, I just get 403 access denied. I am at my wits end here.
>
> Has anybody tried it ? were you successful ? Could you please guide me how
> to do it ?
> I'll be grateful to you if this works !
>
>
>
> --
> Warm Regds.
> MathuRahul
>
>
>
>
> --
> _____________________________________________________________________
> -- Bandwidth and Colocation Provided by http://www.api-digital.com --
>
> Check out the new Asterisk community forum at: https://community.asterisk.
> org/
>
> New to Asterisk? Start here:
>       https://wiki.asterisk.org/wiki/display/AST/Getting+Started
>
> asterisk-users mailing list
> To UNSUBSCRIBE or update options visit:
>    http://lists.digium.com/mailman/listinfo/asterisk-users
>



-- 
Warm Regds.
MathuRahul
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.digium.com/pipermail/asterisk-users/attachments/20170719/c7df19cb/attachment.html>


More information about the asterisk-users mailing list