<div dir="ltr">Hi Mark,<div><br></div><div>Thanks for replying.</div><div><br></div><div>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.</div><div><br></div><div><div># ----------------------------- #</div><div>#   User defined parameters:    #</div><div># ----------------------------- #</div><div># Speech API key                #</div><div>my $key = "<MY-KEY";</div><div><br></div><div># Default language              #</div><div>my $language = "en-US";</div><div><br></div><div># Default max silence timeout   #</div><div>my $timeout = 2;</div><div><br></div><div># Absolute Recording timeout    #</div><div>my $abs_timeout = -1;</div><div><br></div><div># Default interrupt key         #</div><div>my $intkey = "#";</div><div><br></div><div># Input audio sample rate       #</div><div># Leave blank to auto-detect    #</div><div>my $samplerate = "";</div><div><br></div><div># Profanity filter              #</div><div>my $pro_filter = 0;</div><div><br></div><div># Use speex                     #</div><div>my $use_speex = 0;</div><div><br></div><div># Use SSL                       #</div><div>my $use_ssl = 1;</div><div><br></div><div># Verbose debugging messages    #</div><div>my $debug = 0;</div></div></div><div class="gmail_extra"><br><div class="gmail_quote">On Wed, Jul 19, 2017 at 3:59 PM, Mark Wiater <span dir="ltr"><<a href="mailto:mark.wiater@greybeam.com" target="_blank">mark.wiater@greybeam.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
  
    
  
  <div text="#000000" bgcolor="#FFFFFF">
    I've had Lefteris' code running for a few years without a problem.<br>
    <br>
    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?<div><div class="h5"><br>
    <br>
    <div class="m_883501802144335936moz-cite-prefix">On 7/19/2017 4:37 AM, Rahul MathuR
      wrote:<br>
    </div>
    <blockquote type="cite">
      <div dir="ltr">Hi,
        <div><br>
        </div>
        <div>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.</div>
        <div><br>
        </div>
        <div>Has anybody tried it ? were you successful ? Could you
          please guide me how to do it ?</div>
        <div>I'll be grateful to you if this works !</div>
        <div><br>
        </div>
        <div><br clear="all">
          <div><br>
          </div>
          -- <br>
          <div class="m_883501802144335936gmail_signature" data-smartmail="gmail_signature">Warm
            Regds.<br>
            MathuRahul<br>
          </div>
        </div>
      </div>
      <br>
      <fieldset class="m_883501802144335936mimeAttachmentHeader"></fieldset>
      <br>
    </blockquote>
    <br>
  </div></div></div>

<br>--<br>
______________________________<wbr>______________________________<wbr>_________<br>
-- Bandwidth and Colocation Provided by <a href="http://www.api-digital.com" rel="noreferrer" target="_blank">http://www.api-digital.com</a> --<br>
<br>
Check out the new Asterisk community forum at: <a href="https://community.asterisk.org/" rel="noreferrer" target="_blank">https://community.asterisk.<wbr>org/</a><br>
<br>
New to Asterisk? Start here:<br>
      <a href="https://wiki.asterisk.org/wiki/display/AST/Getting+Started" rel="noreferrer" target="_blank">https://wiki.asterisk.org/<wbr>wiki/display/AST/Getting+<wbr>Started</a><br>
<br>
asterisk-users mailing list<br>
To UNSUBSCRIBE or update options visit:<br>
   <a href="http://lists.digium.com/mailman/listinfo/asterisk-users" rel="noreferrer" target="_blank">http://lists.digium.com/<wbr>mailman/listinfo/asterisk-<wbr>users</a><br></blockquote></div><br><br clear="all"><div><br></div>-- <br><div class="gmail_signature" data-smartmail="gmail_signature">Warm Regds.<br>MathuRahul<br></div>
</div>