Verify Google Regional Endpoint STT Config

114 views
Skip to first unread message

erj

unread,
May 17, 2022, 6:06:37 AM5/17/22
to UniMRCP
Hi Arsen,
    I've been asked to verify that it's possible to support Google's region data processing for Google STT ( https://cloud.google.com/speech-to-text/docs/endpoints ).

Looking at https://www.unimrcp.org/manuals/pdf/GoogleSRUsageManual.pdf I can see the following settings:

service-uri - String - Specifies the service endpoint and defaults to speech.googleapis.com:443. Available since GSR 1.20.0.
region - String - Specifies the region. The global endpoint is used if the region is not specified. Available since GSR 1.20.0.

Am I correct in thinking that these cover specifying a regional end point in Google ?

Also if the service-uri was for example "https://eu-speech.googleapis.com" then would it be "EU" in the region field ?

Thanks
Ed James

erj

unread,
May 24, 2022, 3:49:09 AM5/24/22
to UniMRCP
Hi Arsen,
Sorry to hassle you (again !) but I'm coming under pressure to be able to guarantee that client traffic will stay inside the EU as data processing outside the EU is a no for many of our customers.
Thanks
Ed James

Gercel F

unread,
May 24, 2022, 5:21:57 AM5/24/22
to UniMRCP
Hello,

For info. We managed using EU using the following parameters in our plugin configuration files :

      service-uri="eu-speech.googleapis.com"
      region="eu"

Be careful to use lower case for region. We tried using EU but it kept failing.

I hope it can help.

Gercel

erj

unread,
May 24, 2022, 5:36:44 AM5/24/22
to UniMRCP
Hi Gercel,
Thanks very much, that's very helpful.
Regards
Ed

Arsen Chaloyan

unread,
May 28, 2022, 1:51:29 PM5/28/22
to UniMRCP
One more observation. It is sufficient to have only the region parameter specified in the configuration. The service-uri will be composed implicitly based on the region.

--
You received this message because you are subscribed to the Google Groups "UniMRCP" group.
To unsubscribe from this group and stop receiving emails from it, send an email to unimrcp+u...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/unimrcp/6b55dbe2-3808-46b8-9db4-d7010637bddan%40googlegroups.com.


--
Arsen Chaloyan
Author of UniMRCP
http://www.unimrcp.org

bharath kumar

unread,
Jul 27, 2022, 12:04:25 PM7/27/22
to UniMRCP
Is it possible to set the region during mrcp session via SRGS grammar?

Arsen Chaloyan

unread,
Aug 9, 2022, 8:28:43 PM8/9/22
to uni...@googlegroups.com
Yes, using the meta element. For example:

<?xml version="1.0"?>
<grammar mode="voice" root="root" version="1.0" xml:lang="en-US" xmlns="http://www.w3.org/2001/06/grammar">
  <meta name=" gapp-credentials-file" content="project-60ddaa456a34.json"/>
  <meta name="region" content="eu"/>
  <meta name="root" content="hint"/>
      <rule id="spell">
            <one-of>
                <item>$OOV_CLASS_ALPHANUMERIC_SEQUENCE</item>
            </one-of>
      </rule>
</grammar>

As a result, the regional service endpoint eu-speech.googleapis.com will be used.

Reply all
Reply to author
Forward
0 new messages