需要实现 这个接口
import org.springframework.stereotype.Service;
@Slf4j
@Service
@ConditionalOnProperty(prefix = "thyy.tts", name = "service", havingValue = "xfyun")
public class XfTtsApi implements Tts {
}
配置文件中
thyy:
tts:
service: xfyun
四川盘谷智慧医疗科技有限公司