narration

package
v0.10.7 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 18, 2026 License: GPL-3.0 Imports: 5 Imported by: 1 module, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ResolveRequest_AudioFormat_name = map[int32]string{
		0: "UNSPECIFIED",
		1: "WAV",
		2: "PCM",
		3: "OPUS",
		4: "VORBIS",
		5: "MP3",
	}
	ResolveRequest_AudioFormat_value = map[string]int32{
		"UNSPECIFIED": 0,
		"WAV":         1,
		"PCM":         2,
		"OPUS":        3,
		"VORBIS":      4,
		"MP3":         5,
	}
)

Enum value maps for ResolveRequest_AudioFormat.

View Source
var (
	ResolveRequest_TtsVoice_name = map[int32]string{
		0:  "UNSET_TTS_VOICE",
		1:  "VOICE1",
		2:  "VOICE2",
		3:  "VOICE3",
		4:  "VOICE4",
		5:  "VOICE5",
		6:  "VOICE6",
		7:  "VOICE7",
		8:  "VOICE8",
		9:  "VOICE9",
		10: "VOICE10",
		11: "VOICE11",
		12: "VOICE12",
		13: "VOICE13",
		14: "VOICE14",
		15: "VOICE15",
		16: "VOICE16",
		17: "VOICE17",
		18: "VOICE18",
		19: "VOICE19",
		20: "VOICE20",
		21: "VOICE21",
		22: "VOICE22",
		23: "VOICE23",
		24: "VOICE24",
		25: "VOICE25",
		26: "VOICE26",
		27: "VOICE27",
		28: "VOICE28",
		29: "VOICE29",
		30: "VOICE30",
		31: "VOICE31",
		32: "VOICE32",
		33: "VOICE33",
		34: "VOICE34",
		35: "VOICE35",
		36: "VOICE36",
		37: "VOICE37",
		38: "VOICE38",
		39: "VOICE39",
		40: "VOICE40",
	}
	ResolveRequest_TtsVoice_value = map[string]int32{
		"UNSET_TTS_VOICE": 0,
		"VOICE1":          1,
		"VOICE2":          2,
		"VOICE3":          3,
		"VOICE4":          4,
		"VOICE5":          5,
		"VOICE6":          6,
		"VOICE7":          7,
		"VOICE8":          8,
		"VOICE9":          9,
		"VOICE10":         10,
		"VOICE11":         11,
		"VOICE12":         12,
		"VOICE13":         13,
		"VOICE14":         14,
		"VOICE15":         15,
		"VOICE16":         16,
		"VOICE17":         17,
		"VOICE18":         18,
		"VOICE19":         19,
		"VOICE20":         20,
		"VOICE21":         21,
		"VOICE22":         22,
		"VOICE23":         23,
		"VOICE24":         24,
		"VOICE25":         25,
		"VOICE26":         26,
		"VOICE27":         27,
		"VOICE28":         28,
		"VOICE29":         29,
		"VOICE30":         30,
		"VOICE31":         31,
		"VOICE32":         32,
		"VOICE33":         33,
		"VOICE34":         34,
		"VOICE35":         35,
		"VOICE36":         36,
		"VOICE37":         37,
		"VOICE38":         38,
		"VOICE39":         39,
		"VOICE40":         40,
	}
)

Enum value maps for ResolveRequest_TtsVoice.

View Source
var (
	ResolveRequest_TtsProvider_name = map[int32]string{
		0:  "UNSET_TTS_PROVIDER",
		1:  "CLOUD_TTS",
		2:  "READSPEAKER",
		3:  "POLLY",
		4:  "WELL_SAID",
		5:  "SONANTIC_DEPRECATED",
		6:  "SONANTIC_FAST",
		7:  "OPENAI",
		8:  "SONANTIC_LARGE",
		9:  "ELEVEN_LABS_DEPRECATED",
		10: "ADS_PUBLIC",
	}
	ResolveRequest_TtsProvider_value = map[string]int32{
		"UNSET_TTS_PROVIDER":     0,
		"CLOUD_TTS":              1,
		"READSPEAKER":            2,
		"POLLY":                  3,
		"WELL_SAID":              4,
		"SONANTIC_DEPRECATED":    5,
		"SONANTIC_FAST":          6,
		"OPENAI":                 7,
		"SONANTIC_LARGE":         8,
		"ELEVEN_LABS_DEPRECATED": 9,
		"ADS_PUBLIC":             10,
	}
)

Enum value maps for ResolveRequest_TtsProvider.

View Source
var (
	ResolveRequest_TtsVoiceStyle_name = map[int32]string{
		0: "NEUTRAL",
		1: "CHILL",
		2: "UPBEAT",
	}
	ResolveRequest_TtsVoiceStyle_value = map[string]int32{
		"NEUTRAL": 0,
		"CHILL":   1,
		"UPBEAT":  2,
	}
)

Enum value maps for ResolveRequest_TtsVoiceStyle.

View Source
var File_spotify_narration_client_tts_proto protoreflect.FileDescriptor
View Source
var File_spotify_narration_tts_resolve_proto protoreflect.FileDescriptor

Functions

This section is empty.

Types

type ResolveRequest

type ResolveRequest struct {

	// Types that are valid to be assigned to Prompt:
	//
	//	*ResolveRequest_Text
	//	*ResolveRequest_Ssml
	Prompt               isResolveRequest_Prompt      `protobuf_oneof:"prompt"`
	AudioFormat          ResolveRequest_AudioFormat   `` /* 145-byte string literal not displayed */
	Language             string                       `protobuf:"bytes,4,opt,name=language,proto3" json:"language,omitempty"`
	TtsVoice             ResolveRequest_TtsVoice      `` /* 133-byte string literal not displayed */
	TtsProvider          ResolveRequest_TtsProvider   `` /* 145-byte string literal not displayed */
	SampleRateHz         int32                        `protobuf:"varint,7,opt,name=sample_rate_hz,json=sampleRateHz,proto3" json:"sample_rate_hz,omitempty"`
	TtsVoiceStyle        ResolveRequest_TtsVoiceStyle `` /* 155-byte string literal not displayed */
	TtsVoiceStylePercent int32                        `` /* 126-byte string literal not displayed */
	Seed                 int32                        `protobuf:"varint,10,opt,name=seed,proto3" json:"seed,omitempty"`
	// contains filtered or unexported fields
}

func (*ResolveRequest) Descriptor deprecated

func (*ResolveRequest) Descriptor() ([]byte, []int)

Deprecated: Use ResolveRequest.ProtoReflect.Descriptor instead.

func (*ResolveRequest) GetAudioFormat

func (x *ResolveRequest) GetAudioFormat() ResolveRequest_AudioFormat

func (*ResolveRequest) GetLanguage

func (x *ResolveRequest) GetLanguage() string

func (*ResolveRequest) GetPrompt

func (x *ResolveRequest) GetPrompt() isResolveRequest_Prompt

func (*ResolveRequest) GetSampleRateHz

func (x *ResolveRequest) GetSampleRateHz() int32

func (*ResolveRequest) GetSeed

func (x *ResolveRequest) GetSeed() int32

func (*ResolveRequest) GetSsml

func (x *ResolveRequest) GetSsml() string

func (*ResolveRequest) GetText

func (x *ResolveRequest) GetText() string

func (*ResolveRequest) GetTtsProvider

func (x *ResolveRequest) GetTtsProvider() ResolveRequest_TtsProvider

func (*ResolveRequest) GetTtsVoice

func (x *ResolveRequest) GetTtsVoice() ResolveRequest_TtsVoice

func (*ResolveRequest) GetTtsVoiceStyle

func (x *ResolveRequest) GetTtsVoiceStyle() ResolveRequest_TtsVoiceStyle

func (*ResolveRequest) GetTtsVoiceStylePercent

func (x *ResolveRequest) GetTtsVoiceStylePercent() int32

func (*ResolveRequest) ProtoMessage

func (*ResolveRequest) ProtoMessage()

func (*ResolveRequest) ProtoReflect

func (x *ResolveRequest) ProtoReflect() protoreflect.Message

func (*ResolveRequest) Reset

func (x *ResolveRequest) Reset()

func (*ResolveRequest) String

func (x *ResolveRequest) String() string

type ResolveRequest_AudioFormat

type ResolveRequest_AudioFormat int32
const (
	ResolveRequest_UNSPECIFIED ResolveRequest_AudioFormat = 0
	ResolveRequest_WAV         ResolveRequest_AudioFormat = 1
	ResolveRequest_PCM         ResolveRequest_AudioFormat = 2
	ResolveRequest_OPUS        ResolveRequest_AudioFormat = 3
	ResolveRequest_VORBIS      ResolveRequest_AudioFormat = 4
	ResolveRequest_MP3         ResolveRequest_AudioFormat = 5
)

func (ResolveRequest_AudioFormat) Descriptor

func (ResolveRequest_AudioFormat) Enum

func (ResolveRequest_AudioFormat) EnumDescriptor deprecated

func (ResolveRequest_AudioFormat) EnumDescriptor() ([]byte, []int)

Deprecated: Use ResolveRequest_AudioFormat.Descriptor instead.

func (ResolveRequest_AudioFormat) Number

func (ResolveRequest_AudioFormat) String

func (ResolveRequest_AudioFormat) Type

type ResolveRequest_Ssml

type ResolveRequest_Ssml struct {
	Ssml string `protobuf:"bytes,2,opt,name=ssml,proto3,oneof"`
}

type ResolveRequest_Text

type ResolveRequest_Text struct {
	Text string `protobuf:"bytes,1,opt,name=text,proto3,oneof"`
}

type ResolveRequest_TtsProvider

type ResolveRequest_TtsProvider int32
const (
	ResolveRequest_UNSET_TTS_PROVIDER     ResolveRequest_TtsProvider = 0
	ResolveRequest_CLOUD_TTS              ResolveRequest_TtsProvider = 1
	ResolveRequest_READSPEAKER            ResolveRequest_TtsProvider = 2
	ResolveRequest_POLLY                  ResolveRequest_TtsProvider = 3
	ResolveRequest_WELL_SAID              ResolveRequest_TtsProvider = 4
	ResolveRequest_SONANTIC_DEPRECATED    ResolveRequest_TtsProvider = 5
	ResolveRequest_SONANTIC_FAST          ResolveRequest_TtsProvider = 6
	ResolveRequest_OPENAI                 ResolveRequest_TtsProvider = 7
	ResolveRequest_SONANTIC_LARGE         ResolveRequest_TtsProvider = 8
	ResolveRequest_ELEVEN_LABS_DEPRECATED ResolveRequest_TtsProvider = 9
	ResolveRequest_ADS_PUBLIC             ResolveRequest_TtsProvider = 10
)

func (ResolveRequest_TtsProvider) Descriptor

func (ResolveRequest_TtsProvider) Enum

func (ResolveRequest_TtsProvider) EnumDescriptor deprecated

func (ResolveRequest_TtsProvider) EnumDescriptor() ([]byte, []int)

Deprecated: Use ResolveRequest_TtsProvider.Descriptor instead.

func (ResolveRequest_TtsProvider) Number

func (ResolveRequest_TtsProvider) String

func (ResolveRequest_TtsProvider) Type

type ResolveRequest_TtsVoice

type ResolveRequest_TtsVoice int32
const (
	ResolveRequest_UNSET_TTS_VOICE ResolveRequest_TtsVoice = 0
	ResolveRequest_VOICE1          ResolveRequest_TtsVoice = 1
	ResolveRequest_VOICE2          ResolveRequest_TtsVoice = 2
	ResolveRequest_VOICE3          ResolveRequest_TtsVoice = 3
	ResolveRequest_VOICE4          ResolveRequest_TtsVoice = 4
	ResolveRequest_VOICE5          ResolveRequest_TtsVoice = 5
	ResolveRequest_VOICE6          ResolveRequest_TtsVoice = 6
	ResolveRequest_VOICE7          ResolveRequest_TtsVoice = 7
	ResolveRequest_VOICE8          ResolveRequest_TtsVoice = 8
	ResolveRequest_VOICE9          ResolveRequest_TtsVoice = 9
	ResolveRequest_VOICE10         ResolveRequest_TtsVoice = 10
	ResolveRequest_VOICE11         ResolveRequest_TtsVoice = 11
	ResolveRequest_VOICE12         ResolveRequest_TtsVoice = 12
	ResolveRequest_VOICE13         ResolveRequest_TtsVoice = 13
	ResolveRequest_VOICE14         ResolveRequest_TtsVoice = 14
	ResolveRequest_VOICE15         ResolveRequest_TtsVoice = 15
	ResolveRequest_VOICE16         ResolveRequest_TtsVoice = 16
	ResolveRequest_VOICE17         ResolveRequest_TtsVoice = 17
	ResolveRequest_VOICE18         ResolveRequest_TtsVoice = 18
	ResolveRequest_VOICE19         ResolveRequest_TtsVoice = 19
	ResolveRequest_VOICE20         ResolveRequest_TtsVoice = 20
	ResolveRequest_VOICE21         ResolveRequest_TtsVoice = 21
	ResolveRequest_VOICE22         ResolveRequest_TtsVoice = 22
	ResolveRequest_VOICE23         ResolveRequest_TtsVoice = 23
	ResolveRequest_VOICE24         ResolveRequest_TtsVoice = 24
	ResolveRequest_VOICE25         ResolveRequest_TtsVoice = 25
	ResolveRequest_VOICE26         ResolveRequest_TtsVoice = 26
	ResolveRequest_VOICE27         ResolveRequest_TtsVoice = 27
	ResolveRequest_VOICE28         ResolveRequest_TtsVoice = 28
	ResolveRequest_VOICE29         ResolveRequest_TtsVoice = 29
	ResolveRequest_VOICE30         ResolveRequest_TtsVoice = 30
	ResolveRequest_VOICE31         ResolveRequest_TtsVoice = 31
	ResolveRequest_VOICE32         ResolveRequest_TtsVoice = 32
	ResolveRequest_VOICE33         ResolveRequest_TtsVoice = 33
	ResolveRequest_VOICE34         ResolveRequest_TtsVoice = 34
	ResolveRequest_VOICE35         ResolveRequest_TtsVoice = 35
	ResolveRequest_VOICE36         ResolveRequest_TtsVoice = 36
	ResolveRequest_VOICE37         ResolveRequest_TtsVoice = 37
	ResolveRequest_VOICE38         ResolveRequest_TtsVoice = 38
	ResolveRequest_VOICE39         ResolveRequest_TtsVoice = 39
	ResolveRequest_VOICE40         ResolveRequest_TtsVoice = 40
)

func (ResolveRequest_TtsVoice) Descriptor

func (ResolveRequest_TtsVoice) Enum

func (ResolveRequest_TtsVoice) EnumDescriptor deprecated

func (ResolveRequest_TtsVoice) EnumDescriptor() ([]byte, []int)

Deprecated: Use ResolveRequest_TtsVoice.Descriptor instead.

func (ResolveRequest_TtsVoice) Number

func (ResolveRequest_TtsVoice) String

func (x ResolveRequest_TtsVoice) String() string

func (ResolveRequest_TtsVoice) Type

type ResolveRequest_TtsVoiceStyle

type ResolveRequest_TtsVoiceStyle int32
const (
	ResolveRequest_NEUTRAL ResolveRequest_TtsVoiceStyle = 0
	ResolveRequest_CHILL   ResolveRequest_TtsVoiceStyle = 1
	ResolveRequest_UPBEAT  ResolveRequest_TtsVoiceStyle = 2
)

func (ResolveRequest_TtsVoiceStyle) Descriptor

func (ResolveRequest_TtsVoiceStyle) Enum

func (ResolveRequest_TtsVoiceStyle) EnumDescriptor deprecated

func (ResolveRequest_TtsVoiceStyle) EnumDescriptor() ([]byte, []int)

Deprecated: Use ResolveRequest_TtsVoiceStyle.Descriptor instead.

func (ResolveRequest_TtsVoiceStyle) Number

func (ResolveRequest_TtsVoiceStyle) String

func (ResolveRequest_TtsVoiceStyle) Type

type ResolveResponse

type ResolveResponse struct {
	Url    string `protobuf:"bytes,1,opt,name=url,proto3" json:"url,omitempty"`
	Expiry int64  `protobuf:"varint,2,opt,name=expiry,proto3" json:"expiry,omitempty"`
	// contains filtered or unexported fields
}

func (*ResolveResponse) Descriptor deprecated

func (*ResolveResponse) Descriptor() ([]byte, []int)

Deprecated: Use ResolveResponse.ProtoReflect.Descriptor instead.

func (*ResolveResponse) GetExpiry

func (x *ResolveResponse) GetExpiry() int64

func (*ResolveResponse) GetUrl

func (x *ResolveResponse) GetUrl() string

func (*ResolveResponse) ProtoMessage

func (*ResolveResponse) ProtoMessage()

func (*ResolveResponse) ProtoReflect

func (x *ResolveResponse) ProtoReflect() protoreflect.Message

func (*ResolveResponse) Reset

func (x *ResolveResponse) Reset()

func (*ResolveResponse) String

func (x *ResolveResponse) String() string

type TtsPrompt

type TtsPrompt struct {

	// Types that are valid to be assigned to Tts:
	//
	//	*TtsPrompt_Text
	//	*TtsPrompt_Ssml
	Tts      isTtsPrompt_Tts `protobuf_oneof:"tts"`
	Language string          `protobuf:"bytes,3,opt,name=language,proto3" json:"language,omitempty"`
	Url      string          `protobuf:"bytes,4,opt,name=url,proto3" json:"url,omitempty"`
	// contains filtered or unexported fields
}

func (*TtsPrompt) Descriptor deprecated

func (*TtsPrompt) Descriptor() ([]byte, []int)

Deprecated: Use TtsPrompt.ProtoReflect.Descriptor instead.

func (*TtsPrompt) GetLanguage

func (x *TtsPrompt) GetLanguage() string

func (*TtsPrompt) GetSsml

func (x *TtsPrompt) GetSsml() string

func (*TtsPrompt) GetText

func (x *TtsPrompt) GetText() string

func (*TtsPrompt) GetTts

func (x *TtsPrompt) GetTts() isTtsPrompt_Tts

func (*TtsPrompt) GetUrl

func (x *TtsPrompt) GetUrl() string

func (*TtsPrompt) ProtoMessage

func (*TtsPrompt) ProtoMessage()

func (*TtsPrompt) ProtoReflect

func (x *TtsPrompt) ProtoReflect() protoreflect.Message

func (*TtsPrompt) Reset

func (x *TtsPrompt) Reset()

func (*TtsPrompt) String

func (x *TtsPrompt) String() string

type TtsPrompt_Ssml

type TtsPrompt_Ssml struct {
	Ssml string `protobuf:"bytes,2,opt,name=ssml,proto3,oneof"`
}

type TtsPrompt_Text

type TtsPrompt_Text struct {
	Text string `protobuf:"bytes,1,opt,name=text,proto3,oneof"`
}

type TtsRequest

type TtsRequest struct {
	AudioFormat  ResolveRequest_AudioFormat `` /* 145-byte string literal not displayed */
	Language     string                     `protobuf:"bytes,4,opt,name=language,proto3" json:"language,omitempty"`
	TtsVoice     ResolveRequest_TtsVoice    `` /* 133-byte string literal not displayed */
	TtsProvider  ResolveRequest_TtsProvider `` /* 145-byte string literal not displayed */
	SampleRateHz int32                      `protobuf:"varint,7,opt,name=sample_rate_hz,json=sampleRateHz,proto3" json:"sample_rate_hz,omitempty"`
	// Types that are valid to be assigned to Prompt:
	//
	//	*TtsRequest_Text
	//	*TtsRequest_Ssml
	Prompt isTtsRequest_Prompt `protobuf_oneof:"prompt"`
	// contains filtered or unexported fields
}

TtsRequest is what /client-tts/v1/fulfill takes, kept exactly as extracted from the client's own schema.

func (*TtsRequest) Descriptor deprecated

func (*TtsRequest) Descriptor() ([]byte, []int)

Deprecated: Use TtsRequest.ProtoReflect.Descriptor instead.

func (*TtsRequest) GetAudioFormat

func (x *TtsRequest) GetAudioFormat() ResolveRequest_AudioFormat

func (*TtsRequest) GetLanguage

func (x *TtsRequest) GetLanguage() string

func (*TtsRequest) GetPrompt

func (x *TtsRequest) GetPrompt() isTtsRequest_Prompt

func (*TtsRequest) GetSampleRateHz

func (x *TtsRequest) GetSampleRateHz() int32

func (*TtsRequest) GetSsml

func (x *TtsRequest) GetSsml() string

func (*TtsRequest) GetText

func (x *TtsRequest) GetText() string

func (*TtsRequest) GetTtsProvider

func (x *TtsRequest) GetTtsProvider() ResolveRequest_TtsProvider

func (*TtsRequest) GetTtsVoice

func (x *TtsRequest) GetTtsVoice() ResolveRequest_TtsVoice

func (*TtsRequest) ProtoMessage

func (*TtsRequest) ProtoMessage()

func (*TtsRequest) ProtoReflect

func (x *TtsRequest) ProtoReflect() protoreflect.Message

func (*TtsRequest) Reset

func (x *TtsRequest) Reset()

func (*TtsRequest) String

func (x *TtsRequest) String() string

type TtsRequest_Ssml

type TtsRequest_Ssml struct {
	Ssml string `protobuf:"bytes,2,opt,name=ssml,proto3,oneof"`
}

type TtsRequest_Text

type TtsRequest_Text struct {
	Text string `protobuf:"bytes,1,opt,name=text,proto3,oneof"`
}

type TtsResponse

type TtsResponse struct {
	Url string `protobuf:"bytes,1,opt,name=url,proto3" json:"url,omitempty"`
	// contains filtered or unexported fields
}

TtsResponse is documented as the reply, but the endpoint observed on 1.2.52.442 answers 303 with an empty body and puts the audio url in the Location header instead.

func (*TtsResponse) Descriptor deprecated

func (*TtsResponse) Descriptor() ([]byte, []int)

Deprecated: Use TtsResponse.ProtoReflect.Descriptor instead.

func (*TtsResponse) GetUrl

func (x *TtsResponse) GetUrl() string

func (*TtsResponse) ProtoMessage

func (*TtsResponse) ProtoMessage()

func (*TtsResponse) ProtoReflect

func (x *TtsResponse) ProtoReflect() protoreflect.Message

func (*TtsResponse) Reset

func (x *TtsResponse) Reset()

func (*TtsResponse) String

func (x *TtsResponse) String() string

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL