File tree Expand file tree Collapse file tree 4 files changed +25
-25
lines changed
texttospeech/cloud-client/src/main/java/com/example/texttospeech Expand file tree Collapse file tree 4 files changed +25
-25
lines changed Original file line number Diff line number Diff line change 17
17
package com .example .texttospeech ;
18
18
19
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 ;
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
24
import com .google .protobuf .ByteString ;
25
25
26
26
import java .util .List ;
Original file line number Diff line number Diff line change 18
18
19
19
// [START tts_quickstart]
20
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 ;
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
28
import com .google .protobuf .ByteString ;
29
29
import java .io .FileOutputStream ;
30
30
import java .io .OutputStream ;
Original file line number Diff line number Diff line change 17
17
package com .example .texttospeech ;
18
18
19
19
// Imports the Google Cloud client library
20
- import com .google .cloud .texttospeech .v1 .AudioConfig ;
21
- import com .google .cloud .texttospeech .v1 .AudioEncoding ;
22
- import com .google .cloud .texttospeech .v1 .SsmlVoiceGender ;
23
- import com .google .cloud .texttospeech .v1 .SynthesisInput ;
24
- import com .google .cloud .texttospeech .v1 .SynthesizeSpeechResponse ;
25
- import com .google .cloud .texttospeech .v1 .TextToSpeechClient ;
26
- import com .google .cloud .texttospeech .v1 .VoiceSelectionParams ;
20
+ import com .google .cloud .texttospeech .v1beta1 .AudioConfig ;
21
+ import com .google .cloud .texttospeech .v1beta1 .AudioEncoding ;
22
+ import com .google .cloud .texttospeech .v1beta1 .SsmlVoiceGender ;
23
+ import com .google .cloud .texttospeech .v1beta1 .SynthesisInput ;
24
+ import com .google .cloud .texttospeech .v1beta1 .SynthesizeSpeechResponse ;
25
+ import com .google .cloud .texttospeech .v1beta1 .TextToSpeechClient ;
26
+ import com .google .cloud .texttospeech .v1beta1 .VoiceSelectionParams ;
27
27
import com .google .protobuf .ByteString ;
28
28
29
29
import java .io .FileOutputStream ;
Original file line number Diff line number Diff line change 17
17
package com .example .texttospeech ;
18
18
19
19
// Imports the Google Cloud client library
20
- import com .google .cloud .texttospeech .v1 .AudioConfig ;
21
- import com .google .cloud .texttospeech .v1 .AudioEncoding ;
22
- import com .google .cloud .texttospeech .v1 .SsmlVoiceGender ;
23
- import com .google .cloud .texttospeech .v1 .SynthesisInput ;
24
- import com .google .cloud .texttospeech .v1 .SynthesizeSpeechResponse ;
25
- import com .google .cloud .texttospeech .v1 .TextToSpeechClient ;
26
- import com .google .cloud .texttospeech .v1 .VoiceSelectionParams ;
20
+ import com .google .cloud .texttospeech .v1beta1 .AudioConfig ;
21
+ import com .google .cloud .texttospeech .v1beta1 .AudioEncoding ;
22
+ import com .google .cloud .texttospeech .v1beta1 .SsmlVoiceGender ;
23
+ import com .google .cloud .texttospeech .v1beta1 .SynthesisInput ;
24
+ import com .google .cloud .texttospeech .v1beta1 .SynthesizeSpeechResponse ;
25
+ import com .google .cloud .texttospeech .v1beta1 .TextToSpeechClient ;
26
+ import com .google .cloud .texttospeech .v1beta1 .VoiceSelectionParams ;
27
27
import com .google .protobuf .ByteString ;
28
28
29
29
import java .io .FileOutputStream ;
You can’t perform that action at this time.
0 commit comments