You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Jun 28, 2022. It is now read-only.
Right now only the fields in the request object is cared for required_fields, but googleapis/google-cloud-node#1926 reports that syncRecognize requires to specify some fields in config, and audio's content should exist somewhere. I think the same pattern will be seen in other APIs.
Can we list up sub fields as the required parameters? I'm thinking like,
how to decide the sample value for sampling_rate? Some default values (like 0 or 1) is probably helpless and still confusing
audio.audio_source is oneof -- it should specify either of content or uri, how to choose one?
content is bytes type. how to decide the sample value? an empty string or something like 'data' is also helpless. Ideally the sample should read data from some file?
Any thoughts?
The text was updated successfully, but these errors were encountered:
It seems that you might be conflating required (enforced at runtime on the client side) with sample code config. Sample code generation can be configured to generate code which populates sub fields - see Pub/Sub for one example:
Right now only the fields in the request object is cared for
required_fields
, but googleapis/google-cloud-node#1926 reports thatsyncRecognize
requires to specify some fields inconfig
, andaudio
's content should exist somewhere. I think the same pattern will be seen in other APIs.Can we list up sub fields as the required parameters? I'm thinking like,
There are several things which are unclear to me:
sampling_rate
? Some default values (like 0 or 1) is probably helpless and still confusingaudio.audio_source
isoneof
-- it should specify either ofcontent
oruri
, how to choose one?content
is bytes type. how to decide the sample value? an empty string or something like'data'
is also helpless. Ideally the sample should read data from some file?Any thoughts?
The text was updated successfully, but these errors were encountered: