-
Notifications
You must be signed in to change notification settings - Fork 1.5k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: added Speech-to-Text V2 API (#447)
* build: enable Speech v2 client library generation PiperOrigin-RevId: 477910378 Source-Link: googleapis/googleapis@3fde7ab Source-Link: googleapis/googleapis-gen@6369579 Copy-Tag: eyJwIjoiLmdpdGh1Yi8uT3dsQm90LnlhbWwiLCJoIjoiNjM2OTU3OTA2Y2M3ODY4MDY1YTUwY2VmNjFmNWU5OTVhNzVhZTNlNiJ9 * 🦉 Updates from OwlBot post-processor See https://github.com/googleapis/repo-automation-bots/blob/main/packages/owl-bot/README.md * chore: regenerate docs/index.rst * 🦉 Updates from OwlBot post-processor See https://github.com/googleapis/repo-automation-bots/blob/main/packages/owl-bot/README.md * 🦉 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: Anthonios Partheniou <partheniou@google.com>
- Loading branch information
1 parent
c8444eb
commit 99fd135
Showing
69 changed files
with
28,302 additions
and
15 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
6 changes: 6 additions & 0 deletions
6
packages/google-cloud-python-speech/docs/speech_v2/services.rst
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
Services for Google Cloud Speech v2 API | ||
======================================= | ||
.. toctree:: | ||
:maxdepth: 2 | ||
|
||
speech |
10 changes: 10 additions & 0 deletions
10
packages/google-cloud-python-speech/docs/speech_v2/speech.rst
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
Speech | ||
------------------------ | ||
|
||
.. automodule:: google.cloud.speech_v2.services.speech | ||
:members: | ||
:inherited-members: | ||
|
||
.. automodule:: google.cloud.speech_v2.services.speech.pagers | ||
:members: | ||
:inherited-members: |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
Types for Google Cloud Speech v2 API | ||
==================================== | ||
|
||
.. automodule:: google.cloud.speech_v2.types | ||
:members: | ||
:undoc-members: | ||
:show-inheritance: |
133 changes: 133 additions & 0 deletions
133
packages/google-cloud-python-speech/google/cloud/speech_v2/__init__.py
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,133 @@ | ||
# -*- coding: utf-8 -*- | ||
# Copyright 2022 Google LLC | ||
# | ||
# Licensed under the Apache License, Version 2.0 (the "License"); | ||
# you may not use this file except in compliance with the License. | ||
# You may obtain a copy of the License at | ||
# | ||
# http://www.apache.org/licenses/LICENSE-2.0 | ||
# | ||
# Unless required by applicable law or agreed to in writing, software | ||
# distributed under the License is distributed on an "AS IS" BASIS, | ||
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
# See the License for the specific language governing permissions and | ||
# limitations under the License. | ||
# | ||
|
||
from .services.speech import SpeechClient | ||
from .services.speech import SpeechAsyncClient | ||
|
||
from .types.cloud_speech import AutoDetectDecodingConfig | ||
from .types.cloud_speech import BatchRecognizeFileMetadata | ||
from .types.cloud_speech import BatchRecognizeFileResult | ||
from .types.cloud_speech import BatchRecognizeMetadata | ||
from .types.cloud_speech import BatchRecognizeRequest | ||
from .types.cloud_speech import BatchRecognizeResponse | ||
from .types.cloud_speech import BatchRecognizeTranscriptionMetadata | ||
from .types.cloud_speech import Config | ||
from .types.cloud_speech import CreateCustomClassRequest | ||
from .types.cloud_speech import CreatePhraseSetRequest | ||
from .types.cloud_speech import CreateRecognizerRequest | ||
from .types.cloud_speech import CustomClass | ||
from .types.cloud_speech import DeleteCustomClassRequest | ||
from .types.cloud_speech import DeletePhraseSetRequest | ||
from .types.cloud_speech import DeleteRecognizerRequest | ||
from .types.cloud_speech import ExplicitDecodingConfig | ||
from .types.cloud_speech import GetConfigRequest | ||
from .types.cloud_speech import GetCustomClassRequest | ||
from .types.cloud_speech import GetPhraseSetRequest | ||
from .types.cloud_speech import GetRecognizerRequest | ||
from .types.cloud_speech import ListCustomClassesRequest | ||
from .types.cloud_speech import ListCustomClassesResponse | ||
from .types.cloud_speech import ListPhraseSetsRequest | ||
from .types.cloud_speech import ListPhraseSetsResponse | ||
from .types.cloud_speech import ListRecognizersRequest | ||
from .types.cloud_speech import ListRecognizersResponse | ||
from .types.cloud_speech import OperationMetadata | ||
from .types.cloud_speech import PhraseSet | ||
from .types.cloud_speech import RecognitionConfig | ||
from .types.cloud_speech import RecognitionFeatures | ||
from .types.cloud_speech import RecognitionResponseMetadata | ||
from .types.cloud_speech import Recognizer | ||
from .types.cloud_speech import RecognizeRequest | ||
from .types.cloud_speech import RecognizeResponse | ||
from .types.cloud_speech import SpeakerDiarizationConfig | ||
from .types.cloud_speech import SpeechAdaptation | ||
from .types.cloud_speech import SpeechRecognitionAlternative | ||
from .types.cloud_speech import SpeechRecognitionResult | ||
from .types.cloud_speech import StreamingRecognitionConfig | ||
from .types.cloud_speech import StreamingRecognitionFeatures | ||
from .types.cloud_speech import StreamingRecognitionResult | ||
from .types.cloud_speech import StreamingRecognizeRequest | ||
from .types.cloud_speech import StreamingRecognizeResponse | ||
from .types.cloud_speech import UndeleteCustomClassRequest | ||
from .types.cloud_speech import UndeletePhraseSetRequest | ||
from .types.cloud_speech import UndeleteRecognizerRequest | ||
from .types.cloud_speech import UpdateConfigRequest | ||
from .types.cloud_speech import UpdateCustomClassRequest | ||
from .types.cloud_speech import UpdatePhraseSetRequest | ||
from .types.cloud_speech import UpdateRecognizerRequest | ||
from .types.cloud_speech import WordInfo | ||
|
||
from google.cloud.speech_v1.helpers import SpeechHelpers | ||
|
||
|
||
class SpeechClient(SpeechHelpers, SpeechClient): | ||
__doc__ = SpeechClient.__doc__ | ||
|
||
|
||
__all__ = ( | ||
"SpeechAsyncClient", | ||
"AutoDetectDecodingConfig", | ||
"BatchRecognizeFileMetadata", | ||
"BatchRecognizeFileResult", | ||
"BatchRecognizeMetadata", | ||
"BatchRecognizeRequest", | ||
"BatchRecognizeResponse", | ||
"BatchRecognizeTranscriptionMetadata", | ||
"Config", | ||
"CreateCustomClassRequest", | ||
"CreatePhraseSetRequest", | ||
"CreateRecognizerRequest", | ||
"CustomClass", | ||
"DeleteCustomClassRequest", | ||
"DeletePhraseSetRequest", | ||
"DeleteRecognizerRequest", | ||
"ExplicitDecodingConfig", | ||
"GetConfigRequest", | ||
"GetCustomClassRequest", | ||
"GetPhraseSetRequest", | ||
"GetRecognizerRequest", | ||
"ListCustomClassesRequest", | ||
"ListCustomClassesResponse", | ||
"ListPhraseSetsRequest", | ||
"ListPhraseSetsResponse", | ||
"ListRecognizersRequest", | ||
"ListRecognizersResponse", | ||
"OperationMetadata", | ||
"PhraseSet", | ||
"RecognitionConfig", | ||
"RecognitionFeatures", | ||
"RecognitionResponseMetadata", | ||
"RecognizeRequest", | ||
"RecognizeResponse", | ||
"Recognizer", | ||
"SpeakerDiarizationConfig", | ||
"SpeechAdaptation", | ||
"SpeechClient", | ||
"SpeechRecognitionAlternative", | ||
"SpeechRecognitionResult", | ||
"StreamingRecognitionConfig", | ||
"StreamingRecognitionFeatures", | ||
"StreamingRecognitionResult", | ||
"StreamingRecognizeRequest", | ||
"StreamingRecognizeResponse", | ||
"UndeleteCustomClassRequest", | ||
"UndeletePhraseSetRequest", | ||
"UndeleteRecognizerRequest", | ||
"UpdateConfigRequest", | ||
"UpdateCustomClassRequest", | ||
"UpdatePhraseSetRequest", | ||
"UpdateRecognizerRequest", | ||
"WordInfo", | ||
) |
Oops, something went wrong.