Versions in this module Expand all Collapse all v0 v0.25.2 May 21, 2020 Changes in this version + const CloudPlatformScope + type AudioConfig struct + AudioEncoding string + EffectsProfileId []string + ForceSendFields []string + NullFields []string + Pitch float64 + SampleRateHertz int64 + SpeakingRate float64 + VolumeGainDb float64 + func (s *AudioConfig) MarshalJSON() ([]byte, error) + func (s *AudioConfig) UnmarshalJSON(data []byte) error + type ListVoicesResponse struct + ForceSendFields []string + NullFields []string + Voices []*Voice + func (s *ListVoicesResponse) MarshalJSON() ([]byte, error) + type Service struct + BasePath string + Text *TextService + UserAgent string + Voices *VoicesService + func New(client *http.Client) (*Service, error) + func NewService(ctx context.Context, opts ...option.ClientOption) (*Service, error) + type SynthesisInput struct + ForceSendFields []string + NullFields []string + Ssml string + Text string + func (s *SynthesisInput) MarshalJSON() ([]byte, error) + type SynthesizeSpeechRequest struct + AudioConfig *AudioConfig + ForceSendFields []string + Input *SynthesisInput + NullFields []string + Voice *VoiceSelectionParams + func (s *SynthesizeSpeechRequest) MarshalJSON() ([]byte, error) + type SynthesizeSpeechResponse struct + AudioContent string + ForceSendFields []string + NullFields []string + func (s *SynthesizeSpeechResponse) MarshalJSON() ([]byte, error) + type TextService struct + func NewTextService(s *Service) *TextService + func (r *TextService) Synthesize(synthesizespeechrequest *SynthesizeSpeechRequest) *TextSynthesizeCall + type TextSynthesizeCall struct + func (c *TextSynthesizeCall) Context(ctx context.Context) *TextSynthesizeCall + func (c *TextSynthesizeCall) Do(opts ...googleapi.CallOption) (*SynthesizeSpeechResponse, error) + func (c *TextSynthesizeCall) Fields(s ...googleapi.Field) *TextSynthesizeCall + func (c *TextSynthesizeCall) Header() http.Header + type Voice struct + ForceSendFields []string + LanguageCodes []string + Name string + NaturalSampleRateHertz int64 + NullFields []string + SsmlGender string + func (s *Voice) MarshalJSON() ([]byte, error) + type VoiceSelectionParams struct + ForceSendFields []string + LanguageCode string + Name string + NullFields []string + SsmlGender string + func (s *VoiceSelectionParams) MarshalJSON() ([]byte, error) + type VoicesListCall struct + func (c *VoicesListCall) Context(ctx context.Context) *VoicesListCall + func (c *VoicesListCall) Do(opts ...googleapi.CallOption) (*ListVoicesResponse, error) + func (c *VoicesListCall) Fields(s ...googleapi.Field) *VoicesListCall + func (c *VoicesListCall) Header() http.Header + func (c *VoicesListCall) IfNoneMatch(entityTag string) *VoicesListCall + func (c *VoicesListCall) LanguageCode(languageCode string) *VoicesListCall + type VoicesService struct + func NewVoicesService(s *Service) *VoicesService + func (r *VoicesService) List() *VoicesListCall