Skip to content
This repository has been archived by the owner on Dec 15, 2023. It is now read-only.

Commit

Permalink
Browse files Browse the repository at this point in the history
feat: add webm opus support (#500)
This PR was generated using Autosynth. 🌈

Synth log will be available here:
https://source.cloud.google.com/results/invocations/c65c7773-dbef-42eb-b70e-47092f05bd1b/targets

- [ ] To automatically regenerate this PR, check this box. (May take up to 24 hours.)

PiperOrigin-RevId: 370523741
Source-Link: googleapis/googleapis@36a84fe
  • Loading branch information
yoshi-automation committed Apr 27, 2021
1 parent 4530ef9 commit e496559
Show file tree
Hide file tree
Showing 5 changed files with 145 additions and 111 deletions.
Expand Up @@ -435,6 +435,19 @@ public enum AudioEncoding implements com.google.protobuf.ProtocolMessageEnum {
* <code>MP3 = 8;</code>
*/
MP3(8),
/**
*
*
* <pre>
* Opus encoded audio frames in WebM container
* ([OggOpus](https://wiki.xiph.org/OggOpus)). This is a Beta features and
* only available in v1p1beta1. `sample_rate_hertz` must be one of 8000,
* 12000, 16000, 24000, or 48000.
* </pre>
*
* <code>WEBM_OPUS = 9;</code>
*/
WEBM_OPUS(9),
UNRECOGNIZED(-1),
;

Expand Down Expand Up @@ -550,6 +563,19 @@ public enum AudioEncoding implements com.google.protobuf.ProtocolMessageEnum {
* <code>MP3 = 8;</code>
*/
public static final int MP3_VALUE = 8;
/**
*
*
* <pre>
* Opus encoded audio frames in WebM container
* ([OggOpus](https://wiki.xiph.org/OggOpus)). This is a Beta features and
* only available in v1p1beta1. `sample_rate_hertz` must be one of 8000,
* 12000, 16000, 24000, or 48000.
* </pre>
*
* <code>WEBM_OPUS = 9;</code>
*/
public static final int WEBM_OPUS_VALUE = 9;

public final int getNumber() {
if (this == UNRECOGNIZED) {
Expand Down Expand Up @@ -593,6 +619,8 @@ public static AudioEncoding forNumber(int value) {
return SPEEX_WITH_HEADER_BYTE;
case 8:
return MP3;
case 9:
return WEBM_OPUS;
default:
return null;
}
Expand Down Expand Up @@ -1496,7 +1524,7 @@ public com.google.cloud.speech.v1p1beta1.RecognitionMetadataOrBuilder getMetadat
* &lt;/tr&gt;
* &lt;tr&gt;
* &lt;td&gt;&lt;code&gt;video&lt;/code&gt;&lt;/td&gt;
* &lt;td&gt;Best for audio that originated from from video or includes multiple
* &lt;td&gt;Best for audio that originated from video or includes multiple
* speakers. Ideally the audio is recorded at a 16khz or greater
* sampling rate. This is a premium model that costs more than the
* standard rate.&lt;/td&gt;
Expand Down Expand Up @@ -1550,7 +1578,7 @@ public java.lang.String getModel() {
* &lt;/tr&gt;
* &lt;tr&gt;
* &lt;td&gt;&lt;code&gt;video&lt;/code&gt;&lt;/td&gt;
* &lt;td&gt;Best for audio that originated from from video or includes multiple
* &lt;td&gt;Best for audio that originated from video or includes multiple
* speakers. Ideally the audio is recorded at a 16khz or greater
* sampling rate. This is a premium model that costs more than the
* standard rate.&lt;/td&gt;
Expand Down Expand Up @@ -5094,7 +5122,7 @@ public com.google.cloud.speech.v1p1beta1.RecognitionMetadataOrBuilder getMetadat
* &lt;/tr&gt;
* &lt;tr&gt;
* &lt;td&gt;&lt;code&gt;video&lt;/code&gt;&lt;/td&gt;
* &lt;td&gt;Best for audio that originated from from video or includes multiple
* &lt;td&gt;Best for audio that originated from video or includes multiple
* speakers. Ideally the audio is recorded at a 16khz or greater
* sampling rate. This is a premium model that costs more than the
* standard rate.&lt;/td&gt;
Expand Down Expand Up @@ -5147,7 +5175,7 @@ public java.lang.String getModel() {
* &lt;/tr&gt;
* &lt;tr&gt;
* &lt;td&gt;&lt;code&gt;video&lt;/code&gt;&lt;/td&gt;
* &lt;td&gt;Best for audio that originated from from video or includes multiple
* &lt;td&gt;Best for audio that originated from video or includes multiple
* speakers. Ideally the audio is recorded at a 16khz or greater
* sampling rate. This is a premium model that costs more than the
* standard rate.&lt;/td&gt;
Expand Down Expand Up @@ -5200,7 +5228,7 @@ public com.google.protobuf.ByteString getModelBytes() {
* &lt;/tr&gt;
* &lt;tr&gt;
* &lt;td&gt;&lt;code&gt;video&lt;/code&gt;&lt;/td&gt;
* &lt;td&gt;Best for audio that originated from from video or includes multiple
* &lt;td&gt;Best for audio that originated from video or includes multiple
* speakers. Ideally the audio is recorded at a 16khz or greater
* sampling rate. This is a premium model that costs more than the
* standard rate.&lt;/td&gt;
Expand Down Expand Up @@ -5252,7 +5280,7 @@ public Builder setModel(java.lang.String value) {
* &lt;/tr&gt;
* &lt;tr&gt;
* &lt;td&gt;&lt;code&gt;video&lt;/code&gt;&lt;/td&gt;
* &lt;td&gt;Best for audio that originated from from video or includes multiple
* &lt;td&gt;Best for audio that originated from video or includes multiple
* speakers. Ideally the audio is recorded at a 16khz or greater
* sampling rate. This is a premium model that costs more than the
* standard rate.&lt;/td&gt;
Expand Down Expand Up @@ -5300,7 +5328,7 @@ public Builder clearModel() {
* &lt;/tr&gt;
* &lt;tr&gt;
* &lt;td&gt;&lt;code&gt;video&lt;/code&gt;&lt;/td&gt;
* &lt;td&gt;Best for audio that originated from from video or includes multiple
* &lt;td&gt;Best for audio that originated from video or includes multiple
* speakers. Ideally the audio is recorded at a 16khz or greater
* sampling rate. This is a premium model that costs more than the
* standard rate.&lt;/td&gt;
Expand Down
Expand Up @@ -689,7 +689,7 @@ public interface RecognitionConfigOrBuilder
* &lt;/tr&gt;
* &lt;tr&gt;
* &lt;td&gt;&lt;code&gt;video&lt;/code&gt;&lt;/td&gt;
* &lt;td&gt;Best for audio that originated from from video or includes multiple
* &lt;td&gt;Best for audio that originated from video or includes multiple
* speakers. Ideally the audio is recorded at a 16khz or greater
* sampling rate. This is a premium model that costs more than the
* standard rate.&lt;/td&gt;
Expand Down Expand Up @@ -732,7 +732,7 @@ public interface RecognitionConfigOrBuilder
* &lt;/tr&gt;
* &lt;tr&gt;
* &lt;td&gt;&lt;code&gt;video&lt;/code&gt;&lt;/td&gt;
* &lt;td&gt;Best for audio that originated from from video or includes multiple
* &lt;td&gt;Best for audio that originated from video or includes multiple
* speakers. Ideally the audio is recorded at a 16khz or greater
* sampling rate. This is a premium model that costs more than the
* standard rate.&lt;/td&gt;
Expand Down

0 comments on commit e496559

Please sign in to comment.