Skip to content

Commit 8c4e89f

Browse files
charlieyu1996nirupa-kumaralixhamiyoshi-automationrenovate-bot
authored
migrate code from googleapis/java-texttospeech (#7423)
* samples: Adding TTS Beta samples : Audio profile (#1152) * Adding TTS Beta samples : Audio profile * Updated based on comments : Adding TTS Beta samples - Audio profile * Updated based on comments : TTS Beta samples - Audio profile * Updated based on comments : TTS Beta samples - Audio profile * Updates after review * Updates after review * Updates after review : Please let this be the last one :) * Update to released client library * Update SynthesizeText.java Need to update the verification script to allow LLC. * Update SynthesizeText.java Need to update the verification script to allow LLC. * samples: TTS region tag update (#1190) * samples: scaffold pom.xml files (#86) This PR was generated using Autosynth. :rainbow: <details><summary>Log from Synthtool</summary> ``` 2020-03-17 11:56:07,231 synthtool > Executing /tmpfs/src/git/autosynth/working_repo/synth.py. 2020-03-17 11:56:07,289 synthtool > Ensuring dependencies. 2020-03-17 11:56:07,294 synthtool > Pulling artman image. latest: Pulling from googleapis/artman Digest: sha256:5ef340c8d9334719bc5c6981d95f4a5d2737b0a6a24f2b9a0d430e96fff85c5b Status: Image is up to date for googleapis/artman:latest 2020-03-17 11:56:08,321 synthtool > Cloning googleapis. 2020-03-17 11:56:08,930 synthtool > Running generator for google/cloud/texttospeech/artman_texttospeech_v1.yaml. 2020-03-17 11:56:17,316 synthtool > Generated code into /home/kbuilder/.cache/synthtool/googleapis/artman-genfiles/java. 2020-03-17 11:56:17,318 synthtool > Replaced '// Generated by the protocol buffer compiler. DO NOT EDIT!' in /home/kbuilder/.cache/synthtool/googleapis/artman-genfiles/java/proto-google-cloud-texttospeech-v1/src/main/java/com/google/cloud/texttospeech/v1/SynthesizeSpeechResponseOrBuilder.java. 2020-03-17 11:56:17,319 synthtool > Replaced '// Generated by the protocol buffer compiler. DO NOT EDIT!' in /home/kbuilder/.cache/synthtool/googleapis/artman-genfiles/java/proto-google-cloud-texttospeech-v1/src/main/java/com/google/cloud/texttospeech/v1/SynthesizeSpeechResponse.java. 2020-03-17 11:56:17,319 synthtool > Replaced '// Generated by the protocol buffer compiler. DO NOT EDIT!' in /home/kbuilder/.cache/synthtool/googleapis/artman-genfiles/java/proto-google-cloud-texttospeech-v1/src/main/java/com/google/cloud/texttospeech/v1/SynthesisInput.java. 2020-03-17 11:56:17,319 synthtool > Replaced '// Generated by the protocol buffer compiler. DO NOT EDIT!' in /home/kbuilder/.cache/synthtool/googleapis/artman-genfiles/java/proto-google-cloud-texttospeech-v1/src/main/java/com/google/cloud/texttospeech/v1/SsmlVoiceGender.java. 2020-03-17 11:56:17,319 synthtool > Replaced '// Generated by the protocol buffer compiler. DO NOT EDIT!' in /home/kbuilder/.cache/synthtool/googleapis/artman-genfiles/java/proto-google-cloud-texttospeech-v1/src/main/java/com/google/cloud/texttospeech/v1/TextToSpeechProto.java. 2020-03-17 11:56:17,320 synthtool > Replaced '// Generated by the protocol buffer compiler. DO NOT EDIT!' in /home/kbuilder/.cache/synthtool/googleapis/artman-genfiles/java/proto-google-cloud-texttospeech-v1/src/main/java/com/google/cloud/texttospeech/v1/ListVoicesResponse.java. 2020-03-17 11:56:17,320 synthtool > Replaced '// Generated by the protocol buffer compiler. DO NOT EDIT!' in /home/kbuilder/.cache/synthtool/googleapis/artman-genfiles/java/proto-google-cloud-texttospeech-v1/src/main/java/com/google/cloud/texttospeech/v1/ListVoicesRequestOrBuilder.java. 2020-03-17 11:56:17,320 synthtool > Replaced '// Generated by the protocol buffer compiler. DO NOT EDIT!' in /home/kbuilder/.cache/synthtool/googleapis/artman-genfiles/java/proto-google-cloud-texttospeech-v1/src/main/java/com/google/cloud/texttospeech/v1/VoiceSelectionParams.java. 2020-03-17 11:56:17,320 synthtool > Replaced '// Generated by the protocol buffer compiler. DO NOT EDIT!' in /home/kbuilder/.cache/synthtool/googleapis/artman-genfiles/java/proto-google-cloud-texttospeech-v1/src/main/java/com/google/cloud/texttospeech/v1/ListVoicesRequest.java. 2020-03-17 11:56:17,320 synthtool > Replaced '// Generated by the protocol buffer compiler. DO NOT EDIT!' in /home/kbuilder/.cache/synthtool/googleapis/artman-genfiles/java/proto-google-cloud-texttospeech-v1/src/main/java/com/google/cloud/texttospeech/v1/SynthesizeSpeechRequestOrBuilder.java. 2020-03-17 11:56:17,321 synthtool > Replaced '// Generated by the protocol buffer compiler. DO NOT EDIT!' in /home/kbuilder/.cache/synthtool/googleapis/artman-genfiles/java/proto-google-cloud-texttospeech-v1/src/main/java/com/google/cloud/texttospeech/v1/AudioConfigOrBuilder.java. 2020-03-17 11:56:17,321 synthtool > Replaced '// Generated by the protocol buffer compiler. DO NOT EDIT!' in /home/kbuilder/.cache/synthtool/googleapis/artman-genfiles/java/proto-google-cloud-texttospeech-v1/src/main/java/com/google/cloud/texttospeech/v1/AudioEncoding.java. 2020-03-17 11:56:17,321 synthtool > Replaced '// Generated by the protocol buffer compiler. DO NOT EDIT!' in /home/kbuilder/.cache/synthtool/googleapis/artman-genfiles/java/proto-google-cloud-texttospeech-v1/src/main/java/com/google/cloud/texttospeech/v1/VoiceOrBuilder.java. 2020-03-17 11:56:17,321 synthtool > Replaced '// Generated by the protocol buffer compiler. DO NOT EDIT!' in /home/kbuilder/.cache/synthtool/googleapis/artman-genfiles/java/proto-google-cloud-texttospeech-v1/src/main/java/com/google/cloud/texttospeech/v1/AudioConfig.java. 2020-03-17 11:56:17,321 synthtool > Replaced '// Generated by the protocol buffer compiler. DO NOT EDIT!' in /home/kbuilder/.cache/synthtool/googleapis/artman-genfiles/java/proto-google-cloud-texttospeech-v1/src/main/java/com/google/cloud/texttospeech/v1/ListVoicesResponseOrBuilder.java. 2020-03-17 11:56:17,322 synthtool > Replaced '// Generated by the protocol buffer compiler. DO NOT EDIT!' in /home/kbuilder/.cache/synthtool/googleapis/artman-genfiles/java/proto-google-cloud-texttospeech-v1/src/main/java/com/google/cloud/texttospeech/v1/Voice.java. 2020-03-17 11:56:17,322 synthtool > Replaced '// Generated by the protocol buffer compiler. DO NOT EDIT!' in /home/kbuilder/.cache/synthtool/googleapis/artman-genfiles/java/proto-google-cloud-texttospeech-v1/src/main/java/com/google/cloud/texttospeech/v1/SynthesisInputOrBuilder.java. 2020-03-17 11:56:17,322 synthtool > Replaced '// Generated by the protocol buffer compiler. DO NOT EDIT!' in /home/kbuilder/.cache/synthtool/googleapis/artman-genfiles/java/proto-google-cloud-texttospeech-v1/src/main/java/com/google/cloud/texttospeech/v1/SynthesizeSpeechRequest.java. 2020-03-17 11:56:17,322 synthtool > Replaced '// Generated by the protocol buffer compiler. DO NOT EDIT!' in /home/kbuilder/.cache/synthtool/googleapis/artman-genfiles/java/proto-google-cloud-texttospeech-v1/src/main/java/com/google/cloud/texttospeech/v1/VoiceSelectionParamsOrBuilder.java. 2020-03-17 11:56:17,327 synthtool > No replacements made in [PosixPath('/home/kbuilder/.cache/synthtool/googleapis/artman-genfiles/java/proto-google-cloud-texttospeech-v1/src/**/*Name.java'), PosixPath('/home/kbuilder/.cache/synthtool/googleapis/artman-genfiles/java/proto-google-cloud-texttospeech-v1/src/**/*Names.java')] for pattern /\* \* Copyright \d{4} 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. \*/ , maybe replacement is no longer needed? 2020-03-17 11:56:17,328 synthtool > Replaced '^package (.*);' in /home/kbuilder/.cache/synthtool/googleapis/artman-genfiles/java/grpc-google-cloud-texttospeech-v1/src/main/java/com/google/cloud/texttospeech/v1/TextToSpeechGrpc.java. 2020-03-17 11:56:17,337 synthtool > No files in sources [PosixPath('/home/kbuilder/.cache/synthtool/googleapis/artman-genfiles/java/gapic-google-cloud-texttospeech-v1/samples/src')] were copied. Does the source contain files? 2020-03-17 11:56:17,338 synthtool > No files in sources [PosixPath('/home/kbuilder/.cache/synthtool/googleapis/artman-genfiles/java/gapic-google-cloud-texttospeech-v1/samples/resources')] were copied. Does the source contain files? 2020-03-17 11:56:17,338 synthtool > No files in sources [PosixPath('/home/kbuilder/.cache/synthtool/googleapis/artman-genfiles/java/gapic-google-cloud-texttospeech-v1/samples/src/**/*.manifest.yaml')] were copied. Does the source contain files? 2020-03-17 11:56:17,339 synthtool > Running java formatter on 24 files 2020-03-17 11:56:19,962 synthtool > Running java formatter on 1 files 2020-03-17 11:56:21,823 synthtool > Running java formatter on 19 files 2020-03-17 11:56:25,408 synthtool > Running java formatter on 0 files 2020-03-17 11:56:25,695 synthtool > Running generator for google/cloud/texttospeech/artman_texttospeech_v1beta1.yaml. 2020-03-17 11:56:34,143 synthtool > Generated code into /home/kbuilder/.cache/synthtool/googleapis/artman-genfiles/java. 2020-03-17 11:56:34,144 synthtool > Replaced '// Generated by the protocol buffer compiler. DO NOT EDIT!' in /home/kbuilder/.cache/synthtool/googleapis/artman-genfiles/java/proto-google-cloud-texttospeech-v1beta1/src/main/java/com/google/cloud/texttospeech/v1beta1/SynthesizeSpeechResponseOrBuilder.java. 2020-03-17 11:56:34,144 synthtool > Replaced '// Generated by the protocol buffer compiler. DO NOT EDIT!' in /home/kbuilder/.cache/synthtool/googleapis/artman-genfiles/java/proto-google-cloud-texttospeech-v1beta1/src/main/java/com/google/cloud/texttospeech/v1beta1/SynthesizeSpeechResponse.java. 2020-03-17 11:56:34,145 synthtool > Replaced '// Generated by the protocol buffer compiler. DO NOT EDIT!' in /home/kbuilder/.cache/synthtool/googleapis/artman-genfiles/java/proto-google-cloud-texttospeech-v1beta1/src/main/java/com/google/cloud/texttospeech/v1beta1/SynthesisInput.java. 2020-03-17 11:56:34,145 synthtool > Replaced '// Generated by the protocol buffer compiler. DO NOT EDIT!' in /home/kbuilder/.cache/synthtool/googleapis/artman-genfiles/java/proto-google-cloud-texttospeech-v1beta1/src/main/java/com/google/cloud/texttospeech/v1beta1/SsmlVoiceGender.java. 2020-03-17 11:56:34,145 synthtool > Replaced '// Generated by the protocol buffer compiler. DO NOT EDIT!' in /home/kbuilder/.cache/synthtool/googleapis/artman-genfiles/java/proto-google-cloud-texttospeech-v1beta1/src/main/java/com/google/cloud/texttospeech/v1beta1/TextToSpeechProto.java. 2020-03-17 11:56:34,145 synthtool > Replaced '// Generated by the protocol buffer compiler. DO NOT EDIT!' in /home/kbuilder/.cache/synthtool/googleapis/artman-genfiles/java/proto-google-cloud-texttospeech-v1beta1/src/main/java/com/google/cloud/texttospeech/v1beta1/ListVoicesResponse.java. 2020-03-17 11:56:34,145 synthtool > Replaced '// Generated by the protocol buffer compiler. DO NOT EDIT!' in /home/kbuilder/.cache/synthtool/googleapis/artman-genfiles/java/proto-google-cloud-texttospeech-v1beta1/src/main/java/com/google/cloud/texttospeech/v1beta1/ListVoicesRequestOrBuilder.java. 2020-03-17 11:56:34,146 synthtool > Replaced '// Generated by the protocol buffer compiler. DO NOT EDIT!' in /home/kbuilder/.cache/synthtool/googleapis/artman-genfiles/java/proto-google-cloud-texttospeech-v1beta1/src/main/java/com/google/cloud/texttospeech/v1beta1/VoiceSelectionParams.java. 2020-03-17 11:56:34,146 synthtool > Replaced '// Generated by the protocol buffer compiler. DO NOT EDIT!' in /home/kbuilder/.cache/synthtool/googleapis/artman-genfiles/java/proto-google-cloud-texttospeech-v1beta1/src/main/java/com/google/cloud/texttospeech/v1beta1/ListVoicesRequest.java. 2020-03-17 11:56:34,146 synthtool > Replaced '// Generated by the protocol buffer compiler. DO NOT EDIT!' in /home/kbuilder/.cache/synthtool/googleapis/artman-genfiles/java/proto-google-cloud-texttospeech-v1beta1/src/main/java/com/google/cloud/texttospeech/v1beta1/SynthesizeSpeechRequestOrBuilder.java. 2020-03-17 11:56:34,146 synthtool > Replaced '// Generated by the protocol buffer compiler. DO NOT EDIT!' in /home/kbuilder/.cache/synthtool/googleapis/artman-genfiles/java/proto-google-cloud-texttospeech-v1beta1/src/main/java/com/google/cloud/texttospeech/v1beta1/AudioConfigOrBuilder.java. 2020-03-17 11:56:34,146 synthtool > Replaced '// Generated by the protocol buffer compiler. DO NOT EDIT!' in /home/kbuilder/.cache/synthtool/googleapis/artman-genfiles/java/proto-google-cloud-texttospeech-v1beta1/src/main/java/com/google/cloud/texttospeech/v1beta1/AudioEncoding.java. 2020-03-17 11:56:34,146 synthtool > Replaced '// Generated by the protocol buffer compiler. DO NOT EDIT!' in /home/kbuilder/.cache/synthtool/googleapis/artman-genfiles/java/proto-google-cloud-texttospeech-v1beta1/src/main/java/com/google/cloud/texttospeech/v1beta1/VoiceOrBuilder.java. 2020-03-17 11:56:34,147 synthtool > Replaced '// Generated by the protocol buffer compiler. DO NOT EDIT!' in /home/kbuilder/.cache/synthtool/googleapis/artman-genfiles/java/proto-google-cloud-texttospeech-v1beta1/src/main/java/com/google/cloud/texttospeech/v1beta1/AudioConfig.java. 2020-03-17 11:56:34,147 synthtool > Replaced '// Generated by the protocol buffer compiler. DO NOT EDIT!' in /home/kbuilder/.cache/synthtool/googleapis/artman-genfiles/java/proto-google-cloud-texttospeech-v1beta1/src/main/java/com/google/cloud/texttospeech/v1beta1/ListVoicesResponseOrBuilder.java. 2020-03-17 11:56:34,147 synthtool > Replaced '// Generated by the protocol buffer compiler. DO NOT EDIT!' in /home/kbuilder/.cache/synthtool/googleapis/artman-genfiles/java/proto-google-cloud-texttospeech-v1beta1/src/main/java/com/google/cloud/texttospeech/v1beta1/Voice.java. 2020-03-17 11:56:34,147 synthtool > Replaced '// Generated by the protocol buffer compiler. DO NOT EDIT!' in /home/kbuilder/.cache/synthtool/googleapis/artman-genfiles/java/proto-google-cloud-texttospeech-v1beta1/src/main/java/com/google/cloud/texttospeech/v1beta1/SynthesisInputOrBuilder.java. 2020-03-17 11:56:34,148 synthtool > Replaced '// Generated by the protocol buffer compiler. DO NOT EDIT!' in /home/kbuilder/.cache/synthtool/googleapis/artman-genfiles/java/proto-google-cloud-texttospeech-v1beta1/src/main/java/com/google/cloud/texttospeech/v1beta1/SynthesizeSpeechRequest.java. 2020-03-17 11:56:34,148 synthtool > Replaced '// Generated by the protocol buffer compiler. DO NOT EDIT!' in /home/kbuilder/.cache/synthtool/googleapis/artman-genfiles/java/proto-google-cloud-texttospeech-v1beta1/src/main/java/com/google/cloud/texttospeech/v1beta1/VoiceSelectionParamsOrBuilder.java. 2020-03-17 11:56:34,149 synthtool > No replacements made in [PosixPath('/home/kbuilder/.cache/synthtool/googleapis/artman-genfiles/java/proto-google-cloud-texttospeech-v1beta1/src/**/*Name.java'), PosixPath('/home/kbuilder/.cache/synthtool/googleapis/artman-genfiles/java/proto-google-cloud-texttospeech-v1beta1/src/**/*Names.java')] for pattern /\* \* Copyright \d{4} 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. \*/ , maybe replacement is no longer needed? 2020-03-17 11:56:34,150 synthtool > Replaced '^package (.*);' in /home/kbuilder/.cache/synthtool/googleapis/artman-genfiles/java/grpc-google-cloud-texttospeech-v1beta1/src/main/java/com/google/cloud/texttospeech/v1beta1/TextToSpeechGrpc.java. 2020-03-17 11:56:34,172 synthtool > No files in sources [PosixPath('/home/kbuilder/.cache/synthtool/googleapis/artman-genfiles/java/gapic-google-cloud-texttospeech-v1beta1/samples/src')] were copied. Does the source contain files? 2020-03-17 11:56:34,172 synthtool > No files in sources [PosixPath('/home/kbuilder/.cache/synthtool/googleapis/artman-genfiles/java/gapic-google-cloud-texttospeech-v1beta1/samples/resources')] were copied. Does the source contain files? 2020-03-17 11:56:34,173 synthtool > No files in sources [PosixPath('/home/kbuilder/.cache/synthtool/googleapis/artman-genfiles/java/gapic-google-cloud-texttospeech-v1beta1/samples/src/**/*.manifest.yaml')] were copied. Does the source contain files? 2020-03-17 11:56:34,174 synthtool > Running java formatter on 24 files 2020-03-17 11:56:36,848 synthtool > Running java formatter on 1 files 2020-03-17 11:56:38,650 synthtool > Running java formatter on 19 files 2020-03-17 11:56:42,251 synthtool > Running java formatter on 0 files .github/ISSUE_TEMPLATE/bug_report.md .github/ISSUE_TEMPLATE/feature_request.md .github/ISSUE_TEMPLATE/support_request.md .github/PULL_REQUEST_TEMPLATE.md .github/release-please.yml .github/trusted-contribution.yml .kokoro/build.bat .kokoro/build.sh .kokoro/coerce_logs.sh .kokoro/common.cfg .kokoro/continuous/common.cfg .kokoro/continuous/dependencies.cfg .kokoro/continuous/integration.cfg .kokoro/continuous/java11.cfg .kokoro/continuous/java7.cfg .kokoro/continuous/java8-osx.cfg .kokoro/continuous/java8-win.cfg .kokoro/continuous/java8.cfg .kokoro/continuous/lint.cfg .kokoro/continuous/propose_release.cfg .kokoro/continuous/samples.cfg .kokoro/dependencies.sh .kokoro/linkage-monitor.sh .kokoro/nightly/common.cfg .kokoro/nightly/dependencies.cfg .kokoro/nightly/integration.cfg .kokoro/nightly/java11.cfg .kokoro/nightly/java7.cfg .kokoro/nightly/java8-osx.cfg .kokoro/nightly/java8-win.cfg .kokoro/nightly/java8.cfg .kokoro/nightly/lint.cfg .kokoro/nightly/samples.cfg .kokoro/presubmit/clirr.cfg .kokoro/presubmit/common.cfg .kokoro/presubmit/dependencies.cfg .kokoro/presubmit/integration.cfg .kokoro/presubmit/java11.cfg .kokoro/presubmit/java7.cfg .kokoro/presubmit/java8-osx.cfg .kokoro/presubmit/java8-win.cfg .kokoro/presubmit/java8.cfg .kokoro/presubmit/linkage-monitor.cfg .kokoro/presubmit/lint.cfg .kokoro/presubmit/samples.cfg .kokoro/release/bump_snapshot.cfg .kokoro/release/common.cfg .kokoro/release/common.sh .kokoro/release/drop.cfg .kokoro/release/drop.sh .kokoro/release/promote.cfg .kokoro/release/promote.sh .kokoro/release/publish_javadoc.cfg .kokoro/release/publish_javadoc.sh .kokoro/release/snapshot.cfg .kokoro/release/snapshot.sh .kokoro/release/stage.cfg .kokoro/release/stage.sh .kokoro/trampoline.sh CODE_OF_CONDUCT.md CONTRIBUTING.md LICENSE README.md codecov.yaml java.header license-checks.xml renovate.json samples/install-without-bom/pom.xml samples/pom.xml samples/snapshot/pom.xml samples/snippets/pom.xml 2020-03-17 11:56:42,762 synthtool > merge: CODE_OF_CONDUCT.md 2020-03-17 11:56:42,762 synthtool > merge: java.header 2020-03-17 11:56:42,762 synthtool > merge: license-checks.xml 2020-03-17 11:56:42,763 synthtool > merge: LICENSE 2020-03-17 11:56:42,763 synthtool > merge: README.md 2020-03-17 11:56:42,763 synthtool > merge: CONTRIBUTING.md 2020-03-17 11:56:42,764 synthtool > merge: renovate.json 2020-03-17 11:56:42,764 synthtool > merge: codecov.yaml 2020-03-17 11:56:42,765 synthtool > merge: .kokoro/build.sh 2020-03-17 11:56:42,765 synthtool > merge: .kokoro/coerce_logs.sh 2020-03-17 11:56:42,766 synthtool > merge: .kokoro/dependencies.sh 2020-03-17 11:56:42,766 synthtool > merge: .kokoro/linkage-monitor.sh 2020-03-17 11:56:42,766 synthtool > merge: .kokoro/trampoline.sh 2020-03-17 11:56:42,766 synthtool > merge: .kokoro/common.cfg 2020-03-17 11:56:42,767 synthtool > merge: .kokoro/build.bat 2020-03-17 11:56:42,767 synthtool > merge: .kokoro/release/promote.sh 2020-03-17 11:56:42,767 synthtool > merge: .kokoro/release/snapshot.sh 2020-03-17 11:56:42,767 synthtool > merge: .kokoro/release/stage.sh 2020-03-17 11:56:42,768 synthtool > merge: .kokoro/release/bump_snapshot.cfg 2020-03-17 11:56:42,768 synthtool > merge: .kokoro/release/drop.cfg 2020-03-17 11:56:42,768 synthtool > merge: .kokoro/release/snapshot.cfg 2020-03-17 11:56:42,768 synthtool > merge: .kokoro/release/promote.cfg 2020-03-17 11:56:42,769 synthtool > merge: .kokoro/release/publish_javadoc.sh 2020-03-17 11:56:42,769 synthtool > merge: .kokoro/release/common.cfg 2020-03-17 11:56:42,769 synthtool > merge: .kokoro/release/drop.sh 2020-03-17 11:56:42,769 synthtool > merge: .kokoro/release/publish_javadoc.cfg 2020-03-17 11:56:42,770 synthtool > merge: .kokoro/release/stage.cfg 2020-03-17 11:56:42,770 synthtool > merge: .kokoro/release/common.sh 2020-03-17 11:56:42,770 synthtool > merge: .kokoro/nightly/lint.cfg 2020-03-17 11:56:42,771 synthtool > merge: .kokoro/nightly/java11.cfg 2020-03-17 11:56:42,771 synthtool > merge: .kokoro/nightly/samples.cfg 2020-03-17 11:56:42,771 synthtool > merge: .kokoro/nightly/java8.cfg 2020-03-17 11:56:42,771 synthtool > merge: .kokoro/nightly/java7.cfg 2020-03-17 11:56:42,772 synthtool > merge: .kokoro/nightly/common.cfg 2020-03-17 11:56:42,772 synthtool > merge: .kokoro/nightly/dependencies.cfg 2020-03-17 11:56:42,772 synthtool > merge: .kokoro/nightly/java8-osx.cfg 2020-03-17 11:56:42,772 synthtool > merge: .kokoro/nightly/java8-win.cfg 2020-03-17 11:56:42,773 synthtool > merge: .kokoro/nightly/integration.cfg 2020-03-17 11:56:42,773 synthtool > merge: .kokoro/presubmit/lint.cfg 2020-03-17 11:56:42,773 synthtool > merge: .kokoro/presubmit/clirr.cfg 2020-03-17 11:56:42,774 synthtool > merge: .kokoro/presubmit/java11.cfg 2020-03-17 11:56:42,774 synthtool > merge: .kokoro/presubmit/samples.cfg 2020-03-17 11:56:42,774 synthtool > merge: .kokoro/presubmit/linkage-monitor.cfg 2020-03-17 11:56:42,774 synthtool > merge: .kokoro/presubmit/java8.cfg 2020-03-17 11:56:42,775 synthtool > merge: .kokoro/presubmit/java7.cfg 2020-03-17 11:56:42,775 synthtool > merge: .kokoro/presubmit/common.cfg 2020-03-17 11:56:42,775 synthtool > merge: .kokoro/presubmit/dependencies.cfg 2020-03-17 11:56:42,775 synthtool > merge: .kokoro/presubmit/java8-osx.cfg 2020-03-17 11:56:42,776 synthtool > merge: .kokoro/presubmit/java8-win.cfg 2020-03-17 11:56:42,776 synthtool > merge: .kokoro/presubmit/integration.cfg 2020-03-17 11:56:42,776 synthtool > merge: .kokoro/continuous/lint.cfg 2020-03-17 11:56:42,777 synthtool > merge: .kokoro/continuous/java11.cfg 2020-03-17 11:56:42,777 synthtool > merge: .kokoro/continuous/samples.cfg 2020-03-17 11:56:42,777 synthtool > merge: .kokoro/continuous/java8.cfg 2020-03-17 11:56:42,777 synthtool > merge: .kokoro/continuous/java7.cfg 2020-03-17 11:56:42,778 synthtool > merge: .kokoro/continuous/propose_release.cfg 2020-03-17 11:56:42,778 synthtool > merge: .kokoro/continuous/common.cfg 2020-03-17 11:56:42,778 synthtool > merge: .kokoro/continuous/dependencies.cfg 2020-03-17 11:56:42,778 synthtool > merge: .kokoro/continuous/java8-osx.cfg 2020-03-17 11:56:42,779 synthtool > merge: .kokoro/continuous/java8-win.cfg 2020-03-17 11:56:42,779 synthtool > merge: .kokoro/continuous/integration.cfg 2020-03-17 11:56:42,779 synthtool > merge: .github/trusted-contribution.yml 2020-03-17 11:56:42,779 synthtool > merge: .github/release-please.yml 2020-03-17 11:56:42,780 synthtool > merge: .github/PULL_REQUEST_TEMPLATE.md 2020-03-17 11:56:42,780 synthtool > merge: .github/ISSUE_TEMPLATE/feature_request.md 2020-03-17 11:56:42,780 synthtool > merge: .github/ISSUE_TEMPLATE/bug_report.md 2020-03-17 11:56:42,780 synthtool > merge: .github/ISSUE_TEMPLATE/support_request.md 2020-03-17 11:56:42,786 synthtool > Wrote metadata to synth.metadata. ``` </details> * chore(deps): update dependency com.google.cloud:libraries-bom to v4.3.0 (#93) This PR contains the following updates: | Package | Update | Change | |---|---|---| | [com.google.cloud:libraries-bom](https://togithub.com/GoogleCloudPlatform/cloud-opensource-java) | minor | `4.2.0` -> `4.3.0` | --- ### Renovate configuration :date: **Schedule**: At any time (no schedule defined). :vertical_traffic_light: **Automerge**: Disabled by config. Please merge this manually once you are satisfied. :recycle: **Rebasing**: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox. :no_bell: **Ignore**: Close this PR and you won't be reminded about this update again. --- - [ ] <!-- rebase-check -->If you want to rebase/retry this PR, check this box --- This PR has been generated by [WhiteSource Renovate](https://renovate.whitesourcesoftware.com). View repository job log [here](https://app.renovatebot.com/dashboard#googleapis/java-texttospeech). * deps: update dependency com.google.cloud.samples:shared-configuration to v1.0.13 (#97) * samples: update shared config (#2443) * update shared config * Update to 1.0.13 * lint * Fix linting * lint * fix imports Co-authored-by: Les Vogel <[email protected]> * chore(deps): update dependency com.google.cloud.samples:shared-configuration to v1.0.14 (#100) This PR contains the following updates: | Package | Update | Change | |---|---|---| | [com.google.cloud.samples:shared-configuration](https://togithub.com/GoogleCloudPlatform/java-repo-tools) | patch | `1.0.13` -> `1.0.14` | --- ### Release Notes <details> <summary>GoogleCloudPlatform/java-repo-tools</summary> ### [`v1.0.14`](https://togithub.com/GoogleCloudPlatform/java-repo-tools/releases/v1.0.14) [Compare Source](https://togithub.com/GoogleCloudPlatform/java-repo-tools/compare/v1.0.13...v1.0.14) - Update CheckStyle to 8.31 - Add SpotBugs </details> --- ### Renovate configuration :date: **Schedule**: At any time (no schedule defined). :vertical_traffic_light: **Automerge**: Disabled by config. Please merge this manually once you are satisfied. :recycle: **Rebasing**: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox. :no_bell: **Ignore**: Close this PR and you won't be reminded about this update again. --- - [ ] <!-- rebase-check -->If you want to rebase/retry this PR, check this box --- This PR has been generated by [WhiteSource Renovate](https://renovate.whitesourcesoftware.com). View repository job log [here](https://app.renovatebot.com/dashboard#googleapis/java-texttospeech). * chore(deps): update dependency com.google.cloud:libraries-bom to v4.4.0 (#101) This PR contains the following updates: | Package | Update | Change | |---|---|---| | [com.google.cloud:libraries-bom](https://togithub.com/GoogleCloudPlatform/cloud-opensource-java) | minor | `4.3.0` -> `4.4.0` | --- ### Renovate configuration :date: **Schedule**: At any time (no schedule defined). :vertical_traffic_light: **Automerge**: Disabled by config. Please merge this manually once you are satisfied. :recycle: **Rebasing**: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox. :no_bell: **Ignore**: Close this PR and you won't be reminded about this update again. --- - [ ] <!-- rebase-check -->If you want to rebase/retry this PR, check this box --- This PR has been generated by [WhiteSource Renovate](https://renovate.whitesourcesoftware.com). View repository job log [here](https://app.renovatebot.com/dashboard#googleapis/java-texttospeech). * chore(deps): update dependency com.google.cloud.samples:shared-configuration to v1.0.15 (#103) This PR contains the following updates: | Package | Update | Change | |---|---|---| | [com.google.cloud.samples:shared-configuration](https://togithub.com/GoogleCloudPlatform/java-repo-tools) | patch | `1.0.14` -> `1.0.15` | --- ### Release Notes <details> <summary>GoogleCloudPlatform/java-repo-tools</summary> ### [`v1.0.15`](https://togithub.com/GoogleCloudPlatform/java-repo-tools/releases/v1.0.15) [Compare Source](https://togithub.com/GoogleCloudPlatform/java-repo-tools/compare/v1.0.14...v1.0.15) - Move some stuff around (in prep for a change to release process) pom.xml's - Add an exclude filter for SpotBugs. (disable the Java 11 surprise) - Don't fail on SpotBugs issues for now - add PMD reporting - Don't fail on PMD issues for now. </details> --- ### Renovate configuration :date: **Schedule**: At any time (no schedule defined). :vertical_traffic_light: **Automerge**: Disabled by config. Please merge this manually once you are satisfied. :recycle: **Rebasing**: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox. :no_bell: **Ignore**: Close this PR and you won't be reminded about this update again. --- - [ ] <!-- rebase-check -->If you want to rebase/retry this PR, check this box --- This PR has been generated by [WhiteSource Renovate](https://renovate.whitesourcesoftware.com). View repository job log [here](https://app.renovatebot.com/dashboard#googleapis/java-texttospeech). * chore(deps): update dependency com.google.cloud:libraries-bom to v4.4.1 (#104) This PR contains the following updates: | Package | Update | Change | |---|---|---| | [com.google.cloud:libraries-bom](https://togithub.com/GoogleCloudPlatform/cloud-opensource-java) | patch | `4.4.0` -> `4.4.1` | --- ### Renovate configuration :date: **Schedule**: At any time (no schedule defined). :vertical_traffic_light: **Automerge**: Disabled by config. Please merge this manually once you are satisfied. :recycle: **Rebasing**: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox. :no_bell: **Ignore**: Close this PR and you won't be reminded about this update again. --- - [ ] <!-- rebase-check -->If you want to rebase/retry this PR, check this box --- This PR has been generated by [WhiteSource Renovate](https://renovate.whitesourcesoftware.com). View repository job log [here](https://app.renovatebot.com/dashboard#googleapis/java-texttospeech). * chore(deps): update dependency com.google.cloud:libraries-bom to v5 (#116) This PR contains the following updates: | Package | Update | Change | |---|---|---| | [com.google.cloud:libraries-bom](https://togithub.com/GoogleCloudPlatform/cloud-opensource-java) | major | `4.4.1` -> `5.0.0` | --- ### Renovate configuration :date: **Schedule**: At any time (no schedule defined). :vertical_traffic_light: **Automerge**: Disabled by config. Please merge this manually once you are satisfied. :recycle: **Rebasing**: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox. :no_bell: **Ignore**: Close this PR and you won't be reminded about this update again. --- - [ ] <!-- rebase-check -->If you want to rebase/retry this PR, check this box --- This PR has been generated by [WhiteSource Renovate](https://renovate.whitesourcesoftware.com). View repository job log [here](https://app.renovatebot.com/dashboard#googleapis/java-texttospeech). * chore(deps): update dependency com.google.cloud:libraries-bom to v5.1.0 (#117) This PR contains the following updates: | Package | Update | Change | |---|---|---| | [com.google.cloud:libraries-bom](https://togithub.com/GoogleCloudPlatform/cloud-opensource-java) | minor | `5.0.0` -> `5.1.0` | --- ### Renovate configuration :date: **Schedule**: At any time (no schedule defined). :vertical_traffic_light: **Automerge**: Disabled by config. Please merge this manually once you are satisfied. :recycle: **Rebasing**: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox. :no_bell: **Ignore**: Close this PR and you won't be reminded about this update again. --- - [ ] <!-- rebase-check -->If you want to rebase/retry this PR, check this box --- This PR has been generated by [WhiteSource Renovate](https://renovate.whitesourcesoftware.com). View repository job log [here](https://app.renovatebot.com/dashboard#googleapis/java-texttospeech). * chore(deps): update dependency com.google.cloud.samples:shared-configuration to v1.0.16 (#122) This PR contains the following updates: | Package | Update | Change | |---|---|---| | [com.google.cloud.samples:shared-configuration](https://togithub.com/GoogleCloudPlatform/java-repo-tools) | patch | `1.0.15` -> `1.0.16` | --- ### Release Notes <details> <summary>GoogleCloudPlatform/java-repo-tools</summary> ### [`v1.0.16`](https://togithub.com/GoogleCloudPlatform/java-repo-tools/releases/v1.0.16) [Compare Source](https://togithub.com/GoogleCloudPlatform/java-repo-tools/compare/v1.0.15...v1.0.16) Add a few SpotBugs exclusions: - `RCN_REDUNDANT_NULLCHECK_WOULD_HAVE_BEEN_A_NPE` - existing - codegen bug - `UPM_UNCALLED_PRIVATE_METHOD` - probably SpotBug issue - `NP_NULL_ON_SOME_PATH_FROM_RETURN_VALUE` - likely SpotBug issue - `CLI_CONSTANT_LIST_INDEX` - style issue particular to our samples - `OBL_UNSATISFIED_OBLIGATION` - issue for SQL clients </details> --- ### Renovate configuration :date: **Schedule**: At any time (no schedule defined). :vertical_traffic_light: **Automerge**: Disabled by config. Please merge this manually once you are satisfied. :recycle: **Rebasing**: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox. :no_bell: **Ignore**: Close this PR and you won't be reminded about this update again. --- - [ ] <!-- rebase-check -->If you want to rebase/retry this PR, check this box --- This PR has been generated by [WhiteSource Renovate](https://renovate.whitesourcesoftware.com). View repository job log [here](https://app.renovatebot.com/dashboard#googleapis/java-texttospeech). * chore(deps): update dependency com.google.cloud.samples:shared-configuration to v1.0.17 (#125) This PR contains the following updates: | Package | Update | Change | |---|---|---| | [com.google.cloud.samples:shared-configuration](https://togithub.com/GoogleCloudPlatform/java-repo-tools) | patch | `1.0.16` -> `1.0.17` | --- ### Release Notes <details> <summary>GoogleCloudPlatform/java-repo-tools</summary> ### [`v1.0.17`](https://togithub.com/GoogleCloudPlatform/java-repo-tools/releases/v1.0.17) [Compare Source](https://togithub.com/GoogleCloudPlatform/java-repo-tools/compare/v1.0.16...v1.0.17) - require -P lint Lets not burden customers with our development rules. - Move Checkstyle, ErrorProne, PMD, and SpotBugs to only run w/ -P lint - Update the Readme - spotbugs-annotations 4.0.2 </details> --- ### Renovate configuration :date: **Schedule**: At any time (no schedule defined). :vertical_traffic_light: **Automerge**: Disabled by config. Please merge this manually once you are satisfied. :recycle: **Rebasing**: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox. :no_bell: **Ignore**: Close this PR and you won't be reminded about this update again. --- - [ ] <!-- rebase-check -->If you want to rebase/retry this PR, check this box --- This PR has been generated by [WhiteSource Renovate](https://renovate.whitesourcesoftware.com). View repository job log [here](https://app.renovatebot.com/dashboard#googleapis/java-texttospeech). * chore(deps): update dependency com.google.cloud:libraries-bom to v5.2.0 (#129) This PR contains the following updates: | Package | Update | Change | |---|---|---| | [com.google.cloud:libraries-bom](https://togithub.com/GoogleCloudPlatform/cloud-opensource-java) | minor | `5.1.0` -> `5.2.0` | --- ### Renovate configuration :date: **Schedule**: At any time (no schedule defined). :vertical_traffic_light: **Automerge**: Disabled by config. Please merge this manually once you are satisfied. :recycle: **Rebasing**: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox. :no_bell: **Ignore**: Close this PR and you won't be reminded about this update again. --- - [ ] <!-- rebase-check -->If you want to rebase/retry this PR, check this box --- This PR has been generated by [WhiteSource Renovate](https://renovate.whitesourcesoftware.com). View repository job log [here](https://app.renovatebot.com/dashboard#googleapis/java-texttospeech). * chore(deps): update dependency com.google.cloud:libraries-bom to v5.3.0 (#134) This PR contains the following updates: | Package | Update | Change | |---|---|---| | [com.google.cloud:libraries-bom](https://togithub.com/GoogleCloudPlatform/cloud-opensource-java) | minor | `5.2.0` -> `5.3.0` | --- ### Renovate configuration :date: **Schedule**: At any time (no schedule defined). :vertical_traffic_light: **Automerge**: Disabled by config. Please merge this manually once you are satisfied. :recycle: **Rebasing**: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox. :no_bell: **Ignore**: Close this PR and you won't be reminded about this update again. --- - [ ] <!-- rebase-check -->If you want to rebase/retry this PR, check this box --- This PR has been generated by [WhiteSource Renovate](https://renovate.whitesourcesoftware.com). View repository job log [here](https://app.renovatebot.com/dashboard#googleapis/java-texttospeech). * chore(deps): update dependency com.google.cloud:libraries-bom to v5.4.0 (#142) This PR contains the following updates: | Package | Update | Change | |---|---|---| | [com.google.cloud:libraries-bom](https://togithub.com/GoogleCloudPlatform/cloud-opensource-java) | minor | `5.3.0` -> `5.4.0` | --- ### Renovate configuration :date: **Schedule**: At any time (no schedule defined). :vertical_traffic_light: **Automerge**: Disabled by config. Please merge this manually once you are satisfied. :recycle: **Rebasing**: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox. :no_bell: **Ignore**: Close this PR and you won't be reminded about this update again. --- - [ ] <!-- rebase-check -->If you want to rebase/retry this PR, check this box --- This PR has been generated by [WhiteSource Renovate](https://renovate.whitesourcesoftware.com). View repository job log [here](https://app.renovatebot.com/dashboard#googleapis/java-texttospeech). * chore(deps): update dependency com.google.cloud:libraries-bom to v5.5.0 (#151) This PR contains the following updates: | Package | Update | Change | |---|---|---| | [com.google.cloud:libraries-bom](https://togithub.com/GoogleCloudPlatform/cloud-opensource-java) | minor | `5.4.0` -> `5.5.0` | --- ### Renovate configuration :date: **Schedule**: At any time (no schedule defined). :vertical_traffic_light: **Automerge**: Disabled by config. Please merge this manually once you are satisfied. :recycle: **Rebasing**: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox. :no_bell: **Ignore**: Close this PR and you won't be reminded about this update again. --- - [ ] <!-- rebase-check -->If you want to rebase/retry this PR, check this box --- This PR has been generated by [WhiteSource Renovate](https://renovate.whitesourcesoftware.com). View repository job log [here](https://app.renovatebot.com/dashboard#googleapis/java-texttospeech). * chore(deps): update dependency com.google.cloud.samples:shared-configuration to v1.0.18 (#162) * chore(deps): update dependency com.google.cloud:libraries-bom to v5.7.0 (#161) * chore(deps): update dependency com.google.cloud:libraries-bom to v6 (#170) This PR contains the following updates: | Package | Update | Change | |---|---|---| | [com.google.cloud:libraries-bom](https://togithub.com/GoogleCloudPlatform/cloud-opensource-java) | major | `5.7.0` -> `6.0.0` | --- ### Renovate configuration :date: **Schedule**: At any time (no schedule defined). :vertical_traffic_light: **Automerge**: Disabled by config. Please merge this manually once you are satisfied. :recycle: **Rebasing**: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox. :no_bell: **Ignore**: Close this PR and you won't be reminded about this update again. --- - [ ] <!-- rebase-check -->If you want to rebase/retry this PR, check this box --- This PR has been generated by [WhiteSource Renovate](https://renovate.whitesourcesoftware.com). View repository job log [here](https://app.renovatebot.com/dashboard#googleapis/java-texttospeech). * chore(deps): update dependency com.google.cloud:libraries-bom to v7 (#174) This PR contains the following updates: | Package | Update | Change | |---|---|---| | [com.google.cloud:libraries-bom](https://togithub.com/GoogleCloudPlatform/cloud-opensource-java) | major | `6.0.0` -> `7.0.0` | --- ### Renovate configuration :date: **Schedule**: At any time (no schedule defined). :vertical_traffic_light: **Automerge**: Disabled by config. Please merge this manually once you are satisfied. :recycle: **Rebasing**: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox. :no_bell: **Ignore**: Close this PR and you won't be reminded about this update again. --- - [ ] <!-- rebase-check -->If you want to rebase/retry this PR, check this box --- This PR has been generated by [WhiteSource Renovate](https://renovate.whitesourcesoftware.com). View repository job log [here](https://app.renovatebot.com/dashboard#googleapis/java-texttospeech). * chore(deps): update dependency com.google.cloud:libraries-bom to v7.0.1 (#182) This PR contains the following updates: | Package | Update | Change | |---|---|---| | [com.google.cloud:libraries-bom](https://togithub.com/GoogleCloudPlatform/cloud-opensource-java) | patch | `7.0.0` -> `7.0.1` | --- ### Renovate configuration :date: **Schedule**: At any time (no schedule defined). :vertical_traffic_light: **Automerge**: Disabled by config. Please merge this manually once you are satisfied. :recycle: **Rebasing**: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox. :no_bell: **Ignore**: Close this PR and you won't be reminded about this update again. --- - [ ] <!-- rebase-check -->If you want to rebase/retry this PR, check this box --- This PR has been generated by [WhiteSource Renovate](https://renovate.whitesourcesoftware.com). View repository job log [here](https://app.renovatebot.com/dashboard#googleapis/java-texttospeech). * chore(deps): update dependency com.google.cloud:libraries-bom to v8 (#187) This PR contains the following updates: | Package | Update | Change | |---|---|---| | [com.google.cloud:libraries-bom](https://togithub.com/GoogleCloudPlatform/cloud-opensource-java) | major | `7.0.1` -> `8.0.0` | --- ### Renovate configuration :date: **Schedule**: At any time (no schedule defined). :vertical_traffic_light: **Automerge**: Disabled by config. Please merge this manually once you are satisfied. :recycle: **Rebasing**: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox. :no_bell: **Ignore**: Close this PR and you won't be reminded about this update again. --- - [ ] <!-- rebase-check -->If you want to rebase/retry this PR, check this box --- This PR has been generated by [WhiteSource Renovate](https://renovate.whitesourcesoftware.com). View repository job log [here](https://app.renovatebot.com/dashboard#googleapis/java-texttospeech). * chore(deps): update dependency com.google.cloud:libraries-bom to v8.1.0 (#196) This PR contains the following updates: | Package | Update | Change | |---|---|---| | [com.google.cloud:libraries-bom](https://togithub.com/GoogleCloudPlatform/cloud-opensource-java) | minor | `8.0.0` -> `8.1.0` | --- ### Renovate configuration :date: **Schedule**: At any time (no schedule defined). :vertical_traffic_light: **Automerge**: Disabled by config. Please merge this manually once you are satisfied. :recycle: **Rebasing**: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox. :no_bell: **Ignore**: Close this PR and you won't be reminded about this update again. --- - [ ] <!-- rebase-check -->If you want to rebase/retry this PR, check this box --- This PR has been generated by [WhiteSource Renovate](https://renovate.whitesourcesoftware.com). View repository job log [here](https://app.renovatebot.com/dashboard#googleapis/java-texttospeech). * chore(deps): update dependency com.google.cloud:libraries-bom to v9 (#210) This PR contains the following updates: | Package | Update | Change | |---|---|---| | [com.google.cloud:libraries-bom](https://togithub.com/GoogleCloudPlatform/cloud-opensource-java) | major | `8.1.0` -> `9.0.0` | --- ### Renovate configuration :date: **Schedule**: At any time (no schedule defined). :vertical_traffic_light: **Automerge**: Disabled by config. Please merge this manually once you are satisfied. :recycle: **Rebasing**: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox. :no_bell: **Ignore**: Close this PR and you won't be reminded about this update again. --- - [ ] <!-- rebase-check -->If you want to rebase/retry this PR, check this box --- This PR has been generated by [WhiteSource Renovate](https://renovate.whitesourcesoftware.com). View repository job log [here](https://app.renovatebot.com/dashboard#googleapis/java-texttospeech). * samples: fix dependencies and resources * samples: Add Text-To-Speech Beta samples (#1069) * Add Text-To-Speech Beta samples * Update README * Clarification * Update doc page link * Tell the user an output file was created * Simplify SSML * Update based on feedback * Update missed audio encodings * samples: Bump samples to ga (#1124) * samples: Revert changes (#1143) * samples: Update library for texttospeech sample (#1149) * samples: Adding TTS Beta samples : Audio profile (#1152) * Adding TTS Beta samples : Audio profile * Updated based on comments : Adding TTS Beta samples - Audio profile * Updated based on comments : TTS Beta samples - Audio profile * Updated based on comments : TTS Beta samples - Audio profile * Updates after review * Updates after review * Updates after review : Please let this be the last one :) * Update to released client library * Update SynthesizeText.java Need to update the verification script to allow LLC. * Update SynthesizeText.java Need to update the verification script to allow LLC. * samples: Update Audio Profiles to beta (#1332) * Update Audio Profiles to beta * Remove CLI * Update README.md * samples: Java samples for SSML Addresses tutorial (#1556) * TODO tests * TODO add comments * finished Java samples for SSML Addresses * updated comments * samples: Fix region tag (#1583) * samples: Lint fix (#1594) * Lint fix * Lint fix * Run google-java-format script * samples: Removed unused dependencies (#1607) * samples: update shared config (#2443) * update shared config * Update to 1.0.13 * lint * Fix linting * lint * fix imports Co-authored-by: Les Vogel <[email protected]> * chore(deps): update dependency com.google.cloud:libraries-bom to v9.1.0 (#212) * samples: add presubmit lint check (#216) * changes without context autosynth cannot find the source of changes triggered by earlier changes in this repository, or by version upgrades to tools such as linters. * chore(java_templates): add lint/static analysis presubmit checks for samples * chore(java_templates): add lint/static analysis presubmit checks for samples * chore: fix trailing whitespace Source-Author: Jeff Ching <[email protected]> Source-Date: Mon Aug 17 14:29:16 2020 -0700 Source-Repo: googleapis/synthtool Source-Sha: c3caf0704f25a0c365f1c315e804a30b87c62a75 Source-Link: https://github.com/googleapis/synthtool/commit/c3caf0704f25a0c365f1c315e804a30b87c62a75 * chore(java_templates): stop running pmd/spotbugs checks for samples This was creating too much noise. We will revisit with other options and/or tune these checks. Source-Author: Jeff Ching <[email protected]> Source-Date: Wed Aug 19 12:26:49 2020 -0700 Source-Repo: googleapis/synthtool Source-Sha: 9602086c6c5b05db77950c7f7495a2a3868f3537 Source-Link: https://github.com/googleapis/synthtool/commit/9602086c6c5b05db77950c7f7495a2a3868f3537 * chore: fix line length Co-authored-by: Jeff Ching <[email protected]> * chore(deps): update dependency com.google.cloud:libraries-bom to v10 (#220) * chore(deps): update dependency com.google.cloud:libraries-bom to v11 (#242) This PR contains the following updates: | Package | Update | Change | |---|---|---| | [com.google.cloud:libraries-bom](https://togithub.com/GoogleCloudPlatform/cloud-opensource-java) | major | `10.1.0` -> `11.0.0` | --- ### Renovate configuration :date: **Schedule**: At any time (no schedule defined). :vertical_traffic_light: **Automerge**: Disabled by config. Please merge this manually once you are satisfied. :recycle: **Rebasing**: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox. :no_bell: **Ignore**: Close this PR and you won't be reminded about this update again. --- - [ ] <!-- rebase-check -->If you want to rebase/retry this PR, check this box --- This PR has been generated by [WhiteSource Renovate](https://renovate.whitesourcesoftware.com). View repository job log [here](https://app.renovatebot.com/dashboard#github/googleapis/java-texttospeech). * chore(deps): update dependency com.google.cloud.samples:shared-configuration to v1.0.21 (#243) This PR contains the following updates: | Package | Update | Change | |---|---|---| | [com.google.cloud.samples:shared-configuration](com/google/cloud/samples/shared-configuration) | patch | `1.0.18` -> `1.0.21` | --- ### Renovate configuration :date: **Schedule**: At any time (no schedule defined). :vertical_traffic_light: **Automerge**: Disabled by config. Please merge this manually once you are satisfied. :recycle: **Rebasing**: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox. :no_bell: **Ignore**: Close this PR and you won't be reminded about this update again. --- - [ ] <!-- rebase-check -->If you want to rebase/retry this PR, check this box --- This PR has been generated by [WhiteSource Renovate](https://renovate.whitesourcesoftware.com). View repository job log [here](https://app.renovatebot.com/dashboard#github/googleapis/java-texttospeech). * chore(deps): update dependency com.google.cloud:libraries-bom to v12 (#249) This PR contains the following updates: | Package | Update | Change | |---|---|---| | [com.google.cloud:libraries-bom](https://togithub.com/GoogleCloudPlatform/cloud-opensource-java) | major | `11.0.0` -> `12.0.0` | --- ### Renovate configuration :date: **Schedule**: At any time (no schedule defined). :vertical_traffic_light: **Automerge**: Disabled by config. Please merge this manually once you are satisfied. :recycle: **Rebasing**: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox. :no_bell: **Ignore**: Close this PR and you won't be reminded about this update again. --- - [ ] <!-- rebase-check -->If you want to rebase/retry this PR, check this box --- This PR has been generated by [WhiteSource Renovate](https://renovate.whitesourcesoftware.com). View repository job log [here](https://app.renovatebot.com/dashboard#github/googleapis/java-texttospeech). * test(deps): update dependency junit:junit to v4.13.1 * chore(deps): update dependency com.google.cloud:libraries-bom to v12.1.0 (#257) * chore(deps): update dependency com.google.cloud:libraries-bom to v13 (#265) This PR contains the following updates: | Package | Update | Change | |---|---|---| | [com.google.cloud:libraries-bom](https://togithub.com/GoogleCloudPlatform/cloud-opensource-java) | major | `12.1.0` -> `13.0.0` | --- ### Renovate configuration :date: **Schedule**: At any time (no schedule defined). :vertical_traffic_light: **Automerge**: Disabled by config. Please merge this manually once you are satisfied. :recycle: **Rebasing**: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox. :no_bell: **Ignore**: Close this PR and you won't be reminded about this update again. --- - [ ] <!-- rebase-check -->If you want to rebase/retry this PR, check this box --- This PR has been generated by [WhiteSource Renovate](https://renovate.whitesourcesoftware.com). View repository job log [here](https://app.renovatebot.com/dashboard#github/googleapis/java-texttospeech). * chore(deps): update dependency com.google.cloud:libraries-bom to v13.1.0 (#269) * test(deps): update dependency com.google.truth:truth to v1.1 (#266) This PR contains the following updates: | Package | Update | Change | |---|---|---| | [com.google.truth:truth](com/google/truth/truth) | minor | `1.0.1` -> `1.1` | --- ### Renovate configuration :date: **Schedule**: At any time (no schedule defined). :vertical_traffic_light: **Automerge**: Disabled by config. Please merge this manually once you are satisfied. :recycle: **Rebasing**: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox. :no_bell: **Ignore**: Close this PR and you won't be reminded about this update again. --- - [ ] <!-- rebase-check -->If you want to rebase/retry this PR, check this box --- This PR has been generated by [WhiteSource Renovate](https://renovate.whitesourcesoftware.com). View repository job log [here](https://app.renovatebot.com/dashboard#github/googleapis/java-texttospeech). * chore(deps): update dependency com.google.cloud:libraries-bom to v13.2.0 (#277) This PR contains the following updates: | Package | Update | Change | |---|---|---| | [com.google.cloud:libraries-bom](https://togithub.com/GoogleCloudPlatform/cloud-opensource-java) | minor | `13.1.0` -> `13.2.0` | --- ### Renovate configuration :date: **Schedule**: At any time (no schedule defined). :vertical_traffic_light: **Automerge**: Disabled by config. Please merge this manually once you are satisfied. :recycle: **Rebasing**: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox. :no_bell: **Ignore**: Close this PR and you won't be reminded about this update again. --- - [ ] <!-- rebase-check -->If you want to rebase/retry this PR, check this box --- This PR has been generated by [WhiteSource Renovate](https://renovate.whitesourcesoftware.com). View repository job log [here](https://app.renovatebot.com/dashboard#github/googleapis/java-texttospeech). * chore(deps): update dependency com.google.cloud:libraries-bom to v13.3.0 (#278) This PR contains the following updates: | Package | Update | Change | |---|---|---| | [com.google.cloud:libraries-bom](https://togithub.com/GoogleCloudPlatform/cloud-opensource-java) | minor | `13.2.0` -> `13.3.0` | --- ### Renovate configuration :date: **Schedule**: At any time (no schedule defined). :vertical_traffic_light: **Automerge**: Disabled by config. Please merge this manually once you are satisfied. :recycle: **Rebasing**: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox. :no_bell: **Ignore**: Close this PR and you won't be reminded about this update again. --- - [ ] <!-- rebase-check -->If you want to rebase/retry this PR, check this box --- This PR has been generated by [WhiteSource Renovate](https://renovate.whitesourcesoftware.com). View repository job log [here](https://app.renovatebot.com/dashboard#github/googleapis/java-texttospeech). * chore(deps): update dependency com.google.cloud:libraries-bom to v13.4.0 (#283) This PR contains the following updates: | Package | Update | Change | |---|---|---| | [com.google.cloud:libraries-bom](https://togithub.com/GoogleCloudPlatform/cloud-opensource-java) | minor | `13.3.0` -> `13.4.0` | --- ### Renovate configuration :date: **Schedule**: At any time (no schedule defined). :vertical_traffic_light: **Automerge**: Disabled by config. Please merge this manually once you are satisfied. :recycle: **Rebasing**: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox. :no_bell: **Ignore**: Close this PR and you won't be reminded about this update again. --- - [ ] <!-- rebase-check -->If you want to rebase/retry this PR, check this box --- This PR has been generated by [WhiteSource Renovate](https://renovate.whitesourcesoftware.com). View repository job log [here](https://app.renovatebot.com/dashboard#github/googleapis/java-texttospeech). * chore(deps): update dependency com.google.cloud:libraries-bom to v14 (#290) This PR contains the following updates: | Package | Update | Change | |---|---|---| | [com.google.cloud:libraries-bom](https://togithub.com/GoogleCloudPlatform/cloud-opensource-java) | major | `13.4.0` -> `14.4.1` | --- ### Renovate configuration :date: **Schedule**: At any time (no schedule defined). :vertical_traffic_light: **Automerge**: Disabled by config. Please merge this manually once you are satisfied. :recycle: **Rebasing**: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox. :no_bell: **Ignore**: Close this PR and you won't be reminded about this update again. --- - [ ] <!-- rebase-check -->If you want to rebase/retry this PR, check this box --- This PR has been generated by [WhiteSource Renovate](https://renovate.whitesourcesoftware.com). View repository job log [here](https://app.renovatebot.com/dashboard#github/googleapis/java-texttospeech). * chore(deps): update dependency com.google.cloud:libraries-bom to v15 (#292) This PR contains the following updates: | Package | Update | Change | |---|---|---| | [com.google.cloud:libraries-bom](https://togithub.com/GoogleCloudPlatform/cloud-opensource-java) | major | `14.4.1` -> `15.0.0` | --- ### Renovate configuration :date: **Schedule**: At any time (no schedule defined). :vertical_traffic_light: **Automerge**: Disabled by config. Please merge this manually once you are satisfied. :recycle: **Rebasing**: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox. :no_bell: **Ignore**: Close this PR and you won't be reminded about this update again. --- - [ ] <!-- rebase-check -->If you want to rebase/retry this PR, check this box --- This PR has been generated by [WhiteSource Renovate](https://renovate.whitesourcesoftware.com). View repository job log [here](https://app.renovatebot.com/dashboard#github/googleapis/java-texttospeech). * chore: added missing region tag in pom.xml (#294) * chore(deps): update dependency com.google.cloud:libraries-bom to v16 (#306) [![WhiteSource Renovate](https://app.renovatebot.com/images/banner.svg)](https://renovatebot.com) This PR contains the following updates: | Package | Update | Change | |---|---|---| | [com.google.cloud:libraries-bom](https://togithub.com/GoogleCloudPlatform/cloud-opensource-java) | major | `15.0.0` -> `16.1.0` | --- ### Renovate configuration :date: **Schedule**: At any time (no schedule defined). :vertical_traffic_light: **Automerge**: Disabled by config. Please merge this manually once you are satisfied. :recycle: **Rebasing**: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox. :no_bell: **Ignore**: Close this PR and you won't be reminded about this update again. --- - [ ] <!-- rebase-check -->If you want to rebase/retry this PR, check this box --- This PR has been generated by [WhiteSource Renovate](https://renovate.whitesourcesoftware.com). View repository job log [here](https://app.renovatebot.com/dashboard#github/googleapis/java-texttospeech). * chore(deps): update dependency com.google.cloud:libraries-bom to v16.2.0 (#333) [![WhiteSource Renovate](https://app.renovatebot.com/images/banner.svg)](https://renovatebot.com) This PR contains the following updates: | Package | Update | Change | |---|---|---| | [com.google.cloud:libraries-bom](https://togithub.com/GoogleCloudPlatform/cloud-opensource-java) | minor | `16.1.0` -> `16.2.0` | --- ### Renovate configuration :date: **Schedule**: At any time (no schedule defined). :vertical_traffic_light: **Automerge**: Disabled by config. Please merge this manually once you are satisfied. :recycle: **Rebasing**: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox. :no_bell: **Ignore**: Close this PR and you won't be reminded about this update again. --- - [ ] <!-- rebase-check -->If you want to rebase/retry this PR, check this box --- This PR has been generated by [WhiteSource Renovate](https://renovate.whitesourcesoftware.com). View repository job log [here](https://app.renovatebot.com/dashboard#github/googleapis/java-texttospeech). * chore(deps): update dependency com.google.cloud:libraries-bom to v16.2.1 (#340) [![WhiteSource Renovate](https://app.renovatebot.com/images/banner.svg)](https://renovatebot.com) This PR contains the following updates: | Package | Update | Change | |---|---|---| | [com.google.cloud:libraries-bom](https://togithub.com/GoogleCloudPlatform/cloud-opensource-java) | patch | `16.2.0` -> `16.2.1` | --- ### Renovate configuration :date: **Schedule**: At any time (no schedule defined). :vertical_traffic_light: **Automerge**: Disabled by config. Please merge this manually once you are satisfied. :recycle: **Rebasing**: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox. :no_bell: **Ignore**: Close this PR and you won't be reminded about this update again. --- - [ ] <!-- rebase-check -->If you want to rebase/retry this PR, check this box --- This PR has been generated by [WhiteSource Renovate](https://renovate.whitesourcesoftware.com). View repository job log [here](https://app.renovatebot.com/dashboard#github/googleapis/java-texttospeech). * test(deps): update dependency com.google.truth:truth to v1.1.2 (#349) [![WhiteSource Renovate](https://app.renovatebot.com/images/banner.svg)](https://renovatebot.com) This PR contains the following updates: | Package | Change | Age | Adoption | Passing | Confidence | |---|---|---|---|---|---| | [com.google.truth:truth](com/google/truth/truth) | `1.1` -> `1.1.2` | [![age](https://badges.renovateapi.com/packages/maven/com.google.truth:truth/1.1.2/age-slim)](https://docs.renovatebot.com/merge-confidence/) | [![adoption](https://badges.renovateapi.com/packages/maven/com.google.truth:truth/1.1.2/adoption-slim)](https://docs.renovatebot.com/merge-confidence/) | [![passing](https://badges.renovateapi.com/packages/maven/com.google.truth:truth/1.1.2/compatibility-slim/1.1)](https://docs.renovatebot.com/merge-confidence/) | [![confidence](https://badges.renovateapi.com/packages/maven/com.google.truth:truth/1.1.2/confidence-slim/1.1)](https://docs.renovatebot.com/merge-confidence/) | --- ### Renovate configuration :date: **Schedule**: At any time (no schedule defined). :vertical_traffic_light: **Automerge**: Disabled by config. Please merge this manually once you are satisfied. :recycle: **Rebasing**: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox. :no_bell: **Ignore**: Close this PR and you won't be reminded about this update again. --- - [ ] <!-- rebase-check -->If you want to rebase/retry this PR, check this box --- This PR has been generated by [WhiteSource Renovate](https://renovate.whitesourcesoftware.com). View repository job log [here](https://app.renovatebot.com/dashboard#github/googleapis/java-texttospeech). * chore(deps): update dependency com.google.cloud:libraries-bom to v16.3.0 (#348) * test(deps): update dependency junit:junit to v4.13.2 (#368) [![WhiteSource Renovate](https://app.renovatebot.com/images/banner.svg)](https://renovatebot.com) This PR contains the following updates: | Package | Change | Age | Adoption | Passing | Confidence | |---|---|---|---|---|---| | [junit:junit](http://junit.org) ([source](https://togithub.com/junit-team/junit4)) | `4.13.1` -> `4.13.2` | [![age](https://badges.renovateapi.com/packages/maven/junit:junit/4.13.2/age-slim)](https://docs.renovatebot.com/merge-confidence/) | [![adoption](https://badges.renovateapi.com/packages/maven/junit:junit/4.13.2/adoption-slim)](https://docs.renovatebot.com/merge-confidence/) | [![passing](https://badges.renovateapi.com/packages/maven/junit:junit/4.13.2/compatibility-slim/4.13.1)](https://docs.renovatebot.com/merge-confidence/) | [![confidence](https://badges.renovateapi.com/packages/maven/junit:junit/4.13.2/confidence-slim/4.13.1)](https://docs.renovatebot.com/merge-confid…
1 parent dda03ad commit 8c4e89f

22 files changed

+1715
-0
lines changed

texttospeech/snippets/pom.xml

Lines changed: 69 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,69 @@
1+
<?xml version='1.0' encoding='UTF-8'?>
2+
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
3+
<modelVersion>4.0.0</modelVersion>
4+
<groupId>com.example.texttospeech</groupId>
5+
<artifactId>texttospeech-snippets</artifactId>
6+
<packaging>jar</packaging>
7+
<name>Google Cloud Text-to-Speech Snippets</name>
8+
<url>https://github.com/GoogleCloudPlatform/java-docs-samples/tree/main/texttospeech</url>
9+
10+
<!--
11+
The parent pom defines common style checks and testing strategies for our samples.
12+
Removing or replacing it should not affect the execution of the samples in anyway.
13+
-->
14+
<parent>
15+
<groupId>com.google.cloud.samples</groupId>
16+
<artifactId>shared-configuration</artifactId>
17+
<version>1.2.0</version>
18+
</parent>
19+
20+
<properties>
21+
<maven.compiler.target>1.8</maven.compiler.target>
22+
<maven.compiler.source>1.8</maven.compiler.source>
23+
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
24+
</properties>
25+
26+
<!-- [START tts_java_dependencies] -->
27+
<!-- [START tts_install_with_bom] -->
28+
<dependencyManagement>
29+
<dependencies>
30+
<dependency>
31+
<groupId>com.google.cloud</groupId>
32+
<artifactId>libraries-bom</artifactId>
33+
<version>26.1.4</version>
34+
<type>pom</type>
35+
<scope>import</scope>
36+
</dependency>
37+
</dependencies>
38+
</dependencyManagement>
39+
40+
<dependencies>
41+
<dependency>
42+
<groupId>com.google.cloud</groupId>
43+
<artifactId>google-cloud-texttospeech</artifactId>
44+
</dependency>
45+
<!-- [END tts_java_dependencies] -->
46+
<!-- [START_EXCLUDE] -->
47+
<dependency>
48+
<groupId>net.sourceforge.argparse4j</groupId>
49+
<artifactId>argparse4j</artifactId>
50+
<version>0.9.0</version>
51+
</dependency>
52+
<dependency>
53+
<groupId>junit</groupId>
54+
<artifactId>junit</artifactId>
55+
<version>4.13.2</version>
56+
<scope>test</scope>
57+
</dependency>
58+
<dependency>
59+
<groupId>com.google.truth</groupId>
60+
<artifactId>truth</artifactId>
61+
<version>1.1.3</version>
62+
<scope>test</scope>
63+
</dependency>
64+
<!-- [END_EXCLUDE] -->
65+
<!-- [START tts_java_dependencies] -->
66+
</dependencies>
67+
<!-- [END tts_java_dependencies] -->
68+
<!-- [END tts_install_with_bom] -->
69+
</project>
Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
<speak>123 Street Ln, Small Town, IL 12345 USA
2+
<break time='2s'/>1 Jenny St &amp; Number St, Tutone City, CA 86753
3+
<break time='2s'/>1 Piazza del Fibonacci, 12358 Pisa, Italy
4+
<break time='2s'/></speak>
Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
123 Street Ln, Small Town, IL 12345 USA
2+
1 Jenny St & Number St, Tutone City, CA 86753
3+
1 Piazza del Fibonacci, 12358 Pisa, Italy
Binary file not shown.
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
<speak>Hello there.</speak>
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
Hello there!
Lines changed: 69 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,69 @@
1+
/*
2+
* Copyright 2018 Google Inc.
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+
package com.example.texttospeech;
18+
19+
// Imports the Google Cloud client library
20+
import com.google.cloud.texttospeech.v1.ListVoicesRequest;
21+
import com.google.cloud.texttospeech.v1.ListVoicesResponse;
22+
import com.google.cloud.texttospeech.v1.TextToSpeechClient;
23+
import com.google.cloud.texttospeech.v1.Voice;
24+
import com.google.protobuf.ByteString;
25+
import java.util.List;
26+
27+
/**
28+
* Google Cloud TextToSpeech API sample application. Example usage: mvn package exec:java
29+
* -Dexec.mainClass='com.example.texttospeech.ListAllSupportedVoices'
30+
*/
31+
public class ListAllSupportedVoices {
32+
33+
// [START tts_list_voices]
34+
/**
35+
* Demonstrates using the Text to Speech client to list the client's supported voices.
36+
*
37+
* @throws Exception on TextToSpeechClient Errors.
38+
*/
39+
public static List<Voice> listAllSupportedVoices() throws Exception {
40+
// Instantiates a client
41+
try (TextToSpeechClient textToSpeechClient = TextToSpeechClient.create()) {
42+
// Builds the text to speech list voices request
43+
ListVoicesRequest request = ListVoicesRequest.getDefaultInstance();
44+
45+
// Performs the list voices request
46+
ListVoicesResponse response = textToSpeechClient.listVoices(request);
47+
List<Voice> voices = response.getVoicesList();
48+
49+
for (Voice voice : voices) {
50+
// Display the voice's name. Example: tpc-vocoded
51+
System.out.format("Name: %s\n", voice.getName());
52+
53+
// Display the supported language codes for this voice. Example: "en-us"
54+
List<ByteString> languageCodes = voice.getLanguageCodesList().asByteStringList();
55+
for (ByteString languageCode : languageCodes) {
56+
System.out.format("Supported Language: %s\n", languageCode.toStringUtf8());
57+
}
58+
59+
// Display the SSML Voice Gender
60+
System.out.format("SSML Voice Gender: %s\n", voice.getSsmlGender());
61+
62+
// Display the natural sample rate hertz for this voice. Example: 24000
63+
System.out.format("Natural Sample Rate Hertz: %s\n\n", voice.getNaturalSampleRateHertz());
64+
}
65+
return voices;
66+
}
67+
}
68+
// [END tts_list_voices]
69+
}
Lines changed: 72 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,72 @@
1+
/*
2+
* Copyright 2018 Google Inc.
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+
package com.example.texttospeech;
18+
19+
// Imports the Google Cloud client library
20+
import com.google.cloud.texttospeech.v1beta1.ListVoicesRequest;
21+
import com.google.cloud.texttospeech.v1beta1.ListVoicesResponse;
22+
import com.google.cloud.texttospeech.v1beta1.TextToSpeechClient;
23+
import com.google.cloud.texttospeech.v1beta1.Voice;
24+
import com.google.protobuf.ByteString;
25+
import java.util.List;
26+
27+
/**
28+
* Google Cloud TextToSpeech API sample application. Example usage: mvn package exec:java
29+
* -Dexec.mainClass='com.example.texttospeech.ListAllSupportedVoicesBeta'
30+
*/
31+
public class ListAllSupportedVoicesBeta {
32+
33+
// [START tts_list_voices]
34+
/**
35+
* Demonstrates using the Text to Speech client to list the client's supported voices.
36+
*
37+
* @throws Exception on TextToSpeechClient Errors.
38+
*/
39+
public static void listAllSupportedVoices() throws Exception {
40+
// Instantiates a client
41+
try (TextToSpeechClient textToSpeechClient = TextToSpeechClient.create()) {
42+
// Builds the text to speech list voices request
43+
ListVoicesRequest request = ListVoicesRequest.getDefaultInstance();
44+
45+
// Performs the list voices request
46+
ListVoicesResponse response = textToSpeechClient.listVoices(request);
47+
List<Voice> voices = response.getVoicesList();
48+
49+
for (Voice voice : voices) {
50+
// Display the voice's name. Example: tpc-vocoded
51+
System.out.format("Name: %s\n", voice.getName());
52+
53+
// Display the supported language codes for this voice. Example: "en-us"
54+
List<ByteString> languageCodes = voice.getLanguageCodesList().asByteStringList();
55+
for (ByteString languageCode : languageCodes) {
56+
System.out.format("Supported Language: %s\n", languageCode.toStringUtf8());
57+
}
58+
59+
// Display the SSML Voice Gender
60+
System.out.format("SSML Voice Gender: %s\n", voice.getSsmlGender());
61+
62+
// Display the natural sample rate hertz for this voice. Example: 24000
63+
System.out.format("Natural Sample Rate Hertz: %s\n\n", voice.getNaturalSampleRateHertz());
64+
}
65+
}
66+
}
67+
// [END tts_list_voices]
68+
69+
public static void main(String[] args) throws Exception {
70+
listAllSupportedVoices();
71+
}
72+
}
Lines changed: 73 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,73 @@
1+
/*
2+
* Copyright 2018 Google Inc.
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+
package com.example.texttospeech;
18+
19+
// [START tts_quickstart]
20+
// Imports the Google Cloud client library
21+
import com.google.cloud.texttospeech.v1.AudioConfig;
22+
import com.google.cloud.texttospeech.v1.AudioEncoding;
23+
import com.google.cloud.texttospeech.v1.SsmlVoiceGender;
24+
import com.google.cloud.texttospeech.v1.SynthesisInput;
25+
import com.google.cloud.texttospeech.v1.SynthesizeSpeechResponse;
26+
import com.google.cloud.texttospeech.v1.TextToSpeechClient;
27+
import com.google.cloud.texttospeech.v1.VoiceSelectionParams;
28+
import com.google.protobuf.ByteString;
29+
import java.io.FileOutputStream;
30+
import java.io.OutputStream;
31+
32+
/**
33+
* Google Cloud TextToSpeech API sample application. Example usage: mvn package exec:java
34+
* -Dexec.mainClass='com.example.texttospeech.QuickstartSample'
35+
*/
36+
public class QuickstartSample {
37+
38+
/** Demonstrates using the Text-to-Speech API. */
39+
public static void main(String... args) throws Exception {
40+
// Instantiates a client
41+
try (TextToSpeechClient textToSpeechClient = TextToSpeechClient.create()) {
42+
// Set the text input to be synthesized
43+
SynthesisInput input = SynthesisInput.newBuilder().setText("Hello, World!").build();
44+
45+
// Build the voice request, select the language code ("en-US") and the ssml voice gender
46+
// ("neutral")
47+
VoiceSelectionParams voice =
48+
VoiceSelectionParams.newBuilder()
49+
.setLanguageCode("en-US")
50+
.setSsmlGender(SsmlVoiceGender.NEUTRAL)
51+
.build();
52+
53+
// Select the type of audio file you want returned
54+
AudioConfig audioConfig =
55+
AudioConfig.newBuilder().setAudioEncoding(AudioEncoding.MP3).build();
56+
57+
// Perform the text-to-speech request on the text input with the selected voice parameters and
58+
// audio file type
59+
SynthesizeSpeechResponse response =
60+
textToSpeechClient.synthesizeSpeech(input, voice, audioConfig);
61+
62+
// Get the audio contents from the response
63+
ByteString audioContents = response.getAudioContent();
64+
65+
// Write the response to the output file.
66+
try (OutputStream out = new FileOutputStream("output.mp3")) {
67+
out.write(audioContents.toByteArray());
68+
System.out.println("Audio content written to file \"output.mp3\"");
69+
}
70+
}
71+
}
72+
}
73+
// [END tts_quickstart]
Lines changed: 73 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,73 @@
1+
/*
2+
* Copyright 2018 Google Inc.
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+
package com.example.texttospeech;
18+
19+
// [START tts_quickstart]
20+
// Imports the Google Cloud client library
21+
import com.google.cloud.texttospeech.v1beta1.AudioConfig;
22+
import com.google.cloud.texttospeech.v1beta1.AudioEncoding;
23+
import com.google.cloud.texttospeech.v1beta1.SsmlVoiceGender;
24+
import com.google.cloud.texttospeech.v1beta1.SynthesisInput;
25+
import com.google.cloud.texttospeech.v1beta1.SynthesizeSpeechResponse;
26+
import com.google.cloud.texttospeech.v1beta1.TextToSpeechClient;
27+
import com.google.cloud.texttospeech.v1beta1.VoiceSelectionParams;
28+
import com.google.protobuf.ByteString;
29+
import java.io.FileOutputStream;
30+
import java.io.OutputStream;
31+
32+
/**
33+
* Google Cloud TextToSpeech API sample application. Example usage: mvn package exec:java
34+
* -Dexec.mainClass='com.example.texttospeech.QuickstartSampleBeta'
35+
*/
36+
public class QuickstartSampleBeta {
37+
38+
/** Demonstrates using the Text-to-Speech API. */
39+
public static void main(String... args) throws Exception {
40+
// Instantiates a client
41+
try (TextToSpeechClient textToSpeechClient = TextToSpeechClient.create()) {
42+
// Set the text input to be synthesized
43+
SynthesisInput input = SynthesisInput.newBuilder().setText("Hello, World!").build();
44+
45+
// Build the voice request, select the language code ("en-US") and the ssml voice gender
46+
// ("neutral")
47+
VoiceSelectionParams voice =
48+
VoiceSelectionParams.newBuilder()
49+
.setLanguageCode("en-US")
50+
.setSsmlGender(SsmlVoiceGender.NEUTRAL)
51+
.build();
52+
53+
// Select the type of audio file you want returned
54+
AudioConfig audioConfig =
55+
AudioConfig.newBuilder().setAudioEncoding(AudioEncoding.MP3).build();
56+
57+
// Perform the text-to-speech request on the text input with the selected voice parameters and
58+
// audio file type
59+
SynthesizeSpeechResponse response =
60+
textToSpeechClient.synthesizeSpeech(input, voice, audioConfig);
61+
62+
// Get the audio contents from the response
63+
ByteString audioContents = response.getAudioContent();
64+
65+
// Write the response to the output file.
66+
try (OutputStream out = new FileOutputStream("output.mp3")) {
67+
out.write(audioContents.toByteArray());
68+
System.out.println("Audio content written to file \"output.mp3\"");
69+
}
70+
}
71+
}
72+
}
73+
// [END tts_quickstart]

0 commit comments

Comments
 (0)