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 -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.digium.com/pipermail/asterisk-users/attachments/20170719/24b04d01/attachment.html>
Yes! But I can only tell you if you can use Python, as I used Google's own demo code. If you can hold on for half an hour, I'll remove personal info and put a version up on Github if you're interested? On 19 July 2017 at 09:37, Rahul MathuR <rahul.ultimate at gmail.com> 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 >-------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.digium.com/pipermail/asterisk-users/attachments/20170719/29316143/attachment.html>
Hi Jonathan Thanks ! That would indeed be wonderful, at this point I really do not care whether I need to use Python or Lua or JS. I was following http://zaf.github.io/asterisk-speech-recog/ but hit a road end with (for the lack of sane word ) copulating Google's Key On Wed, Jul 19, 2017 at 2:28 PM, Jonathan H <lardconcepts at gmail.com> wrote:> Yes! But I can only tell you if you can use Python, as I used Google's own > demo code. > > If you can hold on for half an hour, I'll remove personal info and put a > version up on Github if you're interested? > > > On 19 July 2017 at 09:37, Rahul MathuR <rahul.ultimate at gmail.com> 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 >> > > > -- > _____________________________________________________________________ > -- 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/5299d934/attachment.html>
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 > >-------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.digium.com/pipermail/asterisk-users/attachments/20170719/e4d56651/attachment.html>
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>