Skip to content

Proxy Authentication for Google Speech Api Credential #833

@swapp1990

Description

@swapp1990

I am trying to configure google speech api to work in my project within the company's firewall. I have configured the SpeechSettings as following:

InputStream is = this.getClass().getResourceAsStream("/my-service-account.json");           
CredentialsProvider credentialsProvider = FixedCredentialsProvider.create(ServiceAccountCredentials.fromStream(is));
SpeechSettings.Builder builder = SpeechSettings.newBuilder();
builder.setTransportProvider(SpeechSettings.defaultTransportProvider());
builder.setCredentialsProvider(credentialsProvider);
SpeechSettings settings =  builder.build();
SpeechClient.create(settings);

Describe the issue

Using this works outside proxy network correctly and starts a speech recognize session. But it fails to transcribe anything under a proxy authenticated network and times out without giving any error. Is it possible to authenticate with the proxy settings while creating the speech client session? Thanks.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions