TEXTTOSPEECH

texttospeech.operations.cancel

valid {
    input.Body.STRING == STRING
    input.ReqMap.name == STRING
    input.ProviderMetadata.Region == STRING
}

texttospeech.operations.delete

valid {
    input.ReqMap.name == STRING
    input.ProviderMetadata.Region == STRING
}

texttospeech.projects.locations.operations.get

valid {
    input.ReqMap.name == STRING
    input.ProviderMetadata.Region == STRING
}

texttospeech.projects.locations.operations.list

valid {
    input.ReqMap.name == STRING
    input.Qs.filter == STRING
    input.Qs.pageSize == INTEGER
    input.Qs.pageToken == STRING
    input.ProviderMetadata.Region == STRING
}

texttospeech.projects.locations.synthesizeLongAudio

enum_AudioConfigAudioEncoding := [ "AUDIO_ENCODING_UNSPECIFIED", "LINEAR16", "MP3", "OGG_OPUS", "MULAW", "ALAW" ]
enum_CustomPronunciationParamsPhoneticEncoding := [ "PHONETIC_ENCODING_UNSPECIFIED", "PHONETIC_ENCODING_IPA", "PHONETIC_ENCODING_X_SAMPA" ]
enum_CustomVoiceParamsReportedUsage := [ "REPORTED_USAGE_UNSPECIFIED", "REALTIME", "OFFLINE" ]
enum_VoiceSelectionParamsSsmlGender := [ "SSML_VOICE_GENDER_UNSPECIFIED", "MALE", "FEMALE", "NEUTRAL" ]

valid {
    input.Body.audioConfig.audioEncoding == enum_AudioConfigAudioEncoding[_]
    input.Body.audioConfig.effectsProfileId[_] == STRING
    input.Body.audioConfig.pitch == NUMBER
    input.Body.audioConfig.sampleRateHertz == INTEGER
    input.Body.audioConfig.speakingRate == NUMBER
    input.Body.audioConfig.volumeGainDb == NUMBER
    input.Body.input.customPronunciations.pronunciations[_].phoneticEncoding == enum_CustomPronunciationParamsPhoneticEncoding[_]
    input.Body.input.customPronunciations.pronunciations[_].phrase == STRING
    input.Body.input.customPronunciations.pronunciations[_].pronunciation == STRING
    input.Body.input.multiSpeakerMarkup.turns[_].speaker == STRING
    input.Body.input.multiSpeakerMarkup.turns[_].text == STRING
    input.Body.input.ssml == STRING
    input.Body.input.text == STRING
    input.Body.outputGcsUri == STRING
    input.Body.voice.customVoice.model == STRING
    input.Body.voice.customVoice.reportedUsage == enum_CustomVoiceParamsReportedUsage[_]
    input.Body.voice.languageCode == STRING
    input.Body.voice.name == STRING
    input.Body.voice.ssmlGender == enum_VoiceSelectionParamsSsmlGender[_]
    input.Body.voice.voiceClone.voiceCloningKey == STRING
    input.ReqMap.parent == STRING
    input.ProviderMetadata.Region == STRING
}

texttospeech.text.synthesize

enum_AudioConfigAudioEncoding := [ "AUDIO_ENCODING_UNSPECIFIED", "LINEAR16", "MP3", "OGG_OPUS", "MULAW", "ALAW" ]
enum_CustomPronunciationParamsPhoneticEncoding := [ "PHONETIC_ENCODING_UNSPECIFIED", "PHONETIC_ENCODING_IPA", "PHONETIC_ENCODING_X_SAMPA" ]
enum_CustomVoiceParamsReportedUsage := [ "REPORTED_USAGE_UNSPECIFIED", "REALTIME", "OFFLINE" ]
enum_VoiceSelectionParamsSsmlGender := [ "SSML_VOICE_GENDER_UNSPECIFIED", "MALE", "FEMALE", "NEUTRAL" ]

valid {
    input.Body.advancedVoiceOptions.lowLatencyJourneySynthesis == BOOLEAN
    input.Body.audioConfig.audioEncoding == enum_AudioConfigAudioEncoding[_]
    input.Body.audioConfig.effectsProfileId[_] == STRING
    input.Body.audioConfig.pitch == NUMBER
    input.Body.audioConfig.sampleRateHertz == INTEGER
    input.Body.audioConfig.speakingRate == NUMBER
    input.Body.audioConfig.volumeGainDb == NUMBER
    input.Body.input.customPronunciations.pronunciations[_].phoneticEncoding == enum_CustomPronunciationParamsPhoneticEncoding[_]
    input.Body.input.customPronunciations.pronunciations[_].phrase == STRING
    input.Body.input.customPronunciations.pronunciations[_].pronunciation == STRING
    input.Body.input.multiSpeakerMarkup.turns[_].speaker == STRING
    input.Body.input.multiSpeakerMarkup.turns[_].text == STRING
    input.Body.input.ssml == STRING
    input.Body.input.text == STRING
    input.Body.voice.customVoice.model == STRING
    input.Body.voice.customVoice.reportedUsage == enum_CustomVoiceParamsReportedUsage[_]
    input.Body.voice.languageCode == STRING
    input.Body.voice.name == STRING
    input.Body.voice.ssmlGender == enum_VoiceSelectionParamsSsmlGender[_]
    input.Body.voice.voiceClone.voiceCloningKey == STRING
    input.ProviderMetadata.Region == STRING
}

texttospeech.voices.list

valid {
    input.Qs.languageCode == STRING
    input.ProviderMetadata.Region == STRING
}