1
0
Fork 0
mirror of https://github.com/librespot-org/librespot.git synced 2025-10-03 09:49:31 +02:00
librespot/protocol/proto/client-tts.proto
Felix Prillwitz 2a574267ae
Update protobuf files (#1424)
* update protobuf definitions

* add additionally required proto files

* update version.rs

* adjust code to protobuf changes

* fix formatting

* apply suggestions, improve errors
2024-12-24 09:39:49 +01:00

29 lines
588 B
Protocol Buffer

// Extracted from: Spotify 1.2.52.442 (windows)
syntax = "proto3";
package spotify.narration.proto;
import "tts-resolve.proto";
option optimize_for = CODE_SIZE;
service ClientTtsService {
rpc GetTtsUrl(TtsRequest) returns (TtsResponse);
}
message TtsRequest {
ResolveRequest.AudioFormat audio_format = 3;
string language = 4;
ResolveRequest.TtsVoice tts_voice = 5;
ResolveRequest.TtsProvider tts_provider = 6;
int32 sample_rate_hz = 7;
oneof prompt {
string text = 1;
string ssml = 2;
}
}
message TtsResponse {
string url = 1;
}