com.askfast.model.TTSProvider Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of askfast-api-java Show documentation
Show all versions of askfast-api-java Show documentation
AskFast Library to use the AskFast system
package com.askfast.model;
import com.fasterxml.jackson.annotation.JsonCreator;
public enum TTSProvider {
ACAPELA, VOICE_RSS;
/**
* Returns the enum based on the name or the value
*
* @param value The value for which the corresponding tts must be provided
* @return The corresponding TTS enum
*/
@JsonCreator
public static TTSProvider getByValue(String value) {
for (TTSProvider provider : values()) {
if (provider.name().equalsIgnoreCase(value)) {
return provider;
}
}
return null;
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy