Versions in this module Expand all Collapse all v0 v0.0.1 Dec 7, 2023 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 CancelOperationRequest struct + type CustomVoiceParams struct + ForceSendFields []string + Model string + NullFields []string + ReportedUsage string + func (s *CustomVoiceParams) MarshalJSON() ([]byte, error) + type Empty struct + type GoogleCloudTexttospeechV1SynthesizeLongAudioMetadata struct + ForceSendFields []string + NullFields []string + ProgressPercentage float64 + StartTime string + func (s *GoogleCloudTexttospeechV1SynthesizeLongAudioMetadata) MarshalJSON() ([]byte, error) + func (s *GoogleCloudTexttospeechV1SynthesizeLongAudioMetadata) UnmarshalJSON(data []byte) error + type ListOperationsResponse struct + ForceSendFields []string + NextPageToken string + NullFields []string + Operations []*Operation + func (s *ListOperationsResponse) MarshalJSON() ([]byte, error) + type ListVoicesResponse struct + ForceSendFields []string + NullFields []string + Voices []*Voice + func (s *ListVoicesResponse) MarshalJSON() ([]byte, error) + type Operation struct + Done bool + Error *Status + ForceSendFields []string + Metadata googleapi.RawMessage + Name string + NullFields []string + Response googleapi.RawMessage + func (s *Operation) MarshalJSON() ([]byte, error) + type OperationsCancelCall struct + func (c *OperationsCancelCall) Context(ctx context.Context) *OperationsCancelCall + func (c *OperationsCancelCall) Do(opts ...googleapi.CallOption) (*Empty, error) + func (c *OperationsCancelCall) Fields(s ...googleapi.Field) *OperationsCancelCall + func (c *OperationsCancelCall) Header() http.Header + type OperationsDeleteCall struct + func (c *OperationsDeleteCall) Context(ctx context.Context) *OperationsDeleteCall + func (c *OperationsDeleteCall) Do(opts ...googleapi.CallOption) (*Empty, error) + func (c *OperationsDeleteCall) Fields(s ...googleapi.Field) *OperationsDeleteCall + func (c *OperationsDeleteCall) Header() http.Header + type OperationsService struct + func NewOperationsService(s *Service) *OperationsService + func (r *OperationsService) Cancel(name string, canceloperationrequest *CancelOperationRequest) *OperationsCancelCall + func (r *OperationsService) Delete(name string) *OperationsDeleteCall + type ProjectsLocationsOperationsGetCall struct + func (c *ProjectsLocationsOperationsGetCall) Context(ctx context.Context) *ProjectsLocationsOperationsGetCall + func (c *ProjectsLocationsOperationsGetCall) Do(opts ...googleapi.CallOption) (*Operation, error) + func (c *ProjectsLocationsOperationsGetCall) Fields(s ...googleapi.Field) *ProjectsLocationsOperationsGetCall + func (c *ProjectsLocationsOperationsGetCall) Header() http.Header + func (c *ProjectsLocationsOperationsGetCall) IfNoneMatch(entityTag string) *ProjectsLocationsOperationsGetCall + type ProjectsLocationsOperationsListCall struct + func (c *ProjectsLocationsOperationsListCall) Context(ctx context.Context) *ProjectsLocationsOperationsListCall + func (c *ProjectsLocationsOperationsListCall) Do(opts ...googleapi.CallOption) (*ListOperationsResponse, error) + func (c *ProjectsLocationsOperationsListCall) Fields(s ...googleapi.Field) *ProjectsLocationsOperationsListCall + func (c *ProjectsLocationsOperationsListCall) Filter(filter string) *ProjectsLocationsOperationsListCall + func (c *ProjectsLocationsOperationsListCall) Header() http.Header + func (c *ProjectsLocationsOperationsListCall) IfNoneMatch(entityTag string) *ProjectsLocationsOperationsListCall + func (c *ProjectsLocationsOperationsListCall) PageSize(pageSize int64) *ProjectsLocationsOperationsListCall + func (c *ProjectsLocationsOperationsListCall) PageToken(pageToken string) *ProjectsLocationsOperationsListCall + func (c *ProjectsLocationsOperationsListCall) Pages(ctx context.Context, f func(*ListOperationsResponse) error) error + type ProjectsLocationsOperationsService struct + func NewProjectsLocationsOperationsService(s *Service) *ProjectsLocationsOperationsService + func (r *ProjectsLocationsOperationsService) Get(name string) *ProjectsLocationsOperationsGetCall + func (r *ProjectsLocationsOperationsService) List(name string) *ProjectsLocationsOperationsListCall + type ProjectsLocationsService struct + Operations *ProjectsLocationsOperationsService + func NewProjectsLocationsService(s *Service) *ProjectsLocationsService + func (r *ProjectsLocationsService) SynthesizeLongAudio(parent string, synthesizelongaudiorequest *SynthesizeLongAudioRequest) *ProjectsLocationsSynthesizeLongAudioCall + type ProjectsLocationsSynthesizeLongAudioCall struct + func (c *ProjectsLocationsSynthesizeLongAudioCall) Context(ctx context.Context) *ProjectsLocationsSynthesizeLongAudioCall + func (c *ProjectsLocationsSynthesizeLongAudioCall) Do(opts ...googleapi.CallOption) (*Operation, error) + func (c *ProjectsLocationsSynthesizeLongAudioCall) Fields(s ...googleapi.Field) *ProjectsLocationsSynthesizeLongAudioCall + func (c *ProjectsLocationsSynthesizeLongAudioCall) Header() http.Header + type ProjectsService struct + Locations *ProjectsLocationsService + func NewProjectsService(s *Service) *ProjectsService + type Service struct + BasePath string + Operations *OperationsService + Projects *ProjectsService + Text *TextService + UserAgent string + Voices *VoicesService + func New(client *http.Client) (*Service, error) + func NewService(ctx context.Context, opts ...option.ClientOption) (*Service, error) + type Status struct + Code int64 + Details []googleapi.RawMessage + ForceSendFields []string + Message string + NullFields []string + func (s *Status) MarshalJSON() ([]byte, error) + type SynthesisInput struct + ForceSendFields []string + NullFields []string + Ssml string + Text string + func (s *SynthesisInput) MarshalJSON() ([]byte, error) + type SynthesizeLongAudioMetadata struct + ForceSendFields []string + NullFields []string + ProgressPercentage float64 + StartTime string + func (s *SynthesizeLongAudioMetadata) MarshalJSON() ([]byte, error) + func (s *SynthesizeLongAudioMetadata) UnmarshalJSON(data []byte) error + type SynthesizeLongAudioRequest struct + AudioConfig *AudioConfig + ForceSendFields []string + Input *SynthesisInput + NullFields []string + OutputGcsUri string + Voice *VoiceSelectionParams + func (s *SynthesizeLongAudioRequest) 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 + CustomVoice *CustomVoiceParams + 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