2024-12-15 19:51:02 +00:00
|
|
|
// Extracted from: Spotify 1.2.52.442 (windows)
|
2021-06-19 20:29:48 +00:00
|
|
|
|
|
|
|
syntax = "proto3";
|
|
|
|
|
2024-12-15 19:51:02 +00:00
|
|
|
package spotify.narration.proto;
|
2021-06-19 20:29:48 +00:00
|
|
|
|
|
|
|
option optimize_for = CODE_SIZE;
|
|
|
|
|
|
|
|
message ResolveRequest {
|
|
|
|
AudioFormat audio_format = 3;
|
|
|
|
enum AudioFormat {
|
|
|
|
UNSPECIFIED = 0;
|
|
|
|
WAV = 1;
|
|
|
|
PCM = 2;
|
|
|
|
OPUS = 3;
|
|
|
|
VORBIS = 4;
|
|
|
|
MP3 = 5;
|
|
|
|
}
|
2024-12-15 19:51:02 +00:00
|
|
|
|
2021-06-19 20:29:48 +00:00
|
|
|
string language = 4;
|
2024-12-15 19:51:02 +00:00
|
|
|
|
2021-06-19 20:29:48 +00:00
|
|
|
TtsVoice tts_voice = 5;
|
|
|
|
enum TtsVoice {
|
|
|
|
UNSET_TTS_VOICE = 0;
|
|
|
|
VOICE1 = 1;
|
|
|
|
VOICE2 = 2;
|
|
|
|
VOICE3 = 3;
|
2024-12-15 19:51:02 +00:00
|
|
|
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;
|
2021-06-19 20:29:48 +00:00
|
|
|
}
|
2024-12-15 19:51:02 +00:00
|
|
|
|
2021-06-19 20:29:48 +00:00
|
|
|
TtsProvider tts_provider = 6;
|
|
|
|
enum TtsProvider {
|
|
|
|
UNSET_TTS_PROVIDER = 0;
|
|
|
|
CLOUD_TTS = 1;
|
|
|
|
READSPEAKER = 2;
|
2021-12-10 19:33:43 +00:00
|
|
|
POLLY = 3;
|
|
|
|
WELL_SAID = 4;
|
2024-12-15 19:51:02 +00:00
|
|
|
SONANTIC_DEPRECATED = 5;
|
|
|
|
SONANTIC_FAST = 6;
|
2021-06-19 20:29:48 +00:00
|
|
|
}
|
2024-12-15 19:51:02 +00:00
|
|
|
|
2021-12-10 19:33:43 +00:00
|
|
|
int32 sample_rate_hz = 7;
|
2021-06-19 20:29:48 +00:00
|
|
|
oneof prompt {
|
|
|
|
string text = 1;
|
|
|
|
string ssml = 2;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
message ResolveResponse {
|
|
|
|
string url = 1;
|
2024-12-15 19:51:02 +00:00
|
|
|
int64 expiry = 2;
|
2021-06-19 20:29:48 +00:00
|
|
|
}
|