@Generated(value="by gapic-generator-java")
See: Description
| Class | Description |
|---|---|
| AdaptationClient |
Service Description: Service that implements Google Cloud Speech Adaptation API.
|
| AdaptationClient.ListCustomClassesFixedSizeCollection | |
| AdaptationClient.ListCustomClassesPage | |
| AdaptationClient.ListCustomClassesPagedResponse | |
| AdaptationClient.ListPhraseSetFixedSizeCollection | |
| AdaptationClient.ListPhraseSetPage | |
| AdaptationClient.ListPhraseSetPagedResponse | |
| AdaptationSettings |
Settings class to configure an instance of
AdaptationClient. |
| AdaptationSettings.Builder |
Builder for AdaptationSettings.
|
| SpeechClient |
Service Description: Service that implements Google Cloud Speech API.
|
| SpeechSettings |
Settings class to configure an instance of
SpeechClient. |
| SpeechSettings.Builder |
Builder for SpeechSettings.
|
The interfaces provided are listed below, along with usage samples.
======================= SpeechClient =======================
Service Description: Service that implements Google Cloud Speech API.
Sample for SpeechClient:
// This snippet has been automatically generated and should be regarded as a code template only.
// It will require modifications to work:
// - It may require correct/in-range values for request initialization.
// - It may require specifying regional endpoints when creating the service client as shown in
// https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
try (SpeechClient speechClient = SpeechClient.create()) {
RecognitionConfig config = RecognitionConfig.newBuilder().build();
RecognitionAudio audio = RecognitionAudio.newBuilder().build();
RecognizeResponse response = speechClient.recognize(config, audio);
}
======================= AdaptationClient =======================
Service Description: Service that implements Google Cloud Speech Adaptation API.
Sample for AdaptationClient:
// This snippet has been automatically generated and should be regarded as a code template only.
// It will require modifications to work:
// - It may require correct/in-range values for request initialization.
// - It may require specifying regional endpoints when creating the service client as shown in
// https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
try (AdaptationClient adaptationClient = AdaptationClient.create()) {
LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]");
PhraseSet phraseSet = PhraseSet.newBuilder().build();
String phraseSetId = "phraseSetId959902180";
PhraseSet response = adaptationClient.createPhraseSet(parent, phraseSet, phraseSetId);
}
Copyright © 2024 Google LLC. All rights reserved.