Skip to content
This repository has been archived by the owner on Apr 20, 2024. It is now read-only.

Commit

Permalink
feat: Voice Activity Detection - adding speech event time and speech …
Browse files Browse the repository at this point in the history
…event type (#497)

* feat: enable "rest" transport in Python for services supporting numeric enums

PiperOrigin-RevId: 508143576

Source-Link: googleapis/googleapis@7a702a9

Source-Link: googleapis/googleapis-gen@6ad1279
Copy-Tag: eyJwIjoiLmdpdGh1Yi8uT3dsQm90LnlhbWwiLCJoIjoiNmFkMTI3OWMwZTdhYTc4N2FjNmI2NmM5ZmQ0YTIxMDY5MmVkZmZjZCJ9

* 🦉 Updates from OwlBot post-processor

See https://github.com/googleapis/repo-automation-bots/blob/main/packages/owl-bot/README.md

* fix: Add service_yaml_parameters to py_gapic_library BUILD.bazel targets

PiperOrigin-RevId: 510187992

Source-Link: googleapis/googleapis@5edc235

Source-Link: googleapis/googleapis-gen@b0bedb7
Copy-Tag: eyJwIjoiLmdpdGh1Yi8uT3dsQm90LnlhbWwiLCJoIjoiYjBiZWRiNzJlNDc2NWEzZTBiNjc0YTI4YzUwZWEwZjlhOWIyNmE4OSJ9

* 🦉 Updates from OwlBot post-processor

See https://github.com/googleapis/repo-automation-bots/blob/main/packages/owl-bot/README.md

* feat: Voice Activity Detection: adding speech event time and speech event type

PiperOrigin-RevId: 511839326

Source-Link: googleapis/googleapis@f04b136

Source-Link: googleapis/googleapis-gen@2130aec
Copy-Tag: eyJwIjoiLmdpdGh1Yi8uT3dsQm90LnlhbWwiLCJoIjoiMjEzMGFlYzk4MTgxY2ZiYTNlMmJjOTVjOWYxNGYxM2QwNThhYzNlYiJ9

* 🦉 Updates from OwlBot post-processor

See https://github.com/googleapis/repo-automation-bots/blob/main/packages/owl-bot/README.md

* chore: Update gapic-generator-python to v1.8.5

PiperOrigin-RevId: 511892190

Source-Link: googleapis/googleapis@a45d9c0

Source-Link: googleapis/googleapis-gen@1907294
Copy-Tag: eyJwIjoiLmdpdGh1Yi8uT3dsQm90LnlhbWwiLCJoIjoiMTkwNzI5NGIxZDgzNjVlYTI0ZjhjNWYyZTA1OWE2NDEyNGM0ZWQzYiJ9

* 🦉 Updates from OwlBot post-processor

See https://github.com/googleapis/repo-automation-bots/blob/main/packages/owl-bot/README.md

---------

Co-authored-by: Owl Bot <gcf-owl-bot[bot]@users.noreply.github.com>
Co-authored-by: Victor Chudnovsky <vchudnov@google.com>
  • Loading branch information
3 people committed Feb 28, 2023
1 parent ce2d044 commit a20d0f1
Show file tree
Hide file tree
Showing 38 changed files with 25,828 additions and 827 deletions.
75 changes: 75 additions & 0 deletions google/cloud/speech_v1/gapic_metadata.json
Expand Up @@ -116,6 +116,61 @@
]
}
}
},
"rest": {
"libraryClient": "AdaptationClient",
"rpcs": {
"CreateCustomClass": {
"methods": [
"create_custom_class"
]
},
"CreatePhraseSet": {
"methods": [
"create_phrase_set"
]
},
"DeleteCustomClass": {
"methods": [
"delete_custom_class"
]
},
"DeletePhraseSet": {
"methods": [
"delete_phrase_set"
]
},
"GetCustomClass": {
"methods": [
"get_custom_class"
]
},
"GetPhraseSet": {
"methods": [
"get_phrase_set"
]
},
"ListCustomClasses": {
"methods": [
"list_custom_classes"
]
},
"ListPhraseSet": {
"methods": [
"list_phrase_set"
]
},
"UpdateCustomClass": {
"methods": [
"update_custom_class"
]
},
"UpdatePhraseSet": {
"methods": [
"update_phrase_set"
]
}
}
}
}
},
Expand Down Expand Up @@ -160,6 +215,26 @@
]
}
}
},
"rest": {
"libraryClient": "SpeechClient",
"rpcs": {
"LongRunningRecognize": {
"methods": [
"long_running_recognize"
]
},
"Recognize": {
"methods": [
"recognize"
]
},
"StreamingRecognize": {
"methods": [
"streaming_recognize"
]
}
}
}
}
}
Expand Down
2 changes: 2 additions & 0 deletions google/cloud/speech_v1/services/adaptation/client.py
Expand Up @@ -54,6 +54,7 @@
from .transports.base import AdaptationTransport, DEFAULT_CLIENT_INFO
from .transports.grpc import AdaptationGrpcTransport
from .transports.grpc_asyncio import AdaptationGrpcAsyncIOTransport
from .transports.rest import AdaptationRestTransport


class AdaptationClientMeta(type):
Expand All @@ -67,6 +68,7 @@ class AdaptationClientMeta(type):
_transport_registry = OrderedDict() # type: Dict[str, Type[AdaptationTransport]]
_transport_registry["grpc"] = AdaptationGrpcTransport
_transport_registry["grpc_asyncio"] = AdaptationGrpcAsyncIOTransport
_transport_registry["rest"] = AdaptationRestTransport

def get_transport_class(
cls,
Expand Down
Expand Up @@ -19,15 +19,20 @@
from .base import AdaptationTransport
from .grpc import AdaptationGrpcTransport
from .grpc_asyncio import AdaptationGrpcAsyncIOTransport
from .rest import AdaptationRestTransport
from .rest import AdaptationRestInterceptor


# Compile a registry of transports.
_transport_registry = OrderedDict() # type: Dict[str, Type[AdaptationTransport]]
_transport_registry["grpc"] = AdaptationGrpcTransport
_transport_registry["grpc_asyncio"] = AdaptationGrpcAsyncIOTransport
_transport_registry["rest"] = AdaptationRestTransport

__all__ = (
"AdaptationTransport",
"AdaptationGrpcTransport",
"AdaptationGrpcAsyncIOTransport",
"AdaptationRestTransport",
"AdaptationRestInterceptor",
)

0 comments on commit a20d0f1

Please sign in to comment.