Skip to content

Commit df1283b

Browse files
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>
1 parent bcb9137 commit df1283b

File tree

22 files changed

+21919
-15
lines changed

22 files changed

+21919
-15
lines changed

packages/google-cloud-python-speech/docs/index.rst

Lines changed: 23 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -2,33 +2,44 @@
22

33
.. include:: multiprocessing.rst
44

5+
This package includes clients for multiple versions of Cloud Speech.
6+
By default, you will get version ``speech_v1``.
7+
58

69
API Reference
710
-------------
8-
911
.. toctree::
10-
:maxdepth: 2
12+
:maxdepth: 2
1113

12-
speech_v1/services
13-
speech_v1/types
14+
speech_v1/services
15+
speech_v1/types
1416

15-
An API and type reference is provided the first beta also:
17+
API Reference
18+
-------------
19+
.. toctree::
20+
:maxdepth: 2
1621

22+
speech_v1p1beta1/services
23+
speech_v1p1beta1/types
24+
25+
API Reference
26+
-------------
1727
.. toctree::
18-
:maxdepth: 2
28+
:maxdepth: 2
29+
30+
speech_v2/services
31+
speech_v2/types
1932

20-
speech_v1p1beta1/services
21-
speech_v1p1beta1/types
2233

2334
Migration Guide
2435
---------------
2536

26-
See the guide below for instructions on migrating to the 2.x release of this library.
37+
See the guide below for instructions on migrating to the latest version.
2738

2839
.. toctree::
2940
:maxdepth: 2
3041

31-
UPGRADING
42+
 UPGRADING
3243

3344

3445
Changelog
@@ -37,6 +48,6 @@ Changelog
3748
For a list of all ``google-cloud-speech`` releases:
3849

3950
.. toctree::
40-
:maxdepth: 2
51+
:maxdepth: 2
4152

42-
changelog
53+
changelog
Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
Services for Google Cloud Speech v2 API
2+
=======================================
3+
.. toctree::
4+
:maxdepth: 2
5+
6+
speech
Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
Speech
2+
------------------------
3+
4+
.. automodule:: google.cloud.speech_v2.services.speech
5+
:members:
6+
:inherited-members:
7+
8+
.. automodule:: google.cloud.speech_v2.services.speech.pagers
9+
:members:
10+
:inherited-members:
Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
Types for Google Cloud Speech v2 API
2+
====================================
3+
4+
.. automodule:: google.cloud.speech_v2.types
5+
:members:
6+
:undoc-members:
7+
:show-inheritance:
Lines changed: 133 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,133 @@
1+
# -*- coding: utf-8 -*-
2+
# Copyright 2022 Google LLC
3+
#
4+
# Licensed under the Apache License, Version 2.0 (the "License");
5+
# you may not use this file except in compliance with the License.
6+
# You may obtain a copy of the License at
7+
#
8+
# http://www.apache.org/licenses/LICENSE-2.0
9+
#
10+
# Unless required by applicable law or agreed to in writing, software
11+
# distributed under the License is distributed on an "AS IS" BASIS,
12+
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13+
# See the License for the specific language governing permissions and
14+
# limitations under the License.
15+
#
16+
17+
from .services.speech import SpeechClient
18+
from .services.speech import SpeechAsyncClient
19+
20+
from .types.cloud_speech import AutoDetectDecodingConfig
21+
from .types.cloud_speech import BatchRecognizeFileMetadata
22+
from .types.cloud_speech import BatchRecognizeFileResult
23+
from .types.cloud_speech import BatchRecognizeMetadata
24+
from .types.cloud_speech import BatchRecognizeRequest
25+
from .types.cloud_speech import BatchRecognizeResponse
26+
from .types.cloud_speech import BatchRecognizeTranscriptionMetadata
27+
from .types.cloud_speech import Config
28+
from .types.cloud_speech import CreateCustomClassRequest
29+
from .types.cloud_speech import CreatePhraseSetRequest
30+
from .types.cloud_speech import CreateRecognizerRequest
31+
from .types.cloud_speech import CustomClass
32+
from .types.cloud_speech import DeleteCustomClassRequest
33+
from .types.cloud_speech import DeletePhraseSetRequest
34+
from .types.cloud_speech import DeleteRecognizerRequest
35+
from .types.cloud_speech import ExplicitDecodingConfig
36+
from .types.cloud_speech import GetConfigRequest
37+
from .types.cloud_speech import GetCustomClassRequest
38+
from .types.cloud_speech import GetPhraseSetRequest
39+
from .types.cloud_speech import GetRecognizerRequest
40+
from .types.cloud_speech import ListCustomClassesRequest
41+
from .types.cloud_speech import ListCustomClassesResponse
42+
from .types.cloud_speech import ListPhraseSetsRequest
43+
from .types.cloud_speech import ListPhraseSetsResponse
44+
from .types.cloud_speech import ListRecognizersRequest
45+
from .types.cloud_speech import ListRecognizersResponse
46+
from .types.cloud_speech import OperationMetadata
47+
from .types.cloud_speech import PhraseSet
48+
from .types.cloud_speech import RecognitionConfig
49+
from .types.cloud_speech import RecognitionFeatures
50+
from .types.cloud_speech import RecognitionResponseMetadata
51+
from .types.cloud_speech import Recognizer
52+
from .types.cloud_speech import RecognizeRequest
53+
from .types.cloud_speech import RecognizeResponse
54+
from .types.cloud_speech import SpeakerDiarizationConfig
55+
from .types.cloud_speech import SpeechAdaptation
56+
from .types.cloud_speech import SpeechRecognitionAlternative
57+
from .types.cloud_speech import SpeechRecognitionResult
58+
from .types.cloud_speech import StreamingRecognitionConfig
59+
from .types.cloud_speech import StreamingRecognitionFeatures
60+
from .types.cloud_speech import StreamingRecognitionResult
61+
from .types.cloud_speech import StreamingRecognizeRequest
62+
from .types.cloud_speech import StreamingRecognizeResponse
63+
from .types.cloud_speech import UndeleteCustomClassRequest
64+
from .types.cloud_speech import UndeletePhraseSetRequest
65+
from .types.cloud_speech import UndeleteRecognizerRequest
66+
from .types.cloud_speech import UpdateConfigRequest
67+
from .types.cloud_speech import UpdateCustomClassRequest
68+
from .types.cloud_speech import UpdatePhraseSetRequest
69+
from .types.cloud_speech import UpdateRecognizerRequest
70+
from .types.cloud_speech import WordInfo
71+
72+
from google.cloud.speech_v1.helpers import SpeechHelpers
73+
74+
75+
class SpeechClient(SpeechHelpers, SpeechClient):
76+
__doc__ = SpeechClient.__doc__
77+
78+
79+
__all__ = (
80+
"SpeechAsyncClient",
81+
"AutoDetectDecodingConfig",
82+
"BatchRecognizeFileMetadata",
83+
"BatchRecognizeFileResult",
84+
"BatchRecognizeMetadata",
85+
"BatchRecognizeRequest",
86+
"BatchRecognizeResponse",
87+
"BatchRecognizeTranscriptionMetadata",
88+
"Config",
89+
"CreateCustomClassRequest",
90+
"CreatePhraseSetRequest",
91+
"CreateRecognizerRequest",
92+
"CustomClass",
93+
"DeleteCustomClassRequest",
94+
"DeletePhraseSetRequest",
95+
"DeleteRecognizerRequest",
96+
"ExplicitDecodingConfig",
97+
"GetConfigRequest",
98+
"GetCustomClassRequest",
99+
"GetPhraseSetRequest",
100+
"GetRecognizerRequest",
101+
"ListCustomClassesRequest",
102+
"ListCustomClassesResponse",
103+
"ListPhraseSetsRequest",
104+
"ListPhraseSetsResponse",
105+
"ListRecognizersRequest",
106+
"ListRecognizersResponse",
107+
"OperationMetadata",
108+
"PhraseSet",
109+
"RecognitionConfig",
110+
"RecognitionFeatures",
111+
"RecognitionResponseMetadata",
112+
"RecognizeRequest",
113+
"RecognizeResponse",
114+
"Recognizer",
115+
"SpeakerDiarizationConfig",
116+
"SpeechAdaptation",
117+
"SpeechClient",
118+
"SpeechRecognitionAlternative",
119+
"SpeechRecognitionResult",
120+
"StreamingRecognitionConfig",
121+
"StreamingRecognitionFeatures",
122+
"StreamingRecognitionResult",
123+
"StreamingRecognizeRequest",
124+
"StreamingRecognizeResponse",
125+
"UndeleteCustomClassRequest",
126+
"UndeletePhraseSetRequest",
127+
"UndeleteRecognizerRequest",
128+
"UpdateConfigRequest",
129+
"UpdateCustomClassRequest",
130+
"UpdatePhraseSetRequest",
131+
"UpdateRecognizerRequest",
132+
"WordInfo",
133+
)

0 commit comments

Comments
 (0)