Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Client library incorrectly returns error when FLAC is used with long-running-recognize #3285

Copy link
Copy link
@pbogle

Description

@pbogle
Issue body actions

The client library incorrectly returns an error when anything other than LINEAR16 is used for a long-running recognize request:

https://github.com/GoogleCloudPlatform/google-cloud-python/blob/master/speech/google/cloud/speech/sample.py#L173

The v1 server support all encodings so this breaks functionality.

In general, the client library should almost never do it's own validation; it should always delegate to the server to be sure that that behavior and error messages are consistent across APIs.

Metadata

Metadata

Labels

api: speechIssues related to the Speech-to-Text API.Issues related to the Speech-to-Text API.

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions

    Morty Proxy This is a proxified and sanitized view of the page, visit original site.