-
Notifications
You must be signed in to change notification settings - Fork 438
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
Conversation
There was a problem hiding this 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.
src/Speech/SpeechClient.php
Outdated
* **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.
Sorry, something went wrong.
This comment was marked as spam.
This comment was marked as spam.
Sorry, something went wrong.
* $result = $speech->recognize( | ||
* fopen(__DIR__ . '/audio.flac', 'r') | ||
* ); | ||
* ``` |
This comment was marked as spam.
This comment was marked as spam.
Sorry, something went wrong.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
Closes: #444 & #446 & #445
/cc @adziuk @pbogle
FYI: This introduces a breaking change.