fix: migrate speech/v1p1beta1 to grpc_service_config
PiperOrigin-RevId: 316899150
This commit is contained in:
parent
1c25156bc8
commit
791505db47
|
|
@ -63,6 +63,7 @@ java_gapic_library(
|
|||
name = "speech_java_gapic",
|
||||
src = ":speech_proto_with_info",
|
||||
gapic_yaml = "speech_gapic.yaml",
|
||||
grpc_service_config = "speech_grpc_service_config.json",
|
||||
package = "google.cloud.speech.v1p1beta1",
|
||||
service_yaml = "speech_v1p1beta1.yaml",
|
||||
test_deps = [
|
||||
|
|
@ -192,6 +193,7 @@ py_gapic_library(
|
|||
name = "speech_py_gapic",
|
||||
src = ":speech_proto_with_info",
|
||||
gapic_yaml = "speech_gapic.yaml",
|
||||
grpc_service_config = "speech_grpc_service_config.json",
|
||||
package = "google.cloud.speech.v1p1beta1",
|
||||
service_yaml = "speech_v1p1beta1.yaml",
|
||||
deps = [
|
||||
|
|
@ -236,6 +238,7 @@ php_gapic_library(
|
|||
name = "speech_php_gapic",
|
||||
src = ":speech_proto_with_info",
|
||||
gapic_yaml = "speech_gapic.yaml",
|
||||
grpc_service_config = "speech_grpc_service_config.json",
|
||||
package = "google.cloud.speech.v1p1beta1",
|
||||
service_yaml = "speech_v1p1beta1.yaml",
|
||||
deps = [
|
||||
|
|
|
|||
|
|
@ -25,18 +25,8 @@ interfaces:
|
|||
- config.sample_rate_hertz=44100
|
||||
- config.encoding=FLAC
|
||||
- audio.uri="gs://cloud-samples-data/speech/brooklyn_bridge.flac"
|
||||
retry_params_def:
|
||||
- name: default
|
||||
initial_retry_delay_millis: 100
|
||||
retry_delay_multiplier: 1.3
|
||||
max_retry_delay_millis: 60000
|
||||
initial_rpc_timeout_millis: 1000000
|
||||
rpc_timeout_multiplier: 1
|
||||
max_rpc_timeout_millis: 1000000
|
||||
total_timeout_millis: 5000000
|
||||
methods:
|
||||
- name: Recognize
|
||||
retry_codes_name: idempotent
|
||||
sample_code_init_fields:
|
||||
- config.encoding=FLAC
|
||||
- config.sample_rate_hertz=44100
|
||||
|
|
@ -48,5 +38,3 @@ interfaces:
|
|||
- config.sample_rate_hertz=44100
|
||||
- config.language_code="en-US"
|
||||
- audio.uri=gs://bucket_name/file_name.flac
|
||||
- name: StreamingRecognize
|
||||
retry_codes_name: idempotent
|
||||
|
|
|
|||
Loading…
Reference in New Issue