#[non_exhaustive]pub enum AudioSource {
Content(Bytes),
Uri(String),
}Expand description
The audio source, which is either inline content or a Google Cloud Storage URI.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
Content(Bytes)
The audio data bytes encoded as specified in RecognitionConfig. As with all bytes fields, proto buffers use a pure binary representation, whereas JSON representations use base64.
Uri(String)
URI that points to a file that contains audio data bytes as specified in
RecognitionConfig. The file
must not be compressed (for example, gzip). Currently, only Google Cloud
Storage URIs are supported, which must be specified in the following
format: gs://bucket_name/object_name (other URI formats return
[INVALID_ARGUMENT][google.rpc.Code.INVALID_ARGUMENT]). For more
information, see Request
URIs.
Trait Implementations§
Source§impl Clone for AudioSource
impl Clone for AudioSource
Source§fn clone(&self) -> AudioSource
fn clone(&self) -> AudioSource
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for AudioSource
impl Debug for AudioSource
Source§impl PartialEq for AudioSource
impl PartialEq for AudioSource
impl StructuralPartialEq for AudioSource
Auto Trait Implementations§
impl !Freeze for AudioSource
impl RefUnwindSafe for AudioSource
impl Send for AudioSource
impl Sync for AudioSource
impl Unpin for AudioSource
impl UnwindSafe for AudioSource
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more