Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Return all results and do not detect encoding/sample rate in the client #449

Merged
merged 6 commits into from
Apr 14, 2017

Conversation

dwsupplee
Copy link
Contributor

@dwsupplee dwsupplee commented Apr 13, 2017

Closes: #444 & #446 & #445

/cc @adziuk @pbogle

FYI: This introduces a breaking change.

@dwsupplee dwsupplee added the api: speech Issues related to the Speech-to-Text API. label Apr 13, 2017
@dwsupplee dwsupplee requested a review from jdpedrie April 13, 2017 16:04
@googlebot googlebot added the cla: yes This human has signed the Contributor License Agreement. label Apr 13, 2017
Copy link

@pbogle pbogle left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM, thanks for making these changes.

Slight nit: we can determine encoding and sample rate for wav as well as flac.

* **Defaults to** `"FLAC"` with .flac files, `"AMR"` with .amr
* files and `"AMR_WB"` with .awb files.
* `"LINEAR16"`, `"FLAC"`, `"MULAW"`, `"AMR"`, `"AMR_WB"`. For
* .flac files the Speech API will make a best effort to determine

This comment was marked as spam.

This comment was marked as spam.

* $result = $speech->recognize(
* fopen(__DIR__ . '/audio.flac', 'r')
* );
* ```

This comment was marked as spam.

Copy link
Contributor

@michaelbausor michaelbausor left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
api: speech Issues related to the Speech-to-Text API. cla: yes This human has signed the Contributor License Agreement.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants